Bienvenido a la API del motor de reservas para el alquiler de vehículos/alojamientos de Mybooking.
Este API tiene tiene la funcionalidad necesaria para implementar el proceso de alquiler de vehículos en un sitio web. Obtener los lugares de entrega y devolución, realizar la búsqueda de vehículos, realizar la reserva y completar los datos del contrato posteriormente.
Está diseñada de forma que se pueda utilizar tanto desde el navegador con JAMStack(opens new window) como desde su lenguaje preferido en el lado del servidor.
El proceso de reserva está gestionado en el servidor y se lleva a cabo de forma similar a como se realiza en un e-commerce. Usamos un carrito de la reserva que se almacena en el servidor con toda la información de la reserva en curso.
Cada una de las cuentas de Mybooking son accesible a través de un subdominio único id de cliente. Si el id de cliente es
rentpepe la URL base para realizar las peticiones será:
Todas las llamadas al API pueden incorporar un parámetros, lang, con el código ISO 639-1 del idioma, 2 caracteres para recuperar los datos en el idioma configurado.
Obtiene las fechas activas para mostrar en el calendario de búsqueda
Se pasa un rango de fechas, mes que se muestra en el caledario y un discriminador, action, indicando si deseamos obtener
las fechas disponibles para entrega o devolución
Obtiene las reglas para las edades de los conductores
Query String
Parámetro
Descripción
Detalle
lang
Idioma
Código ISO 639-1 (en,es,it,...)
Opcional
Resultado
Success
TIP
200
Object
Descripción
age_rule
array[object]
id
Number
Id de la regla
description
String
message_not_allowed
String
Mensaje a mostrar si no permitido
allowed
Boolean
Edad / años carnet autorizado
supplement
String
Importe del suplemento x día
max_supplement
String
Importe del suplemento máximo
deposit
String
Importe del depósito
age_rule_type
String
Regla : both_age_driving_license_years
join_conditions
String
'and' 'or' Edad y/o Años carnet
age_condition
String
'<','>','=','<->'
age_from
Number
Edad desde
age_to
Number
Edad hasta
driving_license_years_condition
String
'<','>','=','<->'
driving_license_years_from
Number
Edad desde
driving_license_years_to
Number
Edad hasta
[{"id":1,"description":"mayor de 20 años y más de 2 años de carnet","message_not_allowed":"","allowed":true,"supplement":"0.0","max_supplement":"0.0","deposit":"0.0","age_rule_type":"both_age_driving_license_years","join_conditions":"and","age_condition":">","age_from":20,"age_to":0,"driving_license_years_condition":">","driving_license_years_from":2,"driving_license_years_to":0}]
POST /api/booking/frontend/shopping-cart/:free_access_id
Inicia el proceso de reserva seleccionado con el lugar y las fechas de entrega y devolución
TIP
También permite cambiar los criterios de búsqueda si usamos el parámetro :free_access_id en la URL
Path Parameters
Parámetro
Descripción
Detalle
free_access_id
Identificador del carrito de la compra obtenido al iniciar el proceso de venta
String
Opcional
Query String
Parámetro
Descripción
Detalle
include_products
Incluye productos
Incluye productos con tarifa
Opcional
include_extras
Incluye extras
Incluye extras con tarifa
Opcional
include_coverages
Incluye coberturas
Incluye cuberturas con tarifa
Opcional
offset
Paginación
Desplazamiento
Opcional
limit
Paginación
Número de resultados
Opcional
lang
Idioma
Código ISO 639-1 (en,es,it,...)
Opcional
Request Body
Parámetro
Descripción
Detalle
date_from
Fecha de entrega
dd/mm/yyyy
Obligatorio
time_from
Hora de entrega
hh:MM
Obligatorio
date_to
Fecha de devolución
dd/mm/yyyy
Obligatorio
time_to
Hora de devolución
hh:MM
Obligatorio
pickup_place
Lugar entrega
Cuando hay varios lugares de entrega
Obligatorio
return_place
Lugar devolución
Cuando hay varios lugares de devolución
Obligatorio
driver_age_rule
Indica la regla que identifica la edad del conductor
Opcional
sales_channel_code
Canal de venta
Opcional
promotion_code
Código de promoción
Opcional
family_id
Identificador de la familia
Filtra resultados por familia
Opcional
category_code
Código del producto
Búsqueda de un producto concreto
Opcional
engine_fixed_product
El producto es fijo (indicado en category_code)
Sólo resultados de ese producto
Opcional
engine_fixed_family
La familia es fija (indicada en family_id)
Sólo resultados de esa familia
Opcional
engine_fixed_rental_location
La sucursal es fija (indicada en rental_location_code)
Sólo resultados de esa sucursal
Opcional
{"date_from":"17/08/2019","time_from":"10:00","date_to":"19/08/2019","time_to":"10:00","pickup_place":"Amsterdam All Locations","return_place":"Amsterdam All Locations"}
Resultado
Success
TIP
200
result
object[Object]
Resultado búsqueda / carrito
shopping_cart
object[object]
Carrito de la reserva
products
object[object]
Productos resultado búsqueda
total
Number
Número total de productos (paginación)
extras
object[object]
Extras producto seleccionado
coverages
object[object]
Coberturas seguro producto seleccionado
sales_process
object[object]
Acciones a realizar : petición, pago, formas de pago
shopping_cart
object[object]
Carrito de la compra
free_access_id
String
Identificador del carrito para múltiples peticiones
date_from
String HH:MM
Hora de entrega
time_from
String HH:MM
Hora de entrega
pickup_place
String
Lugar de entrega
date_to
String YYYY-MM-DD
Fecha de devolución
time_to
String HH:MM
Hora de devolución
return_place
String
Lugar de devolución
days
Integer
Días de la reserva
items
Array
Producto(s) seleccionado(s)
extras
Array
Extra(s) de la reserva
products
array[object]
Categorías con precios y disponibilidad
code
String
Código del producto
name
String
Nombre del producto
short_description
String
Descripción corta
description
String
Descripción larga
highlight_message
String
Mensaje destacado
photos
array[Objetc]
Fotos del producto (imágenes para mostrar un slide)
photo
String
Path de la foto (tamaño medio)
full_photo
String
Path de la foto (tamaño completo)
price_units
String
Unidad de tiempo : "days" (días) "hours" (horas)
exceeds_max
Boolean
Excede la duración máximo de reserva
be_less_than_min
Boolean
Inferior a la duración mínima de reserva
days
Integer
Días de facturación
hours
Integer
Horas de facturación
minutes
Integer
Minutos de facturación
price_units
String
Unidad de tiempo : "days" (días) "hours" (horas)
unit_base_price
String (number format)
Precio sin descuento de 1 unidad 1 día/hora
unit_base_price_without_taxes
String (number format)
Precio sin descuento de 1 unidad 1 día/hora sin impuestos
unit_price
String (number format)
Precio con descuento (código de promoción u oferta) de 1 unidad 1 día/hora
unit_price_without_taxes
String (number format)
Precio con descuento (código de promoción u oferta) de 1 unidad 1 d/h sin impuestos
vat_type
String (number format)
Porcentaje de impuestos
base_price
String (number format)
Precio sin descuento de 1 unidad todos los días/horas
price
String (number format)
Precio incluyendo descuento (código de promoción u oferta) de 1 unid. todos los d/h
deposit
String (number format)
Fianza por 1 unidad todos los días/horas
availability
Boolean
Disponibilidad
available
Integer
Número de vehículos disponibles
offer_discount_type
String
Tipo de la oferta(“percentage” o “amount”)
offer_value
String (number format)
Valor de la oferta
offer_name
String
Nombre de la oferta
offer_conditions
String
Condiciones de la oferta
min_days
Integer
Número mínimo de días para alquiler
payment_availability
Boolean
Se permite el pago online
category_supplement_1_cost
String (formato número)
Suplemento de categoría 1 (combustible)
category_supplement_2_cost
String (formato número)
Suplemento de categoría 2
category_supplement_2_cost
String (formato número)
Suplemento de categoría 3
key_characteristics
Object
Características clave : Conjunto de atributos y valor
extras
array[object]
code
String
Código del extra
name
String
Nombre del extra
description
String
Descripción del extra
available
Boolean
Disponible
photo
String
Path de la foto (tamaño medio)
full_photo
String
Path de la foto (tamaño completo)
max_quantity
Integer
Cantidad máxima permitida
max_sellable_quantity
Integer
Máxima cantidad disponible
stock
Integer
Disponible
unit_price
String
Coste 1 unidad todos los días
days
Integer
Días de facturación
hours
Integer
Horas de facturación
minutes
Integer
Minutos de facturación
sales_process
object[object]
can_request
Boolean
Petición de reserva permitido
can_pay_on_delivery
Boolean
Permite pagar en destino
can_pay
Boolean
Pago Online permitido
can_pay_deposit
Boolean
Pago Online del depósito permitido
can_pay_total
Boolean
Pago Online del total permitido
pickup_return_places_same_ren tal_locations
Boolean
El lugar de entrega y devolución pertenecen a la misma sucursal
server_date
String
Fecha del servidor (YYYY-MM-DD)
server_time
String
Hora del servidor (HH:MM)
timezone
String
Zona horaria
{"shopping_cart":{"free_access_id":"d8ed5e9e09a37eb1b2fe899e68e9e574","date_from":"2022-03-08","time_from":"10:00","date_to":"2022-03-11","time_to":"10:00","days":3,"hours":0,"minutes":0,"total_days":3,"total_hours":72,"total_minutes":4320,"customer_type":"individual","customer_company_name":null,"customer_company_contact_name":null,"customer_company_document_id":null,"customer_name":"","customer_surname":"","customer_email":"","customer_phone":"","customer_mobile_phone":null,"customer_document_id":null,"customer_language":"es","item_cost":"156.75","extras_cost":"0.0","time_from_cost":"0.0","time_to_cost":"0.0","product_deposit_cost":"300.0","product_guarantee_cost":"0.0","total_deposit":"300.0","total_cost":"156.75","booking_amount":"0.0","pickup_place_cost":"0.0","return_place_cost":"0.0","comments":null,"destination_accommodation":null,"rental_location_code":"MAHON","rate_type_id":5,"rate_type_name":"Estándar","family_id":null,"engine_fixed_family":false,"engine_fixed_product":false,"engine_fixed_rental_location":false,"engine_modify_dates":true,"number_of_deposits":1,"promotion_code":null,"promotion_code_total_amount":"0.0","offer_total_amount":"8.25","number_of_products":1,"number_of_adults":null,"number_of_children":null,"sales_channel_code":null,"date_from_short_format":"08/03/22","date_from_default_format":"08/03/2022","date_from_extended_format":"08 Marzo 2022","date_from_full_format":"Martes, 08 Marzo 2022","date_to_short_format":"11/03/22","date_to_default_format":"11/03/2022","date_to_extended_format":"11 Marzo 2022","date_to_full_format":"Viernes, 11 Marzo 2022","pickup_place":"Aeropuerto de Mahón","pickup_place_customer_translation":"Aeropuerto de Mahón","custom_pickup_place":false,"pickup_place_type":"location","pickup_place_id":2,"return_place":"Aeropuerto de Mahón","return_place_customer_translation":"Aeropuerto de Mahón","custom_return_place":false,"return_place_type":"location","return_place_id":2,"driver_age":null,"driver_driving_license_years":null,"driver_under_age":null,"driver_age_allowed":null,"driver_age_cost":"0.0","driver_age_deposit":"0.0","driver_age_rule_id":null,"driver_age_rule_description":null,"driver_age_rule_description_customer_translation":null,"category_supplement_1_cost":"0.0","category_supplement_2_cost":"0.0","category_supplement_3_cost":"0.0","supplement_1_cost":"0.0","supplement_2_cost":"0.0","supplement_3_cost":"0.0","items":[{"id":1801,"item_id":"A","item_description":"Grupo A","item_description_customer_translation":"Grupo A","item_full_description_customer_translation":"<li>3 puertas</li>\n<li>4 pasajeros</li>\n<li>Aire acondicionado</li> \n<li>Cobertura total</li>\n<li>Km ilimitados</li>","highlight_message":"MENSAJE DESTACADO","item_unit_cost_base":"165.0","item_unit_cost":"156.75","item_cost":"156.75","quantity":1,"days":3,"hours":0,"minutes":0,"product_deposit_unit_cost":"300.0","product_deposit_cost":"300.0","product_guarantee_unit_cost":"0.0","product_guarantee_cost":"0.0","photo_full":"https://demo-rentacar.mybooking.es/uploads/3/13/209/fiat-panda.png","photo_medium":"https://demo-rentacar.mybooking.es/uploads/3/13/209/medium/fiat-panda.png","offer_name":"OFERTA 2022","offer_discount_type":"percentage","offer_value":"5.0","offer_unit_amount":"8.25","offer_amount":"8.25","promotion_code_discount_type":null,"promotion_code_value":"0.0","promotion_code_unit_amount":"0.0","promotion_code_amount":"0.0","item_resources":[{"id":1792,"pax":0,"resource_user_name":null,"resource_user_surname":null,"resource_user_document_id":null,"resource_user_phone":null,"resource_user_email":null,"resource_user_2_name":null,"resource_user_2_surname":null,"resource_user_2_document_id":null,"resource_user_2_phone":null,"resource_user_2_email":null}]}],"extras":[{"id":2296,"extra_id":"SEGURO-EXTRA","extra_description":"Seguro Extra","extra_description_customer_translation":"Seguro Extra","extra_full_description_customer_translation":"<p><span style=\"font-family: \" open=\"\" sans\",=\"\" arial,=\"\" sans-serif;=\"\" font-size:=\"\" 14px;=\"\" text-align:=\"\" justify;=\"\" background-color:=\"\" rgb(255,=\"\" 255,=\"\" 255);\"=\"\">Aliquam blandit sodales nulla non sollicitudin. Aliquam sagittis purus a enim volutpat ultrices.</span><br></p>","extra_unit_cost":"0.0","extra_cost":"0.0","quantity":1,"photo_full":"https://demo-rentacar.mybooking.es/uploads/3/53/67/seguro.png","photo_medium":"https://demo-rentacar.mybooking.es/uploads/3/53/67/medium/seguro.png"}]},"sales_process":{"can_request":false,"can_pay_on_delivery":true,"can_pay":false,"can_pay_deposit":false,"can_pay_total":false,"multiple_products":false,"pickup_return_places_same_rental_location":false,"server_date":"2022-02-25","server_time":"06:44","timezone":"Atlantic/Azores"},"total":4,"products":[{"code":"A","name":"Grupo A","short_description":"Fiat Panda o un vehículo similar","description":"<li>3 puertas</li>\n<li>4 pasajeros</li>\n<li>Aire acondicionado</li> \n<li>Cobertura total</li>\n<li>Km ilimitados</li>","highlight_message":"MENSAJE DESTACADO","family_id":null,"family_name":null,"photos":[{"photo_path":"https://demo-rentacar.mybooking.es/uploads/3/13/209/medium/fiat-panda.png","full_photo_path":"https://demo-rentacar.mybooking.es/uploads/3/13/209/fiat-panda.png"}],"photo":"https://demo-rentacar.mybooking.es/uploads/3/13/209/medium/fiat-panda.png","full_photo":"https://demo-rentacar.mybooking.es/uploads/3/13/209/fiat-panda.png","video_source":"youtube","video_url":"","external_detail_url":null,"rate_type":{"id":5,"rate_type_scope":"company","name":"Estándar","default_rate_type":true,"default_web_public":true,"web_public":true,"payment_recurrence":"one_off","application_target":"categories","active":true,"creation_date":"2021-11-25T15:17:29.000-01:00","creation_user":"demo","last_update":"2022-02-08T06:58:58.000-01:00","last_update_user":"admin","company_id":1,"renting_contract_type_id":2,"category_rate_type_for_extras_supplements_id":2},"vat_type":"21.0","price_units":"days","base_price_without_taxes":"136.36","base_price":"165.0","unit_base_price":"55.0","unit_base_price_without_taxes":"45.45","price":"156.75","price_without_taxes":"129.55","unit_price":"52.25","unit_price_without_taxes":"43.18","deposit":"300.0","guarantee":"0.0","promotion_code_discount_type":null,"promotion_code_value":0,"offer_discount_type":"percentage","offer_value":"5.0","offer_name":"OFERTA 2022","offer_detailed_conditions":"<p><br></p>","availability":true,"stop_sales":false,"available":10,"few_available_units":false,"warning_few_units":0,"payment_availibility":false,"category_supplement_1_cost":"0.0","category_supplement_2_cost":"0.0","category_supplement_3_cost":"0.0","max_days":0,"min_days":0,"max_hours":0,"min_hours":24,"days":3,"hours":0,"minutes":0,"exceeds_max":false,"be_less_than_min":false,"renting_by_days":true,"renting_by_hours":false,"max_value":0,"min_value":0,"key_characteristics":{"doors":3,"seats":4,"suitcases":1,"transmission":"Manual","fuel":"G/D","air_conditioner":""}},{"code":"B","name":"Grupo B","short_description":"Fiat 500 o similar","description":"<li>3 puertas</li>\n<li>4 pasajeros</li>\n<li>Aire acondicionado</li> \n<li>Cobertura total</li>\n<li>Km ilimitados</li>","highlight_message":null,"family_id":null,"family_name":null,"photos":[{"photo_path":"https://demo-rentacar.mybooking.es/uploads/3/34/212/medium/Fiat-500L.png","full_photo_path":"https://demo-rentacar.mybooking.es/uploads/3/34/212/Fiat-500L.png"}],"photo":"https://demo-rentacar.mybooking.es/uploads/3/34/212/medium/Fiat-500L.png","full_photo":"https://demo-rentacar.mybooking.es/uploads/3/34/212/Fiat-500L.png","video_source":"youtube","video_url":null,"external_detail_url":null,"rate_type":{"id":5,"rate_type_scope":"company","name":"Estándar","default_rate_type":true,"default_web_public":true,"web_public":true,"payment_recurrence":"one_off","application_target":"categories","active":true,"creation_date":"2021-11-25T15:17:29.000-01:00","creation_user":"demo","last_update":"2022-02-08T06:58:58.000-01:00","last_update_user":"admin","company_id":1,"renting_contract_type_id":2,"category_rate_type_for_extras_supplements_id":2},"vat_type":"21.0","price_units":"days","base_price_without_taxes":"86.78","base_price":"105.0","unit_base_price":"35.0","unit_base_price_without_taxes":"28.93","price":"99.75","price_without_taxes":"82.44","unit_price":"33.25","unit_price_without_taxes":"27.48","deposit":"0.0","guarantee":"0.0","promotion_code_discount_type":null,"promotion_code_value":0,"offer_discount_type":"percentage","offer_value":"5.0","offer_name":"OFERTA 2022","offer_detailed_conditions":"<p><br></p>","availability":true,"stop_sales":false,"available":12,"few_available_units":false,"warning_few_units":0,"payment_availibility":false,"category_supplement_1_cost":"0.0","category_supplement_2_cost":"0.0","category_supplement_3_cost":"0.0","max_days":0,"min_days":0,"max_hours":0,"min_hours":24,"days":3,"hours":0,"minutes":0,"exceeds_max":false,"be_less_than_min":false,"renting_by_days":true,"renting_by_hours":false,"max_value":0,"min_value":0,"key_characteristics":{"doors":5,"seats":5,"suitcases":2,"transmission":"Manual","fuel":"G/D","air_conditioner":""}},{"code":"C","name":"Grupo C","short_description":"Fiat Doblo o similar","description":"<li>5 puertas</li>\n<li>5 pasajeros</li>\n<li>Aire acondicionado</li> \n<li>Cobertura total</li>\n<li>Km ilimitados</li>","highlight_message":null,"family_id":null,"family_name":null,"photos":[{"photo_path":"https://demo-rentacar.mybooking.es/uploads/3/35/215/medium/fiat-doblo.png","full_photo_path":"https://demo-rentacar.mybooking.es/uploads/3/35/215/fiat-doblo.png"}],"photo":"https://demo-rentacar.mybooking.es/uploads/3/35/215/medium/fiat-doblo.png","full_photo":"https://demo-rentacar.mybooking.es/uploads/3/35/215/fiat-doblo.png","video_source":"youtube","video_url":null,"external_detail_url":null,"rate_type":{"id":5,"rate_type_scope":"company","name":"Estándar","default_rate_type":true,"default_web_public":true,"web_public":true,"payment_recurrence":"one_off","application_target":"categories","active":true,"creation_date":"2021-11-25T15:17:29.000-01:00","creation_user":"demo","last_update":"2022-02-08T06:58:58.000-01:00","last_update_user":"admin","company_id":1,"renting_contract_type_id":2,"category_rate_type_for_extras_supplements_id":2},"vat_type":"21.0","price_units":"days","base_price_without_taxes":"111.57","base_price":"135.0","unit_base_price":"45.0","unit_base_price_without_taxes":"37.19","price":"135.0","price_without_taxes":"111.57","unit_price":"45.0","unit_price_without_taxes":"37.19","deposit":"0.0","guarantee":"0.0","promotion_code_discount_type":null,"promotion_code_value":0,"offer_discount_type":null,"offer_value":0,"offer_name":null,"offer_detailed_conditions":null,"availability":true,"stop_sales":false,"available":8,"few_available_units":false,"warning_few_units":0,"payment_availibility":false,"category_supplement_1_cost":"0.0","category_supplement_2_cost":"0.0","category_supplement_3_cost":"0.0","max_days":0,"min_days":0,"max_hours":0,"min_hours":24,"days":3,"hours":0,"minutes":0,"exceeds_max":false,"be_less_than_min":false,"renting_by_days":true,"renting_by_hours":false,"max_value":0,"min_value":0,"key_characteristics":{"doors":4,"seats":4,"suitcases":3,"transmission":"Manual","fuel":"D","air_conditioner":""}},{"code":"D","name":"Grupo D","short_description":"Jeep Cherokee o similar","description":"Senectus blandit fames tristique sollicitudin pellentesque aliquam \nporttitor habitant dictum et, proin habitasse commodo luctus montes.","highlight_message":null,"family_id":null,"family_name":null,"photos":[{"photo_path":"https://demo-rentacar.mybooking.es/uploads/3/36/218/medium/jeep-grand-cherokee.png","full_photo_path":"https://demo-rentacar.mybooking.es/uploads/3/36/218/jeep-grand-cherokee.png"}],"photo":"https://demo-rentacar.mybooking.es/uploads/3/36/218/medium/jeep-grand-cherokee.png","full_photo":"https://demo-rentacar.mybooking.es/uploads/3/36/218/jeep-grand-cherokee.png","video_source":"youtube","video_url":null,"external_detail_url":null,"rate_type":{"id":5,"rate_type_scope":"company","name":"Estándar","default_rate_type":true,"default_web_public":true,"web_public":true,"payment_recurrence":"one_off","application_target":"categories","active":true,"creation_date":"2021-11-25T15:17:29.000-01:00","creation_user":"demo","last_update":"2022-02-08T06:58:58.000-01:00","last_update_user":"admin","company_id":1,"renting_contract_type_id":2,"category_rate_type_for_extras_supplements_id":2},"vat_type":"21.0","price_units":"days","base_price_without_taxes":"136.36","base_price":"165.0","unit_base_price":"55.0","unit_base_price_without_taxes":"45.45","price":"165.0","price_without_taxes":"136.36","unit_price":"55.0","unit_price_without_taxes":"45.45","deposit":"0.0","guarantee":"0.0","promotion_code_discount_type":null,"promotion_code_value":0,"offer_discount_type":null,"offer_value":0,"offer_name":null,"offer_detailed_conditions":null,"availability":true,"stop_sales":false,"available":2,"few_available_units":true,"warning_few_units":2,"payment_availibility":false,"category_supplement_1_cost":"0.0","category_supplement_2_cost":"0.0","category_supplement_3_cost":"0.0","max_days":0,"min_days":0,"max_hours":0,"min_hours":24,"days":3,"hours":0,"minutes":0,"exceeds_max":false,"be_less_than_min":false,"renting_by_days":true,"renting_by_hours":false,"max_value":0,"min_value":0,"key_characteristics":{"doors":5,"seats":9,"suitcases":4,"transmission":"Manual","fuel":"D","air_conditioner":""}}],"extras":[{"code":"ELEVADOR","name":"Elevador","description":"<p><br></p>","extra_type":"extra","family_id":null,"family_name":null,"photo_path":"https://demo-rentacar.mybooking.es/uploads/3/45/164/medium/mybooking_extra-boster.png","photo_full_path":"https://demo-rentacar.mybooking.es/uploads/3/45/164/mybooking_extra-boster.png","video_source":"youtube","video_url":null,"fixed":false,"max_quantity":3,"max_sellable_quantity":3,"stock":50,"busy":0,"available":true,"unit_price":"0.0","one_unit_price":"0.0","price_calculation":"calculated_by_days","days":3,"hours":0,"minutes":0},{"code":"silla","name":"Silla para niño","description":"<p><br></p>","extra_type":"extra","family_id":null,"family_name":null,"photo_path":"https://demo-rentacar.mybooking.es/uploads/3/46/161/medium/mybooking_extra-child.png","photo_full_path":"https://demo-rentacar.mybooking.es/uploads/3/46/161/mybooking_extra-child.png","video_source":"youtube","video_url":null,"fixed":false,"max_quantity":1,"max_sellable_quantity":1,"stock":30,"busy":0,"available":true,"unit_price":"0.0","one_unit_price":"0.0","price_calculation":"calculated_by_days","days":3,"hours":0,"minutes":0}],"coverages":[{"code":"SEGURO-EXTRA","name":"Seguro Extra","description":"<p><span style=\"font-family: \" open=\"\" sans\",=\"\" arial,=\"\" sans-serif;=\"\" font-size:=\"\" 14px;=\"\" text-align:=\"\" justify;=\"\" background-color:=\"\" rgb(255,=\"\" 255,=\"\" 255);\"=\"\">Aliquam blandit sodales nulla non sollicitudin. Aliquam sagittis purus a enim volutpat ultrices.</span><br></p>","extra_type":"insurance","family_id":null,"family_name":null,"photo_path":"https://demo-rentacar.mybooking.es/uploads/3/53/67/medium/seguro.png","photo_full_path":"https://demo-rentacar.mybooking.es/uploads/3/53/67/seguro.png","video_source":null,"video_url":"","fixed":false,"max_quantity":0,"max_sellable_quantity":0,"stock":0,"busy":0,"available":true,"unit_price":"0.0","one_unit_price":"0.0","price_calculation":"calculated_by_days","days":3,"hours":0,"minutes":0},{"code":"SEGURO-PRO","name":"Seguro Pro","description":"<p><span style=\"font-size: 15px; background-color: rgb(255, 255, 255);\">Aliquam blandit sodales nulla non sollicitudin. Aliquam sagittis purus a enim volutpat ultrices.</span><br></p>","extra_type":"insurance","family_id":null,"family_name":null,"photo_path":"https://demo-rentacar.mybooking.es/uploads/3/54/68/medium/seguro-pro.png","photo_full_path":"https://demo-rentacar.mybooking.es/uploads/3/54/68/seguro-pro.png","video_source":"youtube","video_url":null,"fixed":false,"max_quantity":1,"max_sellable_quantity":1,"stock":1,"busy":0,"available":true,"unit_price":"0.0","one_unit_price":"0.0","price_calculation":"calculated_by_days","days":3,"hours":0,"minutes":0}]}
Permite conectar con la pasarela de pago para realizar el pago
Se ha de hacer un POST de un formulario con los campos indicados. Nuestra plataforma preparará la petición para conectar con la pasarela de pago y devolverá el código HTML que realizará la conexión con la misma.
Cuerpo:
Parámetro
Descripción
Detalle
id
Free Access Id de la reserva
String
Obligatorio
payment
Cantidad a pagar. Los posibles valores son:
deposit
total
pending
String
Obligatorio
payment_method
Forma de pago. Depende las plataformas de pago configurada.
GET /api/booking/frontend/booking/{free_access_id}
Permite consultar una reserva
Parámetros de PATH:
Parámetro
Descripción
Detalle
free_access_id
Identificador de la reserva obtenido al realizar el checkout del carrito de la reserva. Se trata de un hash que identifica de forma única cada reserva.
String
Obligatorio
Query String:
Parámetro
Descripción
Detalle
lang
Idioma
String Código ISO 639-1 (en,es,it, …)
Opcional
Resultado
Success
TIP
200
Object
booking
object[object]
id
integer
identificar reserva
date_from
String
Fecha de entrega en formato YYYY-MM-DD
data_from_short_format
String
Fecha de entrega en formato DD/MM/YY
date_from_default_format
String
Fecha de entrega en formato DD/MM/YYYY
date_from_extended_format
String
Fecha de entrega en formato DD MES-LITERAL YYYY
date_from_full_format
String
Fecha de entrega en formato DIA-SEMANA, DD MES-LITERAL YYYY
time_from
String
Hora de entrega en formato HH:MM
pickup_place
String
Lugar de entrega
pickup_place_customer_translation
String
Lugar de entrega traducción idioma cliente
custom_pickup_place
Boolean
Indica si el lugar de entrega es de la lista de los lugares de entrega preestablecidos (false) o bien si es un lugar especificado por el cliente.
date_to
String
Fecha de devolución en formato YYYY-MM-DD
data_to_short_format
String
Fecha de devolución en formato DD/MM/YY
date_to_default_format
String
Fecha de devolución en formato DD/MM/YYYY
date_to_extended_format
String
Fecha de devolución en formato DD MES-LITERAL YYYY
date_to_full_format
String
Fecha de devolución en formato DIA-SEMANA, DD MES-LITERAL YYYY
time_to
String
Hora de devolución en formato HH:MM
return_place
String
Lugar de devolución
return_place_customer_translation
String
Lugar de devolución traducción idioma cliente
custom_return_place
Boolean
Indica si el lugar de devolución es de la lista de los lugares de devolución preestablecidos (false) o bien si es un lugar especificado por el cliente
days
Integer
Número de días de la reserva (a efectos de facturación)
customer_name
String
Nombre de clientes
customer_surname
String
Apellidos del cliente
customer_phone
String
Télefono principal del cliente
customer_mobile_phone
String
Télefono alternativo del cliente
customer_email
String
Correo electrónico del cliente
customer_document_id
String
ID del cliente (Documento de identidad, pasaporte, …)
customer_language
String
Idioma del cliente (código ISO 639-1)
status
String
Estado de la reserva:
pending_confirmation
confirmed
in_progress
done
cancelled
free_access_id
String
Identificador de la reserva. Es un Hash que utilizaremos para acceder y actualizar la reserva en el servidor
destination_accomodation
String
Alojamiento en destino
driver_name
String
Nombre del conductor principal
driver_surname
String
Apellidos del conductor principal
driver_document_id
String
Documento de Identidad o pasaporte del conductor principal
driver_date_of_birth
String
Fecha de nacimiento del conductor en formato YYYY-MM-DD
driver_age
Integer
Edad del conductor
driver_driving_license_years
Integer
Número de años de la licencia de conducir
driver_age_allowed
Boolean
Indica si el conductor cumple los requerimientos de edad
driver_age_rule_id
Integer
Regla de la edad del conductor en función de la edad y de los años del permiso de conducir
driver_age_rule_description
String
Descripción de la regla del conductor en función de la edad y de los años del permiso de conducir
driver_age_rule_description_customer_translation
String
Descripción de la regla del conductor traducida al idioma del cliente
driver_driving_license_number
String
Número del permiso de conducir
driver_driving_license_date
String
Fecha de expedición del permiso de conducir en formato YYYY-MM-DD
driver_driving_license_country
String
País de expedición del permiso de conducir
flight_airport_origin
String
Aeropuerto Origen
flight_company
String
Compañía aérea (llegada)
flight_number
String
Vuelo (llegada)
flight_time
String
Hora prevista de llegada del vuelo. Formato HH:MM
flight_airport_destination
String
Aeropuerto Destino (regreso)
flight_company_departure
String
Compañía aérea (regreso)
flight_number_departure
String
Vuelo (regreso)
flight_time_departure
String
Hora prevista de salida del vuelo. Formato HH:MM
payment_status
String
Estado del cobro
none
deposit
total
refunded
pay_now
Boolean
Indica si el cliente selección pagar en destino o pagar online
payment_method_id
String
En el caso que el cliente selecció pagar online, registra la forma de pago que seleccionó
item_cost
String
Coste del vehículo
extras_cost
String
Coste de los extras
time_from_cost
String
Suplemento hora de entrega
pickup_place_cost
String
Suplemento lugar de entrega
time_to_cost
String
Suplemento hora de devolución
return_place_cost
String
Suplemento lugar devolución
driver_age_cost
String
Suplemento por la edad del conductor
category_supplement_1_cost
String
Suplemento del grupo de vehículo (combustible)
category_supplement_2_cost
String
Suplemento del grupo de vehículo (sin uso)
category_supplement_3_cost
String
Suplemento del grupo de vehículo (sin uso)
supplement_1_cost
String
Suplemento general (sin uso)
supplement_2_cost
String
Suplemento general (sin uso)
supplement_3_cost
String
Suplemento general (sin uso)
total_cost
String
Coste total de la reserva
total_paid
String
Total pagado
total_pending
String
Total pendiente
product_deposit_cost
String
Depósito del vehículo
driver_age_deposit
String
Depósito por la edad del conductor
total_deposit
String
Depósito total
{"booking":{"id":309049,"date_from":"2019-08-29","date_from_short_format":"29/08/19","date_from_default_format":"29/08/2019","date_from_extended_format":"29 Agosto 2019","date_from_full_format":"Jueves, 29 Agosto 2019","time_from":"14:00","date_to":"2019-09-04","date_to_short_format":"04/09/19","date_to_default_format":"04/09/2019","date_to_extended_format":"04 Septiembre 2019","date_to_full_format":"Mi\u00e9rcoles, 04 Septiembre 2019","time_to":"14:00","pickup_place":"Aeropuerto Menorca","pickup_place_customer_translation":"Aeropuerto Menorca","custom_pickup_place":false,"return_place":"Aeropuerto Menorca","return_place_customer_translation":"Aeropuerto Menorca","custom_return_place":false,"days":6,"customer_name":"LOREM","customer_surname":"IPSUM","customer_phone":"666101010","customer_mobile_phone":"","customer_email":"hola@mybooking.es","customer_document_id":null,"customer_language":null,"status":"confirmed","free_access_id":"1708c7b7cad095d5c9047c3819c557c9","destination_accommodation":null,"driver_name":null,"driver_surname":null,"driver_document_id":null,"driver_date_of_birth":null,"driver_age":null,"driver_driving_license_years":null,"driver_under_age":null,"driver_age_allowed":null,"driver_age_cost":"0.0","driver_age_deposit":"0.0","driver_age_rule_id":null,"driver_age_rule_description":null,"driver_age_rule_description_customer_translation":null,"driver_driving_license_number":null,"driver_driving_license_date":null,"driver_driving_license_country":null,"flight_airport_origin":null,"flight_company":null,"flight_number":null,"flight_time":null,"flight_airport_destination":null,"flight_company_departure":null,"flight_number_departure":null,"flight_time_departure":null,"payment_status":"deposit","pay_now":false,"payment_method_id":null,"item_cost":"182.0","extras_cost":"0.0","total_cost":"182.0","total_paid":"36.0","total_pending":"146.0","time_from_cost":"0.0","time_to_cost":"0.0","pickup_place_cost":"0.0","return_place_cost":"0.0","product_deposit_cost":"0.0","total_deposit":"0.0","category_supplement_1_cost":"0.0","category_supplement_2_cost":"0.0","category_supplement_3_cost":"0.0","supplement_1_cost":"0.0","supplement_2_cost":"0.0","supplement_3_cost":"0.0","booking_lines":[{"id":7783,"item_id":"A","item_description":"Clase A : Peugeot 107 o similar","item_description_customer_translation":"Clase A : Peugeot 107 o similar","item_unit_cost_base":"191.0","item_unit_cost":"182.0","item_cost":"182.0","quantity":1,"product_deposit_unit_cost":"0.0","product_deposit_cost":"0.0","booking_line_resources":[{"id":7789,"booking_item_category":"B","booking_item_reference":"PANDA-1234ABC","booking_item_stock_model":"","booking_item_stock_plate":"","booking_item_characteristic_1":null,"booking_item_characteristic_2":null,"booking_item_characteristic_3":null,"booking_item_characteristic_4":null]}],"booking_extras":[],"summary_status":"LOREM IPSUM, <strong>su reserva est\u00e1 confirmada</strong>"},
PUT /api/booking/frontend/booking/{free_access_id}
Permite actualizar la información necesaria de la reserva para el contrato
Parámetros de PATH:
Parámetro
Descripción
Detalle
free_access_id
Identificador de la reserva obtenido al realizar el checkout del carrito de la reserva. Se trata de un hash que identifica de forma única cada reserva.
String
Obligatorio
Query String:
Parámetro
Descripción
Detalle
lang
Idioma
String Código ISO 639-1 (en,es,it, …)
Opcional
Request Body:
Tipo
destination_accommodation
String
Alojamiento en destino
driver_name
String
Nombre del conductor principal
driver_surname
String
Apellidos del conductor principal
driver_document_id
String
Documento de Identidad o pasaporte del conductor principal
driver_document_id_date
String
Fecha de expedición del documento de identidad o pasaporte del conductor en formato YYYY-MM-DD
driver_date_of_birth
String
Fecha de nacimiento del conductor en formato YYYY-MM-DD
driver_driving_license_number
String
Número del permiso de conducir
driver_driving_license_date
String
Fecha de expedición del permiso de conducir en formato YYYY-MM-DD
driver_driving_license_country
String
País de expedición del permiso de conducir
flight_airport_origin
String
Aeropuerto Origen
flight_company
String
Compañía aérea (llegada)
flight_number
String
Vuelo (llegada)
flight_time
String
Hora prevista de llegada del vuelo. Formato HH:MM
flight_airport_destination
String
Aeropuerto Destino (regreso)
flight_company_departure
String
Compañía aérea (regreso)
flight_number_departure
String
Vuelo (regreso)
flight_time_departure
String
Hora prevista de salida del vuelo. Formato HH:MM
{"destination_accommodation":"Hotel Son Bou","driver_name":"James","driver_surname":"Gosling","driver_surname":"Brown","driver_document_id":"NHL12506717","driver_document_id_date":"1980-02-28","driver_date_of_birth":"1964-07-03","driver_driving_license_number":"43507854","driver_driving_license_date":"2030-12-01","driver_driving_license_country":"Spain","flight_airport_origin":"Alicante-Elche (ALC)","flight_company":"Iberia","flight_number":"KLM1687","flight_time":"21.15","flight_airport_destination":"Bilbao","flight_company_departure":"Air Europa","flight_number_departure":"AEA2201","flight_time_departure":"19:45"}