- Shopping
- Authorization
- Flights
- (Scenario)Basic Flight Booking flow
- Flight Booking
- Flight Inspiration
- Flight Schedule
- Airport
- Airlines
- Destination experiences
- Car and Transfers
- Market insights
- Hotels
- Itinerary management
- STARGAME
- Common errors
- InitialGetBalance
- InitialGetBalance
- GetBalanceBadHash
- GetBalanceBadHash
- InvalidCommand
- InvalidCommand
- InvalidUserName
- InvalidUserName
- PlayerBetMissingTransactionId
- PlayerBetMissingTransactionId
- PlayerWinEmptyTransactionId
- PlayerWinEmptyTransactionId
- PlayerBetNegativeAmount
- PlayerBetNegativeAmount
- PlayerWinNegativeAmount
- PlayerWinNegativeAmount
- PlayerBetInsufficientBalance
- PlayerBetInsufficientBalance
- CheckBalance
- CheckBalance
- Workflow
- OpenSession
- OpenSession
- OpenSessionAlreadyOpened
- OpenSessionAlreadyOpened
- GetBalance
- GetBalance
- PlayerBet #1 (-50)
- PlayerBet #1 (-50)
- PlayerWin (+150)
- PlayerWin (+150)
- PlayerBet #2 (-50)
- PlayerBet #2 (-50)
- PlayerWinZeroAmount (+0)
- PlayerWinZeroAmount (+0)
- PlayerBet #3 (-50)
- PlayerBet #3 (-50)
- PlayerWin (+200)
- PlayerWin (+200)
- PlayerWinTransactionAlreadyExist
- PlayerWinTransactionAlreadyExist
- PlayerBet #4 (-200)
- PlayerBet #4 (-200)
- PlayerBetTransactionAlreadyExist
- PlayerBetTransactionAlreadyExist
- PlayerBetBadHash
- PlayerBetBadHash
- PlayerWinBadHash
- PlayerWinBadHash
- CancelBet #4 (+200)
- CancelBet #4 (+200)
- CancelBetAlreadyCancelled
- CancelBetAlreadyCancelled
- CancelBetDoesNotExist
- CancelBetDoesNotExist
- PlayerBet #5 (-50)
- PlayerBet #5 (-50)
- CloseSession
- CloseSession
- PlayerBet #6 (-250)
- PlayerBet #6 (-250)
- PlayerWin (+50)
- PlayerWin (+50)
- CancelBet #5 (+50)
- CancelBet #5 (+50)
- PlayerBet #7 (-100)
- PlayerBet #7 (-100)
- PlayerBet #8 (-50)
- PlayerBet #8 (-50)
- PlayerBet #9 (-25)
- PlayerBet #9 (-25)
- PlayerBet #10 (-25)
- PlayerBet #10 (-25)
- PlayerBet #11 (-50)
- PlayerBet #11 (-50)
- CancelBet #7 (+100)
- CancelBet #7 (+100)
- CancelBet #9 (+25)
- CancelBet #9 (+25)
- CancelBet #11 (+50)
- CancelBet #11 (+50)
- PlayerWin (+75)
- PlayerWin (+75)
- CloseSessionAlreadyClosed
- CloseSessionAlreadyClosed
- FinalCheckBalance
- FinalCheckBalance
- RemoteSession
- Common errors
- IMEI
- GPK
- SUPERSET
- Menu
- Queries
- Annotation Layers
- /annotation_layer/
- /annotation_layer/
- /annotation_layer/
- /annotation_layer/_info
- /annotation_layer/related/{column_name}
- /annotation_layer/{pk}
- /annotation_layer/{pk}
- /annotation_layer/{pk}
- /annotation_layer/{pk}/annotation/
- /annotation_layer/{pk}/annotation/
- /annotation_layer/{pk}/annotation/
- /annotation_layer/{pk}/annotation/{annotation_id}
- /annotation_layer/{pk}/annotation/{annotation_id}
- /annotation_layer/{pk}/annotation/{annotation_id}
- AsyncEventsRestApi
- CacheRestApi
- Charts
- CSS Templates
- Dashboards
- Database
- /database/
- /database/
- /database/_info
- /database/export/
- /database/import/
- /database/test_connection
- /database/{pk}
- /database/{pk}
- /database/{pk}
- /database/{pk}/function_names/
- /database/{pk}/related_objects/
- /database/{pk}/schemas/
- /database/{pk}/select_star/{table_name}/
- /database/{pk}/select_star/{table_name}/{schema_name}/
- /database/{pk}/table/{table_name}/{schema_name}/
- Datasets
- LogRestApi
- OpenApi
- Security
- VEGAS
- BI
- vl
- Vegaslounge
- VL
- VegasloungeAPI
Flight Create Orders
POST
/v1/booking/flight-orders
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Body Params text/plain
Example
Example:{
"data": {
"type": "flight-order",
"flightOffers": [
{{flightOfferPriceData}}
],
"travelers": [
{
"id": "1",
"dateOfBirth": "1982-01-16",
"name": {
"firstName": "JORGE",
"lastName": "GONZALES"
},
"gender": "MALE",
"contact": {
"emailAddress": "jorge.gonzales833@telefonica.es",
"phones": [
{
"deviceType": "MOBILE",
"countryCallingCode": "34",
"number": "480080076"
}
]
},
"documents": [
{
"documentType": "PASSPORT",
"birthPlace": "Madrid",
"issuanceLocation": "Madrid",
"issuanceDate": "2015-04-14",
"number": "00000000",
"expiryDate": "2025-04-14",
"issuanceCountry": "ES",
"validityCountry": "ES",
"nationality": "ES",
"holder": true
}
]
},
{
"id": "2",
"dateOfBirth": "2012-10-11",
"gender": "FEMALE",
"contact": {
"emailAddress": "jorge.gonzales833@telefonica.es",
"phones": [
{
"deviceType": "MOBILE",
"countryCallingCode": "34",
"number": "480080076"
}
]
},
"name": {
"firstName": "ADRIANA",
"lastName": "GONZALES"
}
}
],
"remarks": {
"general": [
{
"subType": "GENERAL_MISCELLANEOUS",
"text": "ONLINE BOOKING FROM INCREIBLE VIAJES"
}
]
},
"ticketingAgreement": {
"option": "DELAY_TO_CANCEL",
"delay": "6D"
},
"contacts": [
{
"addresseeName": {
"firstName": "PABLO",
"lastName": "RODRIGUEZ"
},
"companyName": "INCREIBLE VIAJES",
"purpose": "STANDARD",
"phones": [
{
"deviceType": "LANDLINE",
"countryCallingCode": "34",
"number": "480080071"
},
{
"deviceType": "MOBILE",
"countryCallingCode": "33",
"number": "480080072"
}
],
"emailAddress": "support@increibleviajes.es",
"address": {
"lines": [
"Calle Prado, 16"
],
"postalCode": "28014",
"cityName": "Madrid",
"countryCode": "ES"
}
}
]
}
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/v1/booking/flight-orders' \
--header 'Content-Type: text/plain' \
--data-raw '{
"data": {
"type": "flight-order",
"flightOffers": [
{{flightOfferPriceData}}
],
"travelers": [
{
"id": "1",
"dateOfBirth": "1982-01-16",
"name": {
"firstName": "JORGE",
"lastName": "GONZALES"
},
"gender": "MALE",
"contact": {
"emailAddress": "jorge.gonzales833@telefonica.es",
"phones": [
{
"deviceType": "MOBILE",
"countryCallingCode": "34",
"number": "480080076"
}
]
},
"documents": [
{
"documentType": "PASSPORT",
"birthPlace": "Madrid",
"issuanceLocation": "Madrid",
"issuanceDate": "2015-04-14",
"number": "00000000",
"expiryDate": "2025-04-14",
"issuanceCountry": "ES",
"validityCountry": "ES",
"nationality": "ES",
"holder": true
}
]
},
{
"id": "2",
"dateOfBirth": "2012-10-11",
"gender": "FEMALE",
"contact": {
"emailAddress": "jorge.gonzales833@telefonica.es",
"phones": [
{
"deviceType": "MOBILE",
"countryCallingCode": "34",
"number": "480080076"
}
]
},
"name": {
"firstName": "ADRIANA",
"lastName": "GONZALES"
}
}
],
"remarks": {
"general": [
{
"subType": "GENERAL_MISCELLANEOUS",
"text": "ONLINE BOOKING FROM INCREIBLE VIAJES"
}
]
},
"ticketingAgreement": {
"option": "DELAY_TO_CANCEL",
"delay": "6D"
},
"contacts": [
{
"addresseeName": {
"firstName": "PABLO",
"lastName": "RODRIGUEZ"
},
"companyName": "INCREIBLE VIAJES",
"purpose": "STANDARD",
"phones": [
{
"deviceType": "LANDLINE",
"countryCallingCode": "34",
"number": "480080071"
},
{
"deviceType": "MOBILE",
"countryCallingCode": "33",
"number": "480080072"
}
],
"emailAddress": "support@increibleviajes.es",
"address": {
"lines": [
"Calle Prado, 16"
],
"postalCode": "28014",
"cityName": "Madrid",
"countryCode": "ES"
}
}
]
}
}'
Responses
🟢201Flight Create Orders
application/json
Body
data
object
required
type
string
required
id
string
required
queuingOfficeId
string
required
associatedRecords
array [object {4}]
required
flightOffers
array [object {10}]
required
travelers
array [object {6}]
required
remarks
object
required
ticketingAgreement
object
required
automatedProcess
array [object {3}]
required
contacts
array [object {6}]
required
dictionaries
object
required
locations
object
required
Example
{
"data": {
"type": "flight-order",
"id": "eJzTd9cPDAgICfYAAAvRAoY%3D",
"queuingOfficeId": "NCE4D31SB",
"associatedRecords": [
{
"reference": "QPPTSH",
"creationDate": "2024-04-03T03:43:00.000",
"originSystemCode": "GDS",
"flightOfferId": "1"
}
],
"flightOffers": [
{
"type": "flight-offer",
"id": "1",
"source": "GDS",
"nonHomogeneous": false,
"lastTicketingDate": "2024-04-03",
"itineraries": [
{
"segments": [
{
"departure": {
"iataCode": "BOS",
"terminal": "E",
"at": "2024-04-17T17:20:00"
},
"arrival": {
"iataCode": "CDG",
"terminal": "2E",
"at": "2024-04-18T06:05:00"
},
"carrierCode": "AF",
"number": "333",
"aircraft": {
"code": "359"
},
"duration": "PT6H45M",
"id": "1",
"numberOfStops": 0,
"co2Emissions": [
{
"weight": 556,
"weightUnit": "KG",
"cabin": "BUSINESS"
}
]
},
{
"departure": {
"iataCode": "CDG",
"terminal": "2F",
"at": "2024-04-18T07:05:00"
},
"arrival": {
"iataCode": "MAD",
"terminal": "2",
"at": "2024-04-18T09:15:00"
},
"carrierCode": "AF",
"number": "1000",
"aircraft": {
"code": "319"
},
"duration": "PT2H10M",
"id": "2",
"numberOfStops": 0,
"co2Emissions": [
{
"weight": 105,
"weightUnit": "KG",
"cabin": "BUSINESS"
}
]
}
]
},
{
"segments": [
{
"departure": {
"iataCode": "MAD",
"terminal": "2",
"at": "2024-05-01T20:15:00"
},
"arrival": {
"iataCode": "CDG",
"terminal": "2F",
"at": "2024-05-01T22:20:00"
},
"carrierCode": "AF",
"number": "1101",
"aircraft": {
"code": "321"
},
"duration": "PT2H5M",
"id": "5",
"numberOfStops": 0,
"co2Emissions": [
{
"weight": 105,
"weightUnit": "KG",
"cabin": "ECONOMY"
}
]
},
{
"departure": {
"iataCode": "CDG",
"terminal": "2E",
"at": "2024-05-02T13:35:00"
},
"arrival": {
"iataCode": "BOS",
"terminal": "E",
"at": "2024-05-02T15:10:00"
},
"carrierCode": "AF",
"number": "334",
"aircraft": {
"code": "359"
},
"duration": "PT7H35M",
"id": "6",
"numberOfStops": 0,
"co2Emissions": [
{
"weight": 278,
"weightUnit": "KG",
"cabin": "ECONOMY"
}
]
}
]
}
],
"price": {
"currency": "USD",
"total": "7151.60",
"base": "4410.00",
"fees": [
{
"amount": "0.00",
"type": "TICKETING"
},
{
"amount": "0.00",
"type": "SUPPLIER"
},
{
"amount": "0.00",
"type": "FORM_OF_PAYMENT"
}
],
"grandTotal": "7151.60",
"billingCurrency": "USD"
},
"pricingOptions": {
"fareType": [
"PUBLISHED"
],
"includedCheckedBagsOnly": false
},
"validatingAirlineCodes": [
"AF"
],
"travelerPricings": [
{
"travelerId": "1",
"fareOption": "STANDARD",
"travelerType": "ADULT",
"price": {
"currency": "USD",
"total": "3575.80",
"base": "2205.00",
"taxes": [
{
"amount": "5.60",
"code": "AY"
},
{
"amount": "9.00",
"code": "FR"
},
{
"amount": "15.80",
"code": "JD"
},
{
"amount": "0.70",
"code": "OG"
},
{
"amount": "3.80",
"code": "QV"
},
{
"amount": "48.20",
"code": "QX"
},
{
"amount": "44.40",
"code": "US"
},
{
"amount": "3.83",
"code": "XA"
},
{
"amount": "4.50",
"code": "XF"
},
{
"amount": "7.00",
"code": "XY"
},
{
"amount": "6.97",
"code": "YC"
},
{
"amount": "46.00",
"code": "YQ"
},
{
"amount": "1175.00",
"code": "YR"
}
],
"refundableTaxes": "100.90"
},
"fareDetailsBySegment": [
{
"segmentId": "1",
"cabin": "BUSINESS",
"fareBasis": "ZNX45NDL",
"brandedFare": "BIZSTAND",
"class": "Z",
"includedCheckedBags": {
"quantity": 2
}
},
{
"segmentId": "2",
"cabin": "BUSINESS",
"fareBasis": "ZNX45NDL",
"brandedFare": "BIZSTAND",
"class": "J",
"includedCheckedBags": {
"quantity": 2
}
},
{
"segmentId": "5",
"cabin": "ECONOMY",
"fareBasis": "RKX46NMZ",
"brandedFare": "STANDARD6",
"class": "L",
"includedCheckedBags": {
"quantity": 1
}
},
{
"segmentId": "6",
"cabin": "ECONOMY",
"fareBasis": "RKX46NMZ",
"brandedFare": "STANDARD6",
"class": "R",
"includedCheckedBags": {
"quantity": 1
}
}
]
},
{
"travelerId": "2",
"fareOption": "STANDARD",
"travelerType": "CHILD",
"price": {
"currency": "USD",
"total": "3575.80",
"base": "2205.00",
"taxes": [
{
"amount": "5.60",
"code": "AY"
},
{
"amount": "9.00",
"code": "FR"
},
{
"amount": "15.80",
"code": "JD"
},
{
"amount": "0.70",
"code": "OG"
},
{
"amount": "3.80",
"code": "QV"
},
{
"amount": "48.20",
"code": "QX"
},
{
"amount": "44.40",
"code": "US"
},
{
"amount": "3.83",
"code": "XA"
},
{
"amount": "4.50",
"code": "XF"
},
{
"amount": "7.00",
"code": "XY"
},
{
"amount": "6.97",
"code": "YC"
},
{
"amount": "46.00",
"code": "YQ"
},
{
"amount": "1175.00",
"code": "YR"
}
],
"refundableTaxes": "100.90"
},
"fareDetailsBySegment": [
{
"segmentId": "1",
"cabin": "BUSINESS",
"fareBasis": "ZNX45NDL",
"brandedFare": "BIZSTAND",
"class": "Z",
"includedCheckedBags": {
"quantity": 2
}
},
{
"segmentId": "2",
"cabin": "BUSINESS",
"fareBasis": "ZNX45NDL",
"brandedFare": "BIZSTAND",
"class": "J",
"includedCheckedBags": {
"quantity": 2
}
},
{
"segmentId": "5",
"cabin": "ECONOMY",
"fareBasis": "RKX46NMZ",
"brandedFare": "STANDARD6",
"class": "L",
"includedCheckedBags": {
"quantity": 1
}
},
{
"segmentId": "6",
"cabin": "ECONOMY",
"fareBasis": "RKX46NMZ",
"brandedFare": "STANDARD6",
"class": "R",
"includedCheckedBags": {
"quantity": 1
}
}
]
}
]
}
],
"travelers": [
{
"id": "1",
"dateOfBirth": "1982-01-16",
"gender": "MALE",
"name": {
"firstName": "JORGE",
"lastName": "GONZALES"
},
"documents": [
{
"number": "00000000",
"issuanceDate": "2015-04-14",
"expiryDate": "2025-04-14",
"issuanceCountry": "ES",
"issuanceLocation": "Madrid",
"nationality": "ES",
"birthPlace": "Madrid",
"documentType": "PASSPORT",
"holder": true
}
],
"contact": {
"purpose": "STANDARD",
"phones": [
{
"deviceType": "MOBILE",
"countryCallingCode": "34",
"number": "480080076"
}
],
"emailAddress": "jorge.gonzales833@telefonica.es"
}
},
{
"id": "2",
"dateOfBirth": "2012-10-11",
"gender": "FEMALE",
"name": {
"firstName": "ADRIANA",
"lastName": "GONZALES"
},
"contact": {
"purpose": "STANDARD",
"phones": [
{
"deviceType": "MOBILE",
"countryCallingCode": "34",
"number": "480080076"
}
],
"emailAddress": "jorge.gonzales833@telefonica.es"
}
}
],
"remarks": {
"general": [
{
"subType": "GENERAL_MISCELLANEOUS",
"text": "ONLINE BOOKING FROM INCREIBLE VIAJES"
}
]
},
"ticketingAgreement": {
"option": "DELAY_TO_CANCEL",
"delay": "6D"
},
"automatedProcess": [
{
"code": "IMMEDIATE",
"queue": {
"number": "0",
"category": "0"
},
"officeId": "NCE4D31SB"
}
],
"contacts": [
{
"addresseeName": {
"firstName": "PABLO RODRIGUEZ"
},
"address": {
"lines": [
"Calle Prado, 16"
],
"postalCode": "28014",
"countryCode": "ES",
"cityName": "Madrid"
},
"purpose": "STANDARD",
"phones": [
{
"deviceType": "LANDLINE",
"countryCallingCode": "34",
"number": "480080071"
},
{
"deviceType": "MOBILE",
"countryCallingCode": "33",
"number": "480080072"
}
],
"companyName": "INCREIBLE VIAJES",
"emailAddress": "support@increibleviajes.es"
}
]
},
"dictionaries": {
"locations": {
"MAD": {
"cityCode": "MAD",
"countryCode": "ES"
},
"CDG": {
"cityCode": "PAR",
"countryCode": "FR"
},
"BOS": {
"cityCode": "BOS",
"countryCode": "US"
}
}
}
}