Atlas API-Sabre
  1. Shopping and Ticketing
Atlas API-Sabre
  • Shopping and Ticketing
    • Search
      POST
    • Verify
      POST
    • Order
      POST
    • Order Commit
      POST
    • Payment
      POST
    • Retrieve Booking
      POST
    • Smart Search
      POST
    • Get Offer
      POST
    • Seat Availability
      POST
    • Get Luggage
      POST
  • Post Ticketing Service
    • Search Ancillary
      POST
    • Order Ancillary
      POST
  • Notifications and Webhook
    • Register Webhook
      POST
    • Incident List
      POST
  • Refund
    • Refund Quotation
      POST
    • Make a Refund
      POST
    • Query Refund Status
      POST
  • Other Functions
    • Regenerate Order
      POST
    • Stop Ticket Issuance
      POST
    • Order List
      POST
    • PNR Claim
      POST
    • Get Balance
      POST
    • City Pairs API
      POST
    • Email List
      POST
    • Extract PNR
      POST
    • getAtripToken
      POST
  1. Shopping and Ticketing

Get Luggage

POST
/getLuggage.do

Request

Header Params
x-atlas-client-id
string 
required
api access id
Example:
NAR65434_api_1
x-atlas-client-secret
string 
required
api access secret
Example:
changeit
Accept-Encoding
string 
required
建议设置该请求头,能很大程度地减小网络传输报文的大小
Example:
gzip
Accept
string 
required
Default:
application/json
Content-Type
string 
required
Default:
application/json
Body Params application/json
offerId
string 
required
ThesessionIdreturned by verify api(verify.do)
Example:
85540632-ef14-4cb2-900e-453ef0a19477
maxResponseTime
integer  | null 
optional
Query timeout, unit: milliseconds, default 5000ms.

Note: Due to network transmission and computational performance impacts, the client may still receive a normal result (rather than a timeout) even if this duration is exceeded. This time is used to control the overall response time of the interface within a certain range, with an error generally not exceeding a few hundred milliseconds.

If you have strict requirements for the timeout, it is recommended to set the timeout of your HTTP toolkit. If the HTTP toolkit you are using does not support this capability, you may need to leverage other tools—related capabilities are generally provided in most programming languages.
Default:
5000
Example
{
    "offerId": "85540632-ef14-4cb2-900e-453ef0a19477",
    "maxResponseTime": 5000
}

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 'https://sandbox.atriptech.com/getLuggage.do' \
--header 'x-atlas-client-id: NAR65434_api_1' \
--header 'x-atlas-client-id;' \
--header 'x-atlas-client-secret: changeit' \
--header 'x-atlas-client-secret;' \
--header 'Accept-Encoding: gzip' \
--header 'Accept-Encoding;' \
--header 'Accept;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "offerId": "85540632-ef14-4cb2-900e-453ef0a19477",
    "maxResponseTime": 5000
}'

Responses

🟢200成功
application/json
Body
status
enum<integer> 
required
212: illegal parameter.
214: offer not exists.
205: timed out.
299: airline error.
9999: system error.
Allowed values:
2122142052999999
Example:
0
msg
string  | null 
optional
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.

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.
data
object 
required
offerId
string 
required
Example:
85540632-ef14-4cb2-900e-453ef0a19477
outboundSegments
array[object (Segment) {18}] 
required
inboundSegments
array[object (Routing-Segment) {19}]  | null 
optional
ancillaryProductElements
array[object (AncillaryProduct) {14}] 
required
Example
{
    "status": 212,
    "msg": "string",
    "data": {
        "offerId": "85540632-ef14-4cb2-900e-453ef0a19477",
        "outboundSegments": [
            {
                "segmentIndex": 1,
                "carrier": "W6",
                "flightNumber": "W65083",
                "depAirport": "TIA",
                "depTime": "202503051115",
                "arrAirport": "GOA",
                "arrTime": "202503051320",
                "stopCities": "string",
                "duration": 125,
                "cabin": "R",
                "cabinClass": 1,
                "seatCount": 6,
                "aircraftCode": "string",
                "depTerminal": "string",
                "arrTerminal": "string",
                "operatingCarrier": "W6",
                "operatingFlightnumber": "string",
                "fareFamily": "string"
            }
        ],
        "inboundSegments": [
            {
                "aircraftCode": "string",
                "arrAirport": "string",
                "arrTerminal": "string",
                "arrTime": "string",
                "cabin": "string",
                "cabinClass": 1,
                "carrier": "string",
                "codeShare": true,
                "depAirport": "string",
                "depTerminal": "string",
                "depTime": "string",
                "duration": 0,
                "fareFamily": "string",
                "flightNumber": "string",
                "operatingCarrier": "string",
                "operatingFlightnumber": "string",
                "seatCount": 0,
                "segmentIndex": 0,
                "stopCities": "string"
            }
        ],
        "ancillaryProductElements": [
            {
                "ancillaryCode": "string",
                "auxBaggageElement": {
                    "isAllWeight": true,
                    "piece": 0,
                    "size": "string",
                    "weight": 0
                },
                "canPurchasePostTicket": 0,
                "canPurchaseWithTicket": 0,
                "categoryCode": "StandardCheckInBaggage",
                "clientTechnicalServiceFee": 0,
                "currency": "string",
                "maxQty": 0,
                "minQty": 0,
                "price": 0,
                "productCode": "string",
                "segmentIndex": 0,
                "vendorCurrency": "string",
                "vendorPrice": 0
            }
        ]
    }
}
Modified at 2025-07-18 06:59:12
Previous
Seat Availability
Next
Search Ancillary
Built with