Booking List

This endpoint use GET method to fetch the list of bookings. Request headers have to include the token on the authentication key.

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

Response format and explanation of every field

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