Sell our private transfers and shared-bus tours in your own platform with live prices and instant confirmation.
The USA Caribbean Tours partner API lets travel agencies, OTAs and resellers sell our services in their own website or booking system, with live prices and instant confirmation. It has two independent products that share the same credentials, authentication and error format:
The Transfers API follows the ETG Transfers API v1 format, so partners already connected to that standard can reuse their integration. The same endpoints are also served under /api/v1/etg.
Credentials are issued by our team for each partner. To request access, contact us or apply to our partner program. You will receive a username and password together with your agreed currency and cancellation terms. The Transfers API and the Tours API are enabled separately: tell us which one you want to integrate.
Every request uses HTTP Basic authentication with the username and password we issue you. Send it over HTTPS only and keep it on your server: never put it in a browser, mobile app or public repository.
Authorization: Basic base64(username:password)Offers, orders and bookings are scoped to your account: you can only book, read or cancel what your own credentials created.
Build and test your integration without creating real bookings. You get two sets of credentials: test and live. Both use the same endpoints, URLs and request formats, so going live requires no code change.
test_ and every response body carries "test": true. Test and live bookings are separate: test credentials cannot read or cancel live bookings, and the reverse.X-Test-Mode: true. Live responses do not have it.HTTP/1.1 200 OK
X-Test-Mode: trueCheck the X-Test-Mode header (or test in Tours bodies) in your code so test data is never treated as real: do not charge customers, issue vouchers or send confirmations for it.
POST with a JSON body (Content-Type: application/json).{ "code": string, "error": string }; each product lists its codes in its own Errors section.Private airport and point-to-point transfers with fixed-price offers.
{ "amount": 95.0, "currency": "USD" }.start_date_time as the local wall-clock time of the pickup; a trailing Z is accepted but read as local time, not UTC. We answer with the same time and the pickup's real UTC offset, for example 2026-12-15T14:30:00-04:00.{ "offers": [] }.Returns bookable offers for a route. Each offer has a fixed price and can be booked for up to 24 hours (or until the minimum advance time before the trip, whichever comes first).
| Field | Type | Required | Description |
|---|---|---|---|
| passengers | integer | Yes | Number of passengers, 1–100. |
| start_date_time | string | Yes | Pickup date and local time, RFC 3339. |
| start_point | object | Yes | { "type": "iata", "iata": "PUJ" } for an airport, or { "type": "coordinates", "coordinates": { "lat": 18.56, "lon": -68.37 } } for any other address. address (text) is optional. |
| end_point | object | Yes | Same format as start_point. |
| children_seat_0 | integer | No | Cradles, 0–13 kg (under 1 year). |
| children_seat_1 | integer | No | Child seats, 9–18 kg (1–4 years). |
| children_seat_2 | integer | No | Child seats, 15–25 kg (3–7 years). |
| children_seat_3 | integer | No | Child seats, 22–36 kg (6–12 years). |
curl -X POST https://usacaribbeantours.com/api/v1/transfers/search \
-u "YOUR_USERNAME:YOUR_PASSWORD" \
-H "Content-Type: application/json" \
-d '{
"passengers": 4,
"children_seat_1": 1,
"start_date_time": "2026-12-15T14:30:00Z",
"start_point": { "type": "iata", "iata": "PUJ" },
"end_point": {
"type": "coordinates",
"coordinates": { "lat": 18.6812, "lon": -68.4124 },
"address": "Hotel Riu Palace, Bávaro"
}
}'{
"start_date_time": "2026-12-15T14:30:00-04:00",
"offers": [
{
"id": "cmh2x8k1p0001qz8l3f9a7b2c",
"service_type": "transfer",
"transfer_category": "economy_van",
"car_model": "Toyota Hiace",
"seats": 7,
"luggage_places": 7,
"estimated_duration_minutes": 35,
"distance": 24.6,
"included_waiting_time_minutes": 60,
"children_seat_0": 0,
"children_seat_1": 1,
"children_seat_2": 0,
"children_seat_3": 0,
"price": { "amount": 95.0, "currency": "USD" },
"upsells": [
{ "id": "children_seat_1", "type": "children_seat_1", "price": 10, "count": 1, "max_count": 2 }
],
"tolls_included": true,
"gratuity_included": false,
"free_cancel_until": "2026-12-14T14:30:00-04:00"
}
]
}id is the offer_id you send to /book.distance is in kilometres. One offer per vehicle category and capacity (the cheapest).Confirms an offer. The price is always the one returned by search. The booking must ask for the same child seats the offer was searched with.
| Field | Type | Required | Description |
|---|---|---|---|
| offer_id | string | Yes | The offer id from /search. |
| passengers | integer | Yes | Cannot exceed the offer's seats. |
| luggage_places | integer | Yes | Number of suitcases. |
| flight_number | string | Yes | Flight number, or "No flight" for non-airport pickups. |
| shield_text | string | Yes | Name shown on the driver's sign (can be empty). |
| main_passenger | object | Yes | first_name, last_name, phone, email (required); middle_name (optional). |
| start_point | object | Yes | Pickup point, same format as search. |
| end_point | object | Yes | Drop-off point. |
| comment | string | No | Notes for the driver. |
| upsells | array | No | Extras from the offer: [{ "id": "children_seat_1", "count": 1 }]. |
| sport_luggage_places | integer | No | Sports equipment items. |
| wheelchairs_places | integer | No | Wheelchairs. |
| animals_places | integer | No | Pets. |
| children_seat_0 | integer | No | Cradles, 0–13 kg (under 1 year). Must match the search. |
| children_seat_1 | integer | No | Child seats, 9–18 kg (1–4 years). Must match the search. |
| children_seat_2 | integer | No | Child seats, 15–25 kg (3–7 years). Must match the search. |
| children_seat_3 | integer | No | Child seats, 22–36 kg (6–12 years). Must match the search. |
{
"offer_id": "cmh2x8k1p0001qz8l3f9a7b2c",
"passengers": 4,
"luggage_places": 4,
"children_seat_1": 1,
"flight_number": "AA1234",
"shield_text": "SMITH FAMILY",
"comment": "Arriving with a stroller",
"main_passenger": {
"first_name": "John",
"last_name": "Smith",
"phone": "+15551234567",
"email": "john.smith@example.com"
},
"start_point": { "type": "iata", "iata": "PUJ" },
"end_point": {
"type": "coordinates",
"coordinates": { "lat": 18.6812, "lon": -68.4124 },
"address": "Hotel Riu Palace, Bávaro"
}
}{
"order_id": "T-7KQ4M2X",
"pin_code": "4821",
"supplier_link": "https://usacaribbeantours.com/admin/external-api/etg/orders/T-7KQ4M2X",
"start_time": "2026-12-15T14:30:00-04:00",
"distance": 24.6,
"estimated_duration_minutes": 35,
"included_waiting_time_minutes": 60,
"buffer_time_minutes": 0,
"passengers": 4,
"luggage_places": 4,
"sport_luggage_places": 0,
"animals": 0,
"wheelchairs_places": 0,
"children_seat_0": 0,
"children_seat_1": 1,
"children_seat_2": 0,
"children_seat_3": 0,
"flight_number": "AA1234",
"shield_text": "SMITH FAMILY",
"comment": "Arriving with a stroller",
"price": { "amount": 95.0, "currency": "USD" },
"meeting_instructions": "Our driver waits at the arrivals exit holding a sign with your name."
}order_id is short and easy to read over the phone. Store it: you need it for /status and /cancel.pin_code lets the passenger identify themselves to the driver.supplier_link points to the order in our back office, for our support team.meeting_instructions and upsells are only present when they apply.Returns the current state of an order.
| Field | Type | Required | Description |
|---|---|---|---|
| order_id | string | Yes | The order id from /book. |
{
"status": "completed",
"order_id": "T-7KQ4M2X",
"start_time": "2026-12-15T14:30:00-04:00",
"free_cancel_until": "2026-12-14T14:30:00-04:00",
"price": { "amount": 95.0, "currency": "USD" },
"transfer_category": "economy_van",
"main_passenger": { "first_name": "John", "last_name": "Smith", "phone": "+15551234567" },
"passengers": 4,
"luggage_places": 4,
"sport_luggage_places": 0,
"animals": 0,
"included_waiting_time_minutes": 60,
"buffer_time_minutes": 0,
"comment": "Arriving with a stroller",
"shield_text": "SMITH FAMILY",
"driver_info": {
"first_name": "Carlos",
"last_name": "Pérez",
"phone": "+18095551234",
"carrier_company_name": "USA Caribbean Tours"
},
"car_info": { "car_model": "Toyota Hiace", "plate_number": "A123456", "color": "White" },
"meeting_info": { "instructions": "Arrivals hall, exit B." }
}status is completed (confirmed and active) or cancelled.driver_info, car_info and meeting_info appear only after we assign them. Call /status again closer to the trip to pick them up.Cancels an order. It always succeeds, even when a driver is already assigned. Inside the free cancellation window (free_cancel_until) the penalty is 0; after it, the penalty agreed in your contract applies (never more than the order price).
| Field | Type | Required | Description |
|---|---|---|---|
| order_id | string | Yes | The order id from /book. |
{ "penalty": { "amount": 0, "currency": "USD" } }Cancelling the same order again is safe and returns the same penalty.
{ "code": "validation_error", "error": "passengers must be an integer between 1 and 100" }| code | HTTP | Meaning |
|---|---|---|
| unauthorized | 401 | Missing or wrong credentials, or the account is disabled. |
| validation_error | 400 | The body is not valid JSON or a field is missing or invalid. The message names the field. |
| offer_not_found | 400 | The offer_id does not exist or belongs to another account. |
| offer_expired | 400 | The offer is no longer bookable. Run a new search. |
| order_not_found | 400 | The order_id does not exist or belongs to another account. |
| internal_error | 500 | Unexpected error on our side. Safe to retry; contact us if it persists. |
transfer_category uses these values. car_model gives the actual make and model (for example "Toyota Hiace"), and seats the real capacity.
X-Test-Mode: true and those orders must never be treated as real.offer_expired, search again.order_id and pin_code and give the passenger the pin.{ "offers": [] } as "not available", not as a failure.Questions about the integration? Contact us.
Seats on scheduled shared-bus tours, with live availability and automatic seat assignment.
The Tours API lets you sell seats on our scheduled shared-bus tours in your own website or booking system, with live availability, instant confirmation and automatic seat assignment. A tour runs on fixed weekdays and times; you book a number of seats on one departure.
partner_reference.The Tours API uses the same credentials as the rest of our partner API, but it is enabled separately for each partner by our team. If you receive 403 forbidden, your account does not have tours yet: contact us. Together with access you receive your contracted rates and cancellation terms.
POST with a JSON body and the error shape are the same as described above.snake_case. Dates are YYYY-MM-DD and times HH:mm (24 hours).America/New_York). Timestamps such as cancellable_until carry their UTC offset.USD; the response also includes currency.Accept-Language (en, es or pt, default en) translates tour, location and vehicle names in /products.departures list when the tour does not operate that day.X-Test-Mode: true and a top-level "test": true. See Test mode.partner_reference for the chosen departure. Store the returned booking_id.cancellable_until.Everything in this section is additive and backward compatible: requests that only send passengers keep working exactly as before (that many adult seats in standard seats), and the existing response fields are unchanged.
passenger_prices.*.child); when the tour has no child price it equals the adult price.validation_error).It depends on the vehicle (vehicle.infants_require_seat in /products). When it is false infants ride on a lap: they take no seat, are not counted in passengers or seats_available, and each adult can carry at most one (infants cannot exceed adults). When it is true each infant takes a seat (still free) and counts in passengers.
Some vehicles are double-deckers (vehicle.double_decker) and some have VIP seats (vehicle.has_vip_seats), usually the front row of the upper deck. VIP seats have their own prices (vip_adult, vip_child: they fall back to the standard prices when the tour has none). You choose a seat_class for the whole booking, standard (default) or vip, and we assign the first free seats of that class, front to back and lower deck first. Standard bookings never take VIP seats. Seat ids of the upper deck start with U- (for example U-A1). vehicle.total_seats counts both decks.
passengers, meaning that many adults.adults, children, infants (missing counts are 0). passengers then becomes optional.passengers must equal the number of seated travelers: adults + children, plus infants when the vehicle requires a seat for them. Otherwise validation_error.{
"partner_reference": "OTA-12346",
"tour_id": "cmh3a1b2c0001qz8l9d4e5f6g",
"date": "2026-12-07",
"time": "08:00",
"passengers": 2,
"customer": { "first_name": "Ann", "last_name": "Lee", "email": "ann@example.com", "phone": "+15551234567" }
}Lists the active tours available to you with the price per person of your contracted rate. Send an empty body, or a tour_id to fetch a single tour.
| Field | Type | Required | Description |
|---|---|---|---|
| tour_id | string | No | Return only this tour. |
curl -X POST https://usacaribbeantours.com/api/v1/tours/products \
-u "YOUR_USERNAME:YOUR_PASSWORD" \
-H "Content-Type: application/json" \
-d '{}'{
"currency": "USD",
"tours": [
{
"tour_id": "cmh3a1b2c0001qz8l9d4e5f6g",
"name": "Miami to Key West",
"description": "Full-day tour with a guide and stops along the Overseas Highway.",
"duration_minutes": 600,
"min_passengers": 1,
"vehicle": {
"name": "Double-decker",
"capacity": 40,
"total_seats": 80,
"double_decker": true,
"has_vip_seats": true,
"infants_require_seat": false
},
"start_location": { "id": "cmh3a0000000aqz8l1111aaaa", "name": "Miami Downtown", "city": "Miami" },
"end_location": { "id": "cmh3a0000000bqz8l2222bbbb", "name": "Key West", "city": "Key West" },
"pickup_points": [
{ "location_id": "cmh3a0000000aqz8l1111aaaa", "name": "Miami Downtown", "city": "Miami", "time": "07:00", "order": 0 }
],
"dropoff_points": [
{ "location_id": "cmh3a0000000bqz8l2222bbbb", "name": "Key West", "city": "Key West", "time": null, "order": 1 }
],
"restrictions": [],
"round_trip": {
"available": true,
"price_per_person": 120.0,
"return_departures": [
{
"departure_time": "17:00",
"pickup_points": [
{ "location_id": "cmh3a0000000bqz8l2222bbbb", "name": "Key West", "city": "Key West", "time": "17:00", "order": 0 }
],
"dropoff_points": [
{ "location_id": "cmh3a0000000aqz8l1111aaaa", "name": "Miami Downtown", "city": "Miami", "time": null, "order": 1 }
]
}
]
},
"price_per_person": 75.0,
"passenger_prices": {
"one_way": { "adult": 75.0, "child": 50.0, "infant": 0.0, "vip_adult": 90.0, "vip_child": 60.0 },
"round_trip": { "adult": 120.0, "child": 80.0, "infant": 0.0, "vip_adult": 140.0, "vip_child": 90.0 }
},
"requires_pickup_address": false,
"weekly_schedule": [
{ "day_of_week": 1, "time": "08:00", "end_time": "18:00" },
{ "day_of_week": 6, "time": "08:00", "end_time": "18:00" }
]
}
]
}price_per_person is the one-way price. round_trip.price_per_person is the price for the round trip, per person; when round trip is not offered, round_trip.available is false and the price is null.passenger_prices (new) has the per-seat prices of your rate for one_way and round_trip (null when not offered): adult, child (3–12), infant (0–2, always 0), vip_adult and vip_child.vehicle (new fields): total_seats, double_decker, has_vip_seats and infants_require_seat; capacity is unchanged (lower deck).pickup_points and dropoff_points are the locations you can send in /book (order is the position along the route; the pickup must come before the drop-off). time is the stop's pickup time when there is one.restrictions lists combinations that cannot be booked: a pickup that cannot be paired with a given drop-off.return_departures lists the return times and points offered for a round trip.requires_pickup_address is true when the tour picks up at the customer's address; send pickup_address in /book.weekly_schedule shows when the tour usually runs (day_of_week: 0 = Sunday). Always use /availability for the real answer for a date.Returns the departures of a tour on a date with the seats still free and the price for your party size. Departures that start sooner than our minimum advance time are not listed.
| Field | Type | Required | Description |
|---|---|---|---|
| tour_id | string | Yes | The tour id from /products. |
| date | string | Yes | Travel date, YYYY-MM-DD. Not in the past and at most 365 days ahead. |
| passengers | integer | No | Seated adults, as before (1 to 50). Optional when adults / children / infants are sent; required otherwise. If both are sent it must equal the seated count. |
| adults | integer | No | New. Adults, at least 1 when the counts are used. |
| children | integer | No | New. Children aged 3–12. Default 0. |
| infants | integer | No | New. Infants aged 0–2. Default 0. Not seated unless the vehicle requires it; at most one per adult. |
| seat_class | string | No | New. "standard" (default) or "vip": which seats the price and bookable refer to. |
| round_trip | boolean | No | Price the round trip. Only valid for tours that offer it. Default false. |
| pickup_location_id | string | No | Optional, validated like in /book. |
| dropoff_location_id | string | No | Optional, validated like in /book. |
curl -X POST https://usacaribbeantours.com/api/v1/tours/availability \
-u "YOUR_USERNAME:YOUR_PASSWORD" \
-H "Content-Type: application/json" \
-d '{
"tour_id": "cmh3a1b2c0001qz8l9d4e5f6g",
"date": "2026-12-07",
"adults": 2,
"children": 1,
"infants": 1
}'{
"tour_id": "cmh3a1b2c0001qz8l9d4e5f6g",
"date": "2026-12-07",
"currency": "USD",
"departures": [
{
"time": "08:00",
"end_time": "18:00",
"seats_available": 12,
"vip_seats_available": 6,
"bookable": true,
"price_per_person": 75.0,
"prices": { "adult": 75.0, "child": 50.0, "infant": 0.0, "vip_adult": 90.0, "vip_child": 60.0 },
"total_price": 200.0
}
]
}test is true only with test credentials, and absent otherwise. The same applies to /products, /book, /status and /cancel.time is the value you send as time in /book.seats_available is the number of free standard (non-VIP) seats, the same number as before on vehicles without VIP seats. vip_seats_available (new) is the free VIP seats.bookable is true when the free seats of your seat_class cover the seated travelers.price_per_person is the standard adult price. prices (new) has all per-type prices.total_price is the sum for your party and seat_class, rounded to two decimals. With only passengers it is price_per_person × passengers, as before.Books seats on a departure. The booking is confirmed immediately and the seats are assigned automatically, in order, from the free seats of the vehicle. Payment is not taken through the API: bookings are billed to your partner account at your contracted rate.
| Field | Type | Required | Description |
|---|---|---|---|
| partner_reference | string | Yes | Your own unique id for the booking, 1–100 characters. It makes the call safe to retry (see below). |
| tour_id | string | Yes | The tour id from /products. |
| date | string | Yes | Travel date, YYYY-MM-DD. |
| time | string | Yes | Departure time from /availability, HH:mm. |
| passengers | integer | No | Seated adults (1 to 50), as before. Required unless adults / children / infants are sent; if both are sent it must equal the seated count (lap infants not counted). |
| adults | integer | No | New. Adults; at least 1 when the counts are used. |
| children | integer | No | New. Children aged 3–12. Default 0. |
| infants | integer | No | New. Infants aged 0–2, free. Lap infants (default vehicles) take no seat, max one per adult; on vehicles with infants_require_seat they take a seat. |
| seat_class | string | No | New. "standard" (default) or "vip". Standard picks free non-VIP seats, vip picks free VIP seats; not enough free seats of the class gives not_available. |
| customer | object | Yes | first_name, last_name, email, phone. |
| round_trip | boolean | No | Book the round trip. Only for tours that offer it. Default false. |
| pickup_location_id | string | No | Must be a pickup point of the tour (pickup_points[].location_id). Required when the tour defines its own stops; optional on tours without stops (defaults to the start location). The pickup must come before the drop-off. |
| dropoff_location_id | string | No | Must be a drop-off point of the tour (dropoff_points[].location_id) and not blocked by the pickup's restrictions. Required when the tour defines its own stops; optional on tours without stops (defaults to the end location). |
| return | object | No | Only with round_trip: true: pickup_location_id, dropoff_location_id and departure_time of the return leg, taken from return_departures when the tour lists them. |
| pickup_address | string | No | Required when requires_pickup_address is true. Up to 500 characters. |
| expected_total_price | number | No | The total you showed your customer. If it differs from the current price the call fails with price_changed and nothing is booked. |
curl -X POST https://usacaribbeantours.com/api/v1/tours/book \
-u "YOUR_USERNAME:YOUR_PASSWORD" \
-H "Content-Type: application/json" \
-H "Accept-Language: en" \
-d '{
"partner_reference": "OTA-12345",
"tour_id": "cmh3a1b2c0001qz8l9d4e5f6g",
"date": "2026-12-07",
"time": "08:00",
"adults": 2,
"children": 1,
"infants": 1,
"seat_class": "standard",
"round_trip": true,
"pickup_location_id": "cmh3a0000000aqz8l1111aaaa",
"dropoff_location_id": "cmh3a0000000bqz8l2222bbbb",
"return": {
"pickup_location_id": "cmh3a0000000bqz8l2222bbbb",
"dropoff_location_id": "cmh3a0000000aqz8l1111aaaa",
"departure_time": "17:00"
},
"customer": {
"first_name": "John",
"last_name": "Smith",
"email": "john.smith@example.com",
"phone": "+15551234567"
},
"expected_total_price": 320.0
}'The response is the same booking object returned by /status.
With test credentials the booking is validated and priced like a live one, but no seats are held. The booking_id starts with test_ (for example test_cmh3k9z8y0007qz8l5m6n7o8p), the body has "test": true and the response has the header X-Test-Mode: true. Idempotency and cancellation work as in live.
partner_reference is unique per partner. If a call times out, repeat it with the same body: you get the existing booking back (HTTP 200, no second booking). Reusing the reference with a different tour, date, time, passenger mix or seat class returns 409 conflict.
seats. Two concurrent bookings never receive the same seat; if the departure fills up meanwhile you get not_available.expected_total_price to be protected against price changes between /availability and /book.Returns the current state of a booking. Identify it with either field. You can only read bookings made with your own credentials.
| Field | Type | Required | Description |
|---|---|---|---|
| booking_id | string | No | The booking id returned by /book. |
| partner_reference | string | No | Your reference. Send either booking_id or partner_reference. |
{
"booking_id": "cmh3k9z8y0007qz8l5m6n7o8p",
"partner_reference": "OTA-12345",
"status": "confirmed",
"tour_id": "cmh3a1b2c0001qz8l9d4e5f6g",
"tour_name": "Miami to Key West",
"date": "2026-12-07",
"time": "08:00",
"passengers": 3,
"adults": 2,
"children": 1,
"infants": 1,
"seat_class": "standard",
"seats": ["A1", "A2", "A3"],
"passenger_details": [
{ "type": "adult", "seat": "A1", "vip": false, "price": 120.0 },
{ "type": "adult", "seat": "A2", "vip": false, "price": 120.0 },
{ "type": "child", "seat": "A3", "vip": false, "price": 80.0 },
{ "type": "infant", "seat": null, "vip": false, "price": 0.0 }
],
"round_trip": true,
"pickup_location": { "id": "cmh3a0000000aqz8l1111aaaa", "name": "Miami Downtown", "city": "Miami" },
"dropoff_location": { "id": "cmh3a0000000bqz8l2222bbbb", "name": "Key West", "city": "Key West" },
"return": {
"pickup_location": { "id": "cmh3a0000000bqz8l2222bbbb", "name": "Key West", "city": "Key West" },
"dropoff_location": { "id": "cmh3a0000000aqz8l1111aaaa", "name": "Miami Downtown", "city": "Miami" },
"departure_time": "17:00"
},
"customer": {
"first_name": "John",
"last_name": "Smith",
"email": "john.smith@example.com",
"phone": "+15551234567"
},
"total_price": 320.0,
"currency": "USD",
"cancellable_until": "2026-12-06T08:00:00-05:00",
"created_at": "2026-11-02T15:04:05Z",
"cancelled_at": null
}status is one of confirmed, cancelled, completed, checked_in or no_show.passengers is the number of seats the booking occupies (lap infants excluded). adults, children, infants (new) are the counts by type.seats are the seat labels assigned to the booking (upper-deck ids start with U-).passenger_details (new) has one entry per traveler: type (adult, child, infant), seat (null for a lap infant), vip and price. seat_class (new) is what was booked. Bookings made before these fields existed report all travelers as standard adults.return is null for one-way bookings; pickup_location and dropoff_location are null when the tour has no stops.cancellable_until is the last moment you can cancel (departure minus the cancellation window, with the Eastern time offset).cancelled_at is null until the booking is cancelled.test is true for bookings made with test credentials (and only those); it is absent on live bookings.Cancels a booking and frees its seats immediately. It is allowed until cancellable_until (24 hours before departure unless your contract says otherwise). After that the call fails with 409 cancellation_not_allowed; contact us for exceptions.
| Field | Type | Required | Description |
|---|---|---|---|
| booking_id | string | No | The booking id returned by /book. |
| partner_reference | string | No | Your reference. Send either booking_id or partner_reference. |
curl -X POST https://usacaribbeantours.com/api/v1/tours/cancel \
-u "YOUR_USERNAME:YOUR_PASSWORD" \
-H "Content-Type: application/json" \
-d '{ "partner_reference": "OTA-12345" }'The response is the booking object with status: "cancelled" and cancelled_at set. Cancelling a booking that is already cancelled is safe and returns the same object.
{ "code": "not_available", "error": "Not enough seats left on this departure" }| code | HTTP | Meaning |
|---|---|---|
| unauthorized | 401 | Missing or wrong credentials, or the account is disabled. |
| forbidden | 403 | Your credentials are valid but the Tours API is not enabled for your account. Contact us. |
| validation_error | 400 | The body is not valid JSON or a field is missing or invalid. The message names the field. |
| not_found | 404 | The tour, location or booking does not exist, or the booking belongs to another account. |
| not_available | 409 | The tour does not operate on that date or time, there are not enough seats, or the departure is inside the booking window (too soon to sell). |
| price_changed | 409 | You sent expected_total_price and it differs from the current price. Read the new price from /availability and confirm it with your customer. |
| conflict | 409 | The partner_reference was already used for a different booking request. |
| cancellation_not_allowed | 409 | The booking can no longer be cancelled: the cancellation deadline has passed or its status does not allow it. |
| busy | 503 | Another request was booking seats on the same departure and we could not get the seats in time. Retry the same call with the same partner_reference. |
| internal_error | 500 | Unexpected error on our side. Safe to retry with the same partner_reference; contact us if it persists. |
X-Test-Mode: true, are never treated as real.tour_id, pickup and drop-off points.departures list or bookable: false as "not available".partner_reference per booking and retry /book with the same one after a timeout or a 5xx.expected_total_price and handle price_changed and not_available by re-checking availability.booking_id and show your customer the date, time, pickup point and seats.cancellable_until) and cancel through /cancel.Questions about the integration? Contact us.