Booking Create

This endpoint use POST method to create the booking. Request headers have to include the token on the authentication key.

Endpoint
POST https://{{base_url}}/api-v2/booking/
Headers
{
    ...
    "authentication": "token {{YOUR_NEW_TOKEN}}"
    ...
}

Request and response format and explanation of every field

Request
{
    "passenger": {
        "name": "PRUEBA",
        "last_name": "PRUEBA",
        "country": "Chile",
        "email": "test@test.com",
        "passport_or_dni": "123123123",
        "phone": "+56999999999"
    },
    "notes": "GENERAL TEST NOTE",
    "reference_number": "REF1234",
    "currency": "CLP",
    "services": [
        {
            "service_code": 44220,
            "adults": 2,
            "children": 0,
            "sale_price": 56000,
            "language": "Español",
            "travel_date": "2024-10-10",
            "flight_number": "FLX234",
            "notes": "TEST NOTE FOR SERVICE"
        }
    ],
}
KeyTypeMandatoryDescription
passengerObjectRequiredAn Object containing all the passenger information
passenger.namestringRequiredPassenger name
passenger.last_namestringRequiredPassenger last name
passenger.countrystringRequiredPassenger country of residence
passenger.emailstringRequiredpassenger Email of contact
passenger.passport_or_dnistringRequiredpassenger passport or dni
passenger.phonestringRequiredpassenger phone
notesstringOptionalNotes that may be important for the passenger for the general booking
reference_numberstringOptionalReference number of the booking on the client side.
currencystringRequiredCurrency code of the sale price, options are CLP and USD
servicesArrayRequiredAn array with the specific version of the service to book
services.*.service_codenumberRequiredId of the specific version of the service
services.*.adultsnumberRequiredadults amount
services.*.childrennumberRequiredchildrens amount
services.*.sale_pricenumberRequiredsale price
services.*.languagestringRequiredLanguage of the service guide and/or driver only one from the array of languages of the service
services.*.travel_datestringRequiredDate of the service on format YYYY-MM-DD
services.*.flight_numberstringOptionalCode of the Flight Number, maximum 6 characters
services.*.notesstringOptionalNotes that may be important for the passenger for this service, maximum 250 characters
Response
{
    "booking_id": "904638",
    "reference_number": "",
    "is_active": true,
    "created_at": "2024-08-12T15:53:54.330350-04:00",
    "cancellation_date": "2024-10-08",
    "name": "PRUEBA",
    "last_name": "PRUEBA",
    "passport_or_dni": "123123123",
    "email": "test@test.com",
    "phone": "+56999999999",
    "country": "Chile",
    "notes": "NOTA GENERAL DE PRUEBA",
    "sale_price": 56000.0,
    "currency": "CLP",
    "services": [
        {
            "service_code": "44220",
            "description": "TRANSFER SANTIAGO AIRPORT /SANTIAGO HOTEL\r\n\r\nTRANSFERS FROM/TO HOTELS LOCATED IN SANTIAGO CENTRO, PROVIDENCIA, LAS CONDES, VITACURA AND HOTELS IN THE AIRPORT AREA.",
            "meeting_point": "Airport",
            "service_duration": "Other",
            "name": "TRANSFER SANTIAGO AIRPORT /SANTIAGO HOTEL",
            "language": "Español",
            "guide": "Driver",
            "concepts": ["Transfer"],
            "cover_image": "https://storage.googleapis.com/cts_storage/ctsonline/online_reservations/transfers_image.webp",
            "city": "SANTIAGO, CHILE",
            "country": "CHILE",
            "is_regular": false,
            "service_type": "transfer",
            "travel_date": "2024-10-10",
            "flight_number": "LA2345",
            "notes": "pickup at: 10:30",
            "cancellation_date": "2024-10-08",
            "sale_price": 56000.0,
            "adults": 2,
            "children": 0,
            "is_active": true,
            "created_at": "2024-08-12T15:53:54.338082-04:00",
        }
    ],
}
KeyTypeDescription
booking_idstringnumber of the booking, unique identifier
reference_numberstringreference number added by the user
is_activebooleanwheter the booking is active
created_atstringdate when the booking was created at
cancellation_datestringcancellation date of the booking
namestringname of the passenger
last_namestringlast name of the passenger
passport_or_dnistringPassport or DNI of the passenger
emailstringemail of the passenger
phonestringphone of the passenger
countrystringcountry of the passenger
notesstringgeneral notes added on the moment of create the booking
sale_pricenumbersale price of the booking
currencystringcurrency of the booking, options are CLP and USD
servicesArrayArray of services on the booking created
services.*.service_codestringcode of the service
services.*.descriptionstringDescription of the service on english
services.*.meeting_pointstringMeeting point of the service on english
services.*.service_durationstringDuration of the service booked
services.*.namestringName of the service
services.*.languagestringlanguage of the service
services.*.guidestringOptions are Driver if only include a driver, Driver + Guide if include a Guide and Driver/Guide if the driver is the guide
services.*.conceptsArrayAn array with concepts included with the excursion or transfer
services.*.cover_imagestringcover image of the service
services.*.citystringCity of the service
services.*.countrystringCountry of the service
services.*.is_regularbooleanWhether the service is shared or private, true if the service is shared, false if the service is private
services.*.service_typestringWhether the service is excursion or transfer, options are excursion and transfer
services.*.travel_datestringDate of the service on format YYYY-MM-DD
services.*.flight_numberstringflight number of the passenger
services.*.notesstringnotes added on the booking creation
services.*.cancellation_datenumbercancellation date of the service
services.*.sale_pricenumbersale price of the service
services.*.adultsnumberamount of adults passengers
services.*.childrennumberamount of children passengers
services.*.created_atstringcreated_at date of the service on format YYYY-MM-DD
services.*.is_activebooleanwheter the service is active, true if service is active, false if service is not active
services.*.cancellation_datestringcancelation date of the service on format YYYY-MM-DD