POST/v1/flights/order/:gdsprovider/:offerId

Create flight order

Creates an instant flight booking or a hold order from a selected offer using the original price, passenger data, documents and segment metadata.

Creates an instant flight booking or a hold order from a selected offer using the original price, passenger data, documents and segment metadata.

Endpoint

MethodPathAuth
POST/v1/flights/order/:gdsprovider/:offerIdRequired API key
Required headers:
HeaderDescription
AuthorizationBearer <secret_key>. The secret is shown only once when the credential is created.
X-Travelandz-Id<public_key>:<profile_code>. The profile_code is the dp_-prefixed Developer Profile code shown in your dashboard. This binds the request to a profile and credential.
Content-TypeUse application/json for requests with a body.

Request Params Schema

PropertyTypeDetailsRequiredNotes
gdsprovidernumberYes-
offerIdstringYes-

Request Body Schema

PropertyTypeDetailsRequiredNotes
originalPricenumberYes-
currencyenumEUR, USD, CNYYes-
passengersarrayYes-
totalSegmentsarrayYes-
idstringYes-
typeenumadult, child, infant_without_seatYes-
user_idstringNoIf the order details includes user_id, the property is required
titleenummr, ms, mrs, missYes-
phone_numberstringFormat: E.164 phone numberYes-
infant_passenger_idstringNoRequired if has infant passenger
identity_documentsarrayYes-
unique_identifierstringYes-
typeenumpassport, tax_id, known_traveler_number, passenger_redress_numberYes-
issuing_country_codestringNo2 digit
expires_onstringFormat: YYYY-MM-DDNo-
firstNamestringYes-
lastNamestringYes-
genderenumm, fYes-
emailstringYes-
bornDatestringFormat: YYYY-MM-DDYes-
countrystringNo2 digit
NationalIDstringNo-
loyaltyProgrammeAccountsarrayYes-
airlineIataCodestringYes-
accountNumberstringYes-
holdIdstringNo-
typeenuminstant, holdNo-

Success Response

Returns order identifiers, status and provider booking payload.

Response Body Schema

PropertyTypeDetailsRequiredNotes
orderIdstringYes-
holdExpiresAtstringFormat: ISO 8601No-
holdPriceGuaranteedstringNo-