latestOpenAPI 3.0.12026-08-102668257.3 KB

8e9a8f8010ab

Shopping and Ticketing

Get Offer

Dependency: No preceding function needs to be called before Get Offer.

  • Compared to the Verify API, the GetOffer API does not rely on Search results and improves the success rate of price verify.
  • Please contact your Key Account Manager if you want to use the GetOffer API. Atlas will review your workflow and if deemed aplicable, Atlas will provide further information and support you with the implementation of this API.

Endpoint: https://sandbox.atriptech.com/getOffers.do

post/getOffers.do

Headers

Acceptstring required
Content-Typestring required
Accept-Encodingstring required
x-atlas-client-idstring required
x-atlas-client-secretstring required

Request body

adultsinteger required

Number of adults

childreninteger nullable

Number of children

infantsinteger nullable

Number of infants

currencystring nullable

Quotation currency, optional, default will be determined based on a certain strategy, such as the currency of the customer's pre deposit account

residentCodestring nullable

Resident discount code

Response

status0 | 116 | 112 | 9999 required
  • 0: success
  • 116: airline error
  • 112: timed out
  • 9999: system error
msgstring nullable

As an additional description of the response result. Especially when the interface reports an error (status ≠ 0), it is usually a human-readable error message. <br> Note: Do not use this field in any programming scenarios, such as judging whether the interface response is successful based on this field. You should always judge solely based on whether the status is equal to 0.