Skip to main content

Booking details & vouchers

POST /v1/transfer/booking-details returns one normalised view of a booking, the same shape for every provider. Use it to:

  • render the customer's voucher and confirmation e-mail;
  • refresh the status (a provider may confirm, change or cancel a booking after book);
  • get driver details closer to pickup, when the provider supplies them;
  • read the cancellation outcome after a cancel.

POST /v1/transfer/voucher is a deprecated alias with the same request and response.

Request​

Request
{
"provider_context": {"provider": "provider_a"},
"supplier_reference": {
"booking_id": "01aa00bb11cc22dd33ee44ff55667781",
"confirmation_number": "PRV0000001",
"provider": "provider_a",
"booking_status": "completed",
"booking_token": "bt1.gAAAAAB..."
}
}
Optional fieldEffect
book_responseThe full book response you stored. The details are built from it without calling the provider: fast, but later changes are not visible.
cancel_responseThe full cancel response. Fills cancelled_at and the refund when the provider's lookup does not report them. Optional if you cancelled through this API with the same key.

Response structure​

status is the outcome of the lookup (ok or failed), not the booking status. The booking status is booking_details.booking.status. Every key is always present; a value the provider does not supply is null (or []). details_version is "3".

SectionContents
bookingtp_booking_ref (your internal_reference), provider, supplier_booking_id, supplier_confirmation_number, status, status_source, booked_at
triptransfer_type, direction, pickup and dropoff locations, pickup_datetime (local, with offset when known), timezone, flight, return_datetime, hours
passengerslead (name, email, phone), adults, children, infants, total
vehiclecategory, model (always "or similar"), max_passengers, max_bags, count, image_url
servicemeeting_point, pickup_instructions, meet_and_greet, free_waiting_minutes, package, extra_charges, driver, supplier_contact
pricetotal, currency (the search currency), paid
cancellationfree_cancellation_until, policy_text, rules, cancelled, cancelled_at, refund_amount, refund_currency, refund_source
supplier_voucher_urlThe provider's own voucher page, when offered

Every field is documented in the booking details reference.

Booking status​

booking.statusMeaningIssue a voucher?
confirmedThe provider confirmed the transferYes
pendingNot confirmed yetAs "awaiting confirmation"; check again later
cancellation_pendingA cancellation is being processedNo
cancelledCancelledNo (show as cancelled)
failedThe booking did not go throughNo
unknownThe provider's status could not be mappedContact support with the booking reference

What providers supply​

The structure is identical for every provider, but how much is filled in differs:

DataTypical coverage
Live statusYes (status_source: supplier)
pickup_datetime with UTC offsetUsually
Pickup and drop-off addressesUsually; otherwise taken from what you booked (trip.locations_source)
Meeting point and instructionsUsually
Driver detailsOnly once a driver is assigned, typically close to pickup
supplier_voucher_urlSome providers only

Always handle null for any field.

Building the voucher​

SectionFields
Referencesbooking.supplier_confirmation_number (the reference the driver knows) and your own reference
Whentrip.pickup_datetime in the pickup's local time; trip.flight for airport transfers
Wheretrip.pickup and trip.dropoff: name, address, terminal
Whopassengers.lead.name, passengers.total
Vehiclevehicle.category, vehicle.model + "or similar", seats and bags
Meeting the driverservice.meeting_point, service.meet_and_greet, service.free_waiting_minutes, service.pickup_instructions (print as is)
Driverservice.driver.*, when present
Help on the dayservice.supplier_contact, plus your own support number
Hourly hiretrip.hours, service.package, service.extra_charges
Cancellationcancellation.free_cancellation_until, cancellation.policy_text

Refresh booking details after book, again 24 to 48 hours before pickup (driver details, last changes) and after a cancel. Re-issue the voucher when something changed.