- 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
Return list of Flight Offers based on posted searching criteria.
POST
/shopping/flight-offers
Shopping
Request
Header Params
X-HTTP-Method-Override
string
required
Default:
GET
Body Params application/vnd.amadeus+json
currencyCode
string
optional
Example:
EUR
originDestinations
array[object (OriginDestination) {11}]
originDestinations
>= 1 items<= 6 items
id
string
optional
Example:
1
originLocationCode
string
optional
Example:
PAR
destinationLocationCode
string
optional
Example:
NYC
includedConnectionPoints
array[string]
optional
>= 1 items<= 2 items
Example:
["MRS"]
excludedConnectionPoints
array[string]
optional
>= 1 items<= 3 items
Example:
["MRS"]
originRadius
number
optional
Example:
200
alternativeOriginsCodes
array[string]
optional
>= 1 items<= 2 items
Example:
["LON","MUC"]
destinationRadius
number
optional
Example:
200
alternativeDestinationsCodes
array[string]
optional
>= 1 items<= 2 items
departureDateTimeRange
object
dateTimeRange
arrivalDateTimeRange
object
dateTimeRange
travelers
array[object (Extended_TravelerInfo) {3}]
travelers
Each adult can travel with one INFANT so maximum total number of passengers: 18
>= 1 items<= 18 items
id
string
required
Example:
1
travelerType
enum<string>
TravelerType
age restrictions : CHILD < 12y, HELD_INFANT < 2y, SEATED_INFANT < 2y, SENIOR >=60y
Allowed values:
ADULTCHILDSENIORYOUNGHELD_INFANTSEATED_INFANTSTUDENT
Example:
ADULT
associatedAdultId
string
optional
sources
array[string]
sources
>= 1 items
Allowed value:
GDS
searchCriteria
object (SearchCriteria)
optional
excludeAllotments
boolean
optional
Example:
false
addOneWayOffers
boolean
optional
Example:
true
maxFlightOffers
number
optional
Default:
250
Example:
250
maxPrice
integer
optional
Example:
100
allowAlternativeFareOptions
boolean
optional
Example:
true
oneFlightOfferPerDay
boolean
optional
Example:
true
additionalInformation
object
AdditionalInformation
pricingOptions
object (pricingOptions)
optional
flightFilters
object (FlightFilters)
optional
Example
{
"currencyCode": "USD",
"originDestinations": [
{
"id": "1",
"originLocationCode": "NYC",
"destinationLocationCode": "MAD",
"departureDateTimeRange": {
"date": "2023-11-01",
"time": "10:00:00"
}
}
],
"travelers": [
{
"id": "1",
"travelerType": "ADULT"
}
],
"sources": [
"GDS"
],
"searchCriteria": {
"maxFlightOffers": 2,
"flightFilters": {
"cabinRestrictions": [
{
"cabin": "BUSINESS",
"coverage": "MOST_SEGMENTS",
"originDestinationIds": [
"1"
]
}
]
}
}
}
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 '/shopping/flight-offers' \
--header 'X-HTTP-Method-Override;' \
--header 'Content-Type: application/vnd.amadeus+json' \
--data-raw '{
"currencyCode": "USD",
"originDestinations": [
{
"id": "1",
"originLocationCode": "NYC",
"destinationLocationCode": "MAD",
"departureDateTimeRange": {
"date": "2023-11-01",
"time": "10:00:00"
}
}
],
"travelers": [
{
"id": "1",
"travelerType": "ADULT"
}
],
"sources": [
"GDS"
],
"searchCriteria": {
"maxFlightOffers": 2,
"flightFilters": {
"cabinRestrictions": [
{
"cabin": "BUSINESS",
"coverage": "MOST_SEGMENTS",
"originDestinationIds": [
"1"
]
}
]
}
}
}'
Responses
🟢200OK
application/vnd.amadeus+json
Body
object {0}
Example
{}
🟠400Bad Request
🔴500Server Error