latestOpenAPI 3.0.12026-08-102668257.3 KB

8e9a8f8010ab

Shopping and Ticketing

Get Offer Price

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

Compared with the traditional Search API, the Fulfillment API provides the following core capabilities: -24/7 automated real-time fulfillment with zero manual intervention; -Automatic alerts triggered when the full-link timeout exceeds 5 minutes; -Unlimited ticketing for flights with imminent departure. Applicable Scenarios: It is designed for workflows where your order information has been fully confirmed, and Atlas needs to complete instant price verification and ticketing.

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

post/getOfferPrice.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.