- 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 Offers Price
POST
/v1/shopping/flight-offers/pricing
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Header Params
X-HTTP-Method-Override
string
required
Example:
GET
Body Params text/plain
Example
Example:{
"data": {
"type": "flight-offers-pricing",
"flightOffers": [
{{flightOfferData}}
]
}
}
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/shopping/flight-offers/pricing' \
--header 'X-HTTP-Method-Override: GET' \
--header 'Content-Type: text/plain' \
--data-raw '{
"data": {
"type": "flight-offers-pricing",
"flightOffers": [
{{flightOfferData}}
]
}
}'
Responses
🟢200Flight Offers Price
application/json
Body
data
object
required
type
string
required
flightOffers
array [object {12}]
required
bookingRequirements
object
required
dictionaries
object
required
locations
object
required
Example
{
"data": {
"type": "flight-offers-pricing",
"flightOffers": [
{
"type": "flight-offer",
"id": "1",
"source": "GDS",
"instantTicketingRequired": false,
"nonHomogeneous": false,
"paymentCardRequired": false,
"lastTicketingDate": "2024-03-21",
"itineraries": [
{
"segments": [
{
"departure": {
"iataCode": "BOS",
"terminal": "E",
"at": "2024-04-04T17:00:00"
},
"arrival": {
"iataCode": "MAD",
"terminal": "4S",
"at": "2024-04-05T06:00:00"
},
"carrierCode": "IB",
"number": "6166",
"aircraft": {
"code": "330"
},
"operating": {
"carrierCode": "IB"
},
"duration": "PT7H",
"id": "1",
"numberOfStops": 0,
"co2Emissions": [
{
"weight": 594,
"weightUnit": "KG",
"cabin": "BUSINESS"
}
]
}
]
},
{
"segments": [
{
"departure": {
"iataCode": "MAD",
"terminal": "4S",
"at": "2024-04-18T20:45:00"
},
"arrival": {
"iataCode": "LHR",
"terminal": "5",
"at": "2024-04-18T22:00:00"
},
"carrierCode": "IB",
"number": "7467",
"aircraft": {
"code": "319"
},
"operating": {
"carrierCode": "BA"
},
"duration": "PT2H15M",
"id": "4",
"numberOfStops": 0,
"co2Emissions": [
{
"weight": 116,
"weightUnit": "KG",
"cabin": "BUSINESS"
}
]
},
{
"departure": {
"iataCode": "LHR",
"terminal": "5",
"at": "2024-04-19T17:15:00"
},
"arrival": {
"iataCode": "BOS",
"terminal": "E",
"at": "2024-04-19T19:50:00"
},
"carrierCode": "AY",
"number": "5503",
"aircraft": {
"code": "781"
},
"operating": {
"carrierCode": "BA"
},
"duration": "PT7H35M",
"id": "5",
"numberOfStops": 0,
"co2Emissions": [
{
"weight": 282,
"weightUnit": "KG",
"cabin": "ECONOMY"
}
]
}
]
}
],
"price": {
"currency": "USD",
"total": "6502.20",
"base": "3898.00",
"fees": [
{
"amount": "0.00",
"type": "SUPPLIER"
},
{
"amount": "0.00",
"type": "TICKETING"
},
{
"amount": "0.00",
"type": "FORM_OF_PAYMENT"
}
],
"grandTotal": "6502.20",
"billingCurrency": "USD"
},
"pricingOptions": {
"fareType": [
"PUBLISHED"
],
"includedCheckedBagsOnly": false
},
"validatingAirlineCodes": [
"IB"
],
"travelerPricings": [
{
"travelerId": "1",
"fareOption": "STANDARD",
"travelerType": "ADULT",
"price": {
"currency": "USD",
"total": "3251.10",
"base": "1949.00",
"taxes": [
{
"amount": "7.00",
"code": "XY"
},
{
"amount": "3.90",
"code": "QV"
},
{
"amount": "985.00",
"code": "YQ"
},
{
"amount": "5.60",
"code": "AY"
},
{
"amount": "0.70",
"code": "OG"
},
{
"amount": "186.00",
"code": "YR"
},
{
"amount": "3.83",
"code": "XA"
},
{
"amount": "6.97",
"code": "YC"
},
{
"amount": "16.00",
"code": "JD"
},
{
"amount": "38.20",
"code": "UB"
},
{
"amount": "44.40",
"code": "US"
},
{
"amount": "4.50",
"code": "XF"
}
],
"refundableTaxes": "82.20"
},
"fareDetailsBySegment": [
{
"segmentId": "1",
"cabin": "BUSINESS",
"fareBasis": "INX4A3S5",
"brandedFare": "BUSOPTIMA",
"class": "I",
"includedCheckedBags": {
"quantity": 2
}
},
{
"segmentId": "4",
"cabin": "BUSINESS",
"fareBasis": "INX4A3S5",
"brandedFare": "BUSOPTIMA",
"class": "J",
"includedCheckedBags": {
"quantity": 1
}
},
{
"segmentId": "5",
"cabin": "ECONOMY",
"fareBasis": "LLX4F0M5",
"brandedFare": "ECLASSIC",
"class": "L",
"includedCheckedBags": {
"quantity": 1
}
}
]
},
{
"travelerId": "2",
"fareOption": "STANDARD",
"travelerType": "CHILD",
"price": {
"currency": "USD",
"total": "3251.10",
"base": "1949.00",
"taxes": [
{
"amount": "7.00",
"code": "XY"
},
{
"amount": "3.90",
"code": "QV"
},
{
"amount": "985.00",
"code": "YQ"
},
{
"amount": "5.60",
"code": "AY"
},
{
"amount": "0.70",
"code": "OG"
},
{
"amount": "186.00",
"code": "YR"
},
{
"amount": "3.83",
"code": "XA"
},
{
"amount": "6.97",
"code": "YC"
},
{
"amount": "16.00",
"code": "JD"
},
{
"amount": "38.20",
"code": "UB"
},
{
"amount": "44.40",
"code": "US"
},
{
"amount": "4.50",
"code": "XF"
}
],
"refundableTaxes": "82.20"
},
"fareDetailsBySegment": [
{
"segmentId": "1",
"cabin": "BUSINESS",
"fareBasis": "INX4A3S5",
"brandedFare": "BUSOPTIMA",
"class": "I",
"includedCheckedBags": {
"quantity": 2
}
},
{
"segmentId": "4",
"cabin": "BUSINESS",
"fareBasis": "INX4A3S5",
"brandedFare": "BUSOPTIMA",
"class": "J",
"includedCheckedBags": {
"quantity": 1
}
},
{
"segmentId": "5",
"cabin": "ECONOMY",
"fareBasis": "LLX4F0M5",
"brandedFare": "ECLASSIC",
"class": "L",
"includedCheckedBags": {
"quantity": 1
}
}
]
}
]
}
],
"bookingRequirements": {
"emailAddressRequired": true,
"mobilePhoneNumberRequired": true,
"travelerRequirements": [
{
"travelerId": "1",
"genderRequired": true,
"documentRequired": true,
"dateOfBirthRequired": true,
"redressRequiredIfAny": true,
"residenceRequired": true
},
{
"travelerId": "2",
"genderRequired": true,
"documentRequired": true,
"dateOfBirthRequired": true,
"redressRequiredIfAny": true,
"residenceRequired": true
}
]
}
},
"dictionaries": {
"locations": {
"MAD": {
"cityCode": "MAD",
"countryCode": "ES"
},
"BOS": {
"cityCode": "BOS",
"countryCode": "US"
},
"LHR": {
"cityCode": "LON",
"countryCode": "GB"
}
}
}
}