VegasLounge API 对接文档
  1. Shopping
VegasLounge API 对接文档
  • Shopping
    • Return list of Flight Offers based on posted searching criteria.
      POST
    • Return list of Flight Offers based on searching criteria.
      GET
  • Authorization
    • Access Granted Client Credentials
      POST
    • Get Token Information
      GET
  • Flights
    • (Scenario)Basic Flight Booking flow
      • Step 0: Authorization
      • Step 1: Flight Offers Search GET
      • Step 2: Flight Offers Price
      • Step 3: Flight Create Orders
    • Flight Booking
      • Flight Offers Search
      • Flight Offers Search
      • Flight Offers Price
      • Flight Create Orders
      • Flight Order Management
      • Flight Order Management
      • Seatmap Display
      • Seatmap Display
      • Branded Fares Upsell
      • Flight Price Analysis
      • Flight Choice Prediction
    • Flight Inspiration
      • Flight Inspiration Search
      • Flight Cheapest Date Search
      • Flight Availabilities Search
      • Travel Recommendations
    • Flight Schedule
      • On Demand Flight Status
      • Flight Delay Prediction
      • Airport On-Time Performance
    • Airport
      • Airport & City Search by Keyword
      • Airport & City Search by Id
      • Airport Nearest Relevant
      • Airport Routes
    • Airlines
      • Flight Check-in Links
      • Airline Code Lookup
      • Airline Routes
  • Destination experiences
    • Tours and Activities
      GET
    • Tours and Activities by Id
      GET
    • Tours and Activities by square
      GET
    • City Search
      GET
  • Car and Transfers
    • Transfer Search
      POST
    • Transfer Booking
      POST
    • Transfer Management
      POST
  • Market insights
    • Flight Most Traveled Destinations
      GET
    • Flight Most Booked Destinations
      GET
    • Flight Busiest Traveling Period
      GET
  • Hotels
    • (Scenario)Basic Hotel Booking flow
      • Step 0: Authorization
      • Step 1: Find Hotels by city
      • Step 2: Hotel Offers Search
      • Step 3: Hotel Booking v1
    • Hotel List by Id
      GET
    • Hotel List by Geocode
      GET
    • Hotel List by City
      GET
    • Hotel Search
      GET
    • Hotel Search Offer Information
      GET
    • Hotel Booking v1
      POST
    • Hotel Booking v2
      POST
    • Hotel Ratings
      GET
    • Hotel Name Autocomplete
      GET
  • Itinerary management
    • Trip Purpose Prediction
  • 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
  • IMEI
    • Get account details
    • Get list of available services
    • Create Bulk Search
    • Export CSV for Bulk Search
    • Export JSON for Bulk Search
    • Get list of Bulk Search history
    • Single service check
    • Get single history result
    • Get list of search history
    • SYNC-API Single service check
  • GPK
    • 玩家取得遊戲連結
  • SUPERSET
    • Menu
      • /menu/
    • Queries
      • /query/
      • /query/distinct/{column_name}
      • /query/related/{column_name}
      • /query/{pk}
      • /saved_query/
      • /saved_query/
      • /saved_query/
      • /saved_query/_info
      • /saved_query/distinct/{column_name}
      • /saved_query/export/
      • /saved_query/related/{column_name}
      • /saved_query/{pk}
      • /saved_query/{pk}
      • /saved_query/{pk}
    • 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
      • /async_event/
    • CacheRestApi
      • /cachekey/invalidate
    • Charts
      • /chart/
      • /chart/
      • /chart/
      • /chart/_info
      • /chart/data
      • /chart/data/{cache_key}
      • /chart/export/
      • /chart/favorite_status/
      • /chart/import/
      • /chart/related/{column_name}
      • /chart/{pk}
      • /chart/{pk}
      • /chart/{pk}
    • CSS Templates
      • /css_template/
      • /css_template/
      • /css_template/
      • /css_template/_info
      • /css_template/related/{column_name}
      • /css_template/{pk}
      • /css_template/{pk}
      • /css_template/{pk}
    • Dashboards
      • /dashboard/
      • /dashboard/
      • /dashboard/
      • /dashboard/_info
      • /dashboard/export/
      • /dashboard/favorite_status/
      • /dashboard/import/
      • /dashboard/related/{column_name}
      • /dashboard/{pk}
      • /dashboard/{pk}
      • /dashboard/{pk}
      • /dashboard/{pk}/charts
    • 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
      • /dataset/
      • /dataset/
      • /dataset/
      • /dataset/_info
      • /dataset/distinct/{column_name}
      • /dataset/export/
      • /dataset/import/
      • /dataset/related/{column_name}
      • /dataset/{pk}
      • /dataset/{pk}
      • /dataset/{pk}
      • /dataset/{pk}/refresh
      • /dataset/{pk}/related_objects
    • LogRestApi
      • /log/
      • /log/
      • /log/{pk}
    • OpenApi
      • /openapi/{version}/_openapi
    • Security
      • /security/csrf_token/
      • /security/login
      • /security/refresh
  • VEGAS
    • BI
      • pre-login
      • login
      • dashboard
    • vl
      • Client API v2.0
        • Get Game List
      • Authentication API v2.0
        • Validate Authorization Code
        • Refresh Access Token
        • Get Account Information
      • Seamless Wallet API v2.0
        • Place Bet
        • Send Payoff
        • Reverse Transaction
        • Get Player Balance
      • Transfer Wallet API v2.0
        • Deposit money to the player's wallet.
        • Withdraw money from the player's wallet.
        • Get the current balance for the player.
        • Query players by balance.
        • Query player's total bet amount since last deposit.
        • Query player's bet/payout summary.
        • Query Total Loss Summary
      • Report API
        • Get Transfers
        • Check Transaction
        • Get Game History Link
        • Verify Transactions Summary
        • Get Detailed Betting Report
        • Get Betting Report
      • isonline
    • Vegaslounge
      • VEGASLOUNGE API集成指南手册
      • 客户端 CLIENT API
        • 示例 获取游戏列表
      • 身份验证 Authentication API
      • 转账钱包 TRANSFER WALLET
        • 示例: 获取玩家余额 Balance
        • 示例: 查询玩家指定余额 playersByBalance
        • 示例: 查询总损失总结 getTotalLoss API
        • 示例: 转入 DEPOSIT API
        • 示例: 转出 WITHDRAW API
        • 示例: 查询玩家最后存款投注金额 betAmountSinceLastDeposit
        • 示例: 查询玩家投注总结 getSummaryBet
        • 示例: 投注记录 REPORT/BETS API
      • 免转钱包 SEAMLESS WALLET
      • 报表 REPORT API
        • Verify Transactions
        • Check Transaction
        • Order Link
        • Verify Transactions Summary
        • Detailed Betting report
      • 附录
        • 投注类型
      • CompletedDOC
      • Verify Transactions
      • Check Transaction
      • Order Link
      • Verify Transactions Summary
      • Detailed Betting report
    • VL
      • report_bets
      • replay_Transfer
      • report_verifyTransactionsSummary
      • report_orderLink
      • report_checkTransaction
      • report_transfer
      • report_getTotalLoss
      • report_getSummaryBet
      • replay
      • betAmountSinceLastDeposit
      • playersByBalance
      • balance
      • withdrawal
      • deposit
    • VegasloungeAPI
      • 客户端 CLIENT API
        • 示例 获取游戏列表
      • 身份验证 Authentication API
      • 转账钱包 TRANSFER WALLET
        • 示例: 获取玩家余额 Balance
        • 示例: 查询玩家指定余额 playersByBalance
        • 示例: 查询总损失总结 getTotalLoss API
        • 示例: 转入 DEPOSIT API
        • 示例: 转出 WITHDRAW API
        • 示例: 查询玩家最后存款投注金额 betAmountSinceLastDeposit
        • 示例: 查询玩家投注总结 getSummaryBet
        • 示例: 投注记录 REPORT/BETS API
      • 免转钱包 SEAMLESS WALLET
      • 报表 REPORT API
        • Verify Transactions
        • Check Transaction
        • Order Link
        • Verify Transactions Summary
        • Detailed Betting report
      • CompletedDOC
        • 附录
          • 投注类型
      • Detailed Betting report
      • Verify Transactions Summary
      • Order Link
      • Check Transaction
      • Verify Transactions
  1. Shopping

Return list of Flight Offers based on posted searching criteria.

POST
/shopping/flight-offers
Shopping

Request

Header Params
X-HTTP-Method-Override
string 
required
the HTTP method to apply
Default:
GET
Body Params application/vnd.amadeus+json
currencyCode
string 
optional
The currency code, as defined in ISO 4217, to reflect the currency in which this amount is expressed.
Example:
EUR
originDestinations
array[object (OriginDestination) {11}] 
originDestinations
required
Origins and Destinations must be properly ordered in time (chronological order in accordance with the timezone of each location) to describe the journey consistently. Dates and times must not be past nor more than 365 days in the future, according to provider settings.Number of Origins and Destinations must not exceed the limit defined in provider settings.
>= 1 items<= 6 items
id
string 
optional
Example:
1
originLocationCode
string 
optional
Origin location, such as a city or an airport. Currently, only the locations defined in IATA are supported.
Example:
PAR
destinationLocationCode
string 
optional
Destination location, such as a city or an airport. Currently, only the locations defined in IATA are supported.
Example:
NYC
includedConnectionPoints
array[string]
optional
List of included connections points. When an includedViaPoints option is specified, all FlightOffer returned must at least go via this Connecting Point. Currently, only the locations defined in IATA are supported. Used only by the AMADEUS provider
>= 1 items<= 2 items
Example:
["MRS"]
excludedConnectionPoints
array[string]
optional
List of excluded connections points. Any FlightOffer with these connections points will be present in response. Currently, only the locations defined in IATA are supported. Used only by the AMADEUS provider
>= 1 items<= 3 items
Example:
["MRS"]
originRadius
number 
optional
Include other possible locations around the point, located less than this distance in kilometers away. Max:300
Can not be combined with "dateWindow" or "timeWindow".
Example:
200
alternativeOriginsCodes
array[string]
optional
Set of alternative origin location, such as a city or an airport. Currently, only the locations defined in IATA are supported.
>= 1 items<= 2 items
Example:
["LON","MUC"]
destinationRadius
number 
optional
Include other possible locations around the point, located less than this distance in kilometers away. Max:300
Can not be combined with "dateWindow" or "timeWindow".
Example:
200
alternativeDestinationsCodes
array[string]
optional
Set of alternative destination location, such as a city or an airport. Currently, only the locations defined in IATA are supported.
>= 1 items<= 2 items
departureDateTimeRange
object 
dateTimeRange
optional
arrivalDateTimeRange
object 
dateTimeRange
optional
travelers
array[object (Extended_TravelerInfo) {3}] 
travelers
required
travelers in the trip.
Maximum number of passengers older than 2 yo (CHILD, ADULT, YOUGHT): 9.
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
required
traveler type
age restrictions : CHILD < 12y, HELD_INFANT < 2y, SEATED_INFANT < 2y, SENIOR >=60y
Allowed values:
ADULTCHILDSENIORYOUNGHELD_INFANTSEATED_INFANTSTUDENT
Example:
ADULT
associatedAdultId
string 
optional
if type="HELD_INFANT", corresponds to the adult travelers's id who will share the seat
sources
array[string]
sources
required
Allows enable one or more sources. If present in the list, these sources will be called by the system.
>= 1 items
Allowed value:
GDS
searchCriteria
object (SearchCriteria) 
optional
excludeAllotments
boolean 
optional
This option allows to exclude the isAllotment flag associated to a booking class in the search response when it exist.
Example:
false
addOneWayOffers
boolean 
optional
This option allows activate the one-way combinable feature
Example:
true
maxFlightOffers
number 
optional
Maximum number of flight offers returned (Max 250)
Default:
250
Example:
250
maxPrice
integer 
optional
maximum price per traveler. By default, no limit is applied. If specified, the value should be a positive number with no decimals
Example:
100
allowAlternativeFareOptions
boolean 
optional
This option allows to default to a standard fareOption if no offers are found for the selected fareOption.
Example:
true
oneFlightOfferPerDay
boolean 
optional
Requests the system to find at least one flight-offer per day, if possible, when a range of dates is specified. Default is false.
Example:
true
additionalInformation
object 
AdditionalInformation
optional
pricingOptions
object (pricingOptions) 
optional
fare filter options
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
Successful Operation
Body
object {0}
Example
{}
🟠400Bad Request
🔴500Server Error
Next
Return list of Flight Offers based on searching criteria.
Built with