Confirm a booking through the legacy v4 alias
POST /api/v5/bookings/v4/{id}/confirm
Legacy “/v4” alias that confirms and pays for a booking, lodging it with the selected courier. Requires an API key and booking ownership. A payment-aware retry on an already-paid booking returns 204; returns 402 when payment is declined.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Example
623630Numeric booking ID.
Request Body
Section titled “Request Body ”object
Courier string_id of the selected quote to confirm and pay.
Requested pickup date (YYYY-MM-DD); hyphenated alias of pickup_date.
Requested pickup date (YYYY-MM-DD); underscore alias of pickup-date.
Selected quote tier number when the courier offers multiple tiers.
How to pay: “nab_
object
Charge the booking to the member account credit balance.
object
No-charge demo payment (demo-enabled keys only).
Explicit acceptance of the Transdirect Terms and Conditions for this booking. Omitted defaults to the account’s standing acceptance.
Explicit acceptance of the selected carrier’s Transit Warranty terms for this booking, when the carrier has one. Omitted defaults to the account’s standing acceptance.
Responses
Section titled “ Responses ”Booking confirmed, or already-paid payment-aware confirmation retry accepted
Invalid booking confirmation request
object
object
object
Validation error message for the field.
Expected format hint for the field.
object
object
Validation error message for the field.
Expected format hint for the field.
Details of the payment gateway failure, when a payment was attempted.
Missing or invalid API key
Payment declined or failed
object
object
object
Validation error message for the field.
Expected format hint for the field.
object
object
Validation error message for the field.
Expected format hint for the field.
Details of the payment gateway failure, when a payment was attempted.
Booking not found
Unexpected confirmation failure
object
object
object
Validation error message for the field.
Expected format hint for the field.
object
object
Validation error message for the field.
Expected format hint for the field.
Details of the payment gateway failure, when a payment was attempted.