Skip to main content

Departure Services

Resources​

  • /trips
  • /bookings/\{bookingId\}/trips

Methods​

  • GET
  • POST
  • PATCH

Summary of changes​

Pagination has changed -> See request query parameter changes for details

Booked trips can be retrieved with or without a bookingId path parameter e.g. GET /bookings/{bookingId}/trips/{tripId} OR GET /bookings/trips/{tripId}. To retrieve a list of booked trips, a bookingId is mandatory.

Several field names have been updated. See response changes for a list of fields and their counterparts in the GET /bookings endpoint of the Partner API

Several fields have been removed from the GET /bookings response. See removed fields section for full details.

Request body changes​

Lists all request body parameters that can be set on a POST or PATCH to the trip booking resource, and their corresponding parameters in the Partner API.

DescriptionPublic APIPartner APITypeNotes
Departure Code — add a trip departure & room optiondepartureCodedepartureCodestringSets roomOptionId for the departure. Cannot be updated.
Agent — set the agent on the bookingpromotionCodepromotionCodestringNo change
Booking Notes — notes for support teams to actionhrefid / status / singleSupplementobjectSee customer status example below
Store Agent — set the store agent on the bookingexternalReferenceexternalReferencestringNo change, cannot be updated
DescriptionPublic APIPartner APITypeNotes
Departure Code Add* a specific trip departure & room option** to a booking*departureCodedepartureCodestringSet the departureCode as the roomOptionId of the desired room within a departure. Cannot be updated.
Agent Set the agent on the bookingpromotionCodepromotionCodestringNo change
Booking Notes Add any important notes to the booking that may need to be actioned by our support teamshref e.g. "href": "/bookings/{bookingId}/customers/{customerId}?status=tentative&singleSupplement=true"id/status/singleSupplement"customers": [ { "id": "string", "status": "tentative", "singleSupplement": true } ]
Store Agent Set the store agent on the bookingexternalReferenceexternalReferencestringNo change, cannot be updated

Request query parameter changes​

Lists all fields present in the Public API that have a corresponding field in the Partner API.

DescriptionPublic APIPartner APITypeNotes
Consultant Name Retrieve bookings with a specific consultantconsultantFirstName consultantLastNameconsultantFirstName consultantLastNamestringNo change
Customer Name Retrieve bookings for a specific customercustomerFirstName customerLastNamecustomerFirstName customerLastNamestringNo change
Date of booking Retrieve bookings in a specific date rangedateOfBookingStar dateOfBookingEnddateOfBookingStart dateOfBookingEndstringNo change
Date of first travel Retrieve bookings in a specific travel date rangedateOfFirstTravelStart dateOfFirstTravelEnddateOfFirstTravelStart dateOfFirstTravelEndstringNo change
Outstanding balance due date Retrieve bookings with outstanding balanceoutstandingBalanceDueStart outstandingBalanceDueEndoutstandingBalanceDueStart outstandingBalanceDueEndstringNo change
Paginationlimit startsize pageintegerPage query param effectively replaces starting record (start) used in public API

Response Changes​

DescriptionPublic APIPartner APIType
Booked trip* identifier*** *Unique identifier for this **trip on **a *bookingididstring
Trip booking resource link** *Direct API endpoint reference to this **trip *bookinghrefhrefstring
Trip details Details of the trip* including its name, code, style and themes*product.href tripCode tripName tripStyle tripThemes numberOfDaysproduct.href tripCode tripName tripStyle tripThemes numberOfDays*string / integer* "tripThemes": [{"name": "Short Breaks"}]
Departure details *Details of the departure including its *code and statusdeparture.href departureCode departureStatusdeparture.href departureCode departureStatusstring
Start date of the tripstartDatestartDatestring
End date of the tripendDateendDate
Start location details of the trip Full details of the starting location/address and finishing location/addressstartLocation startLocationPhone startCity startCountry addressstartLocation startLocationPhone startCity startCountry addressstring
End location details of the trip** Full details of the starting location/address and finishing location/addressendLocation endLocationPhone endCity endCountryendLocation endLocationPhone endCity endCountrystring
Currency of the trip on the booking Currency of the trip should match the* overall booking currency***currencycurrencystring
Prices *Full details of the total trip, single supplement prices and price after commission (e.g. net price) ***totalSingleSupplementPrice totalPrice netPrice singleSupplementNetPricetotalSingleSupplementPrice totalPrice netPrice singleSupplementNetPricedecimals
Booking requirements for the trip Indicates whether passport details are* required before customer departs***passportRequiredTypeId passportRequiredTypepassportRequiredTypeId* passportRequiredTypestring / integer*
Kitty and exclusions Prices for any kitty and exclusions that need to be paid by the customer on the trip**kitty exclusionskitty exclusions{ "exclusions": [ { "elementTitle": "string", "prices": [ { "amount": 100, "currencyCode": "aud", "currencyId": 12345, "currencySymbol": "$" } ] } ], "kitty": { "prices": [ { "base": 350, "currency": "USD", "discounts": [ { "description": "string", "id": "string", "name": "string", "percentage": 10 } ], "minDeposit": 100, "total": 315 } ] } }
Booked accommodations List of accommodations that are on this booking**accommodationsaccommodations"accommodations": [{"href": "/bookings/12345/accommodations/12345"}]
Booked transfers List of transfers that are on this bookingtransferstransfers"transfers": [{"href": "/bookings/12345/transfers/12345"}]
Booked customers List of customers that are on this booking and their status (e.g. confirmed, cancelled)customers customerStatuses singleSupplementCustomers customerStatusIdscustomers customerStatuses singleSupplementCustomers customerStatusIds{ "customerStatusIds": [ { "customers": [ { "href": "/bookings/:bookingId/customers/:customerId", "optionExpiresAt": "string" } ], "status": "confirmed" } ], "customerStatuses": { "cancelled": 0, "confirmed": 1, "quote": 1 }, "customers": { "href": "/bookings/12345/customers" }, "singleSupplementCustomers": [ { "href": "/bookings/12345/customers" } ] }

Current request (deprecated)​

In the legacy Public API booked trips/departures were embedded inline on the booking; there was no dedicated resource.

Updated request​

Booked departures are now a distinct sub-resource with their own pricing, discounts, and cancellation-fee attribution.

GET https://api.partners.intrepidtravel.cloud/bookings/{bookingId}/departure-services

{
"id": "svc_1234",
"href": "/departure-services/svc_1234",
"type": "DEPARTURE",
"status": "Confirmed",
"booking": { "id": "booking_1234", "href": "/bookings/booking_1234" },
"customers": ["cust_001", "cust_002"],
"pricingSummary": {
"currency": "USD",
"amountBase": 1000,
"amountDiscounted": 100,
"amountTotal": 900,
"amountPaid": 900,
"amountOwing": 0
},
"cancellationPolicyRule": {
"id": "rule_1234",
"href": "/cancellation-policies/5678/rules/rule_1234"
}
}

Removed fields​

Removed FieldsPublic APINotesRelevant Field (if applicable)
Removedflights
Removedinsurance
Removedsequence
RemovedexternalReference
RemovedproductId
RemovedsharesTripNotesId