Baggage
Atlas API getLuggage.do reference for retrieving baggage products and productCode values for order creation.
Use this endpoint for inflow baggage lookup.
GetLuggage call rules
Use getLuggage.do inside a valid booking chain.
Supported request context:
sessionIdreturned byverify.do, sent asofferIdOfferIdreturned bygetOffers.do
What to do with the response
getLuggage.do returns baggage products for the current itinerary.
Each product has a productCode.
Use that productCode in order.do when baggage is selected.
Notes
query baggage after the target itinerary is confirmed
keep baggage mapping consistent for the current booking context
for connecting flights, keep baggage selection consistent across connected segments in the same direction
Use API Request Limits for shared rules and counting details.
In a booking process, please call the 'getLuggage' API to get precise baggage quotes after price verification via 'verify' or 'getOffer'. Steps:
API sequence
Search - Verify- getLuggage - Order - Pay
getOffer - getLuggage - Order - Pay
For exact baggage prices, request 'getLuggage'.
Pass 'offerId' in 'getLuggage' requests:
From 'verify': Use sessionId as offerId
From 'getOffer': Use its offerId directly.
'getLuggage' returns all flight segments' baggage data, each identified by a unique productCode.
In the Order step, use the productCode to add specific baggage products to the ticket order.
Endpoint: https://sandbox.atriptech.com/getLuggage.do
api access id
NAR65434_api_1api access secret
changeit建议设置该请求头,能很大程度地减小网络传输报文的大小
gzipapplication/jsonapplication/jsonThesessionIdreturned by verify api(verify.do)
85540632-ef14-4cb2-900e-453ef0a19477Query 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.
5000POST /getLuggage.do HTTP/1.1
x-atlas-client-id: text
x-atlas-client-secret: text
Accept: text
Content-Type: application/json
Content-Length: 50
{
"offerId": "o_d2c7d44baf2643ebac8b7926a8b0be60_1"
}{
"status": 0,
"msg": null,
"data": {
"offerId": "o_d2c7d44baf2643ebac8b7926a8b0be60_1",
"ancillaryProductElements": [
{
"ancillaryCode": "SCI_BAG_5KG",
"auxBaggageElement": {
"allWeight": true,
"piece": 0,
"size": "",
"weight": 5
},
"canPurchasePostTicket": 1,
"canPurchaseWithTicket": 1,
"categoryCode": "StandardCheckInBaggage",
"clientTechnicalServiceFee": 0,
"currency": "USD",
"maxQty": 1,
"minQty": 1,
"price": 10.17,
"productCode": "SCI_BAG_5KG",
"segmentIndex": 1,
"vendorCurrency": "IDR",
"vendorPrice": 165000
},
{
"ancillaryCode": "SCI_BAG_10KG",
"auxBaggageElement": {
"allWeight": true,
"piece": 0,
"size": "",
"weight": 10
},
"canPurchasePostTicket": 1,
"canPurchaseWithTicket": 1,
"categoryCode": "StandardCheckInBaggage",
"clientTechnicalServiceFee": 0,
"currency": "USD",
"maxQty": 1,
"minQty": 1,
"price": 16.34,
"productCode": "SCI_BAG_10KG",
"segmentIndex": 1,
"vendorCurrency": "IDR",
"vendorPrice": 265000
},
{
"ancillaryCode": "SCI_BAG_30KG",
"auxBaggageElement": {
"allWeight": true,
"piece": 0,
"size": "",
"weight": 30
},
"canPurchasePostTicket": 1,
"canPurchaseWithTicket": 1,
"categoryCode": "StandardCheckInBaggage",
"clientTechnicalServiceFee": 0,
"currency": "USD",
"maxQty": 1,
"minQty": 1,
"price": 36.06,
"productCode": "SCI_BAG_30KG",
"segmentIndex": 1,
"vendorCurrency": "IDR",
"vendorPrice": 585000
},
{
"ancillaryCode": "SCI_BAG_20KG",
"auxBaggageElement": {
"allWeight": true,
"piece": 0,
"size": "",
"weight": 20
},
"canPurchasePostTicket": 1,
"canPurchaseWithTicket": 1,
"categoryCode": "StandardCheckInBaggage",
"clientTechnicalServiceFee": 0,
"currency": "USD",
"maxQty": 1,
"minQty": 1,
"price": 24.35,
"productCode": "SCI_BAG_20KG",
"segmentIndex": 1,
"vendorCurrency": "IDR",
"vendorPrice": 395000
},
{
"ancillaryCode": "SCI_BAG_40KG",
"auxBaggageElement": {
"allWeight": true,
"piece": 0,
"size": "",
"weight": 40
},
"canPurchasePostTicket": 1,
"canPurchaseWithTicket": 1,
"categoryCode": "StandardCheckInBaggage",
"clientTechnicalServiceFee": 0,
"currency": "USD",
"maxQty": 1,
"minQty": 1,
"price": 48.38,
"productCode": "SCI_BAG_40KG",
"segmentIndex": 1,
"vendorCurrency": "IDR",
"vendorPrice": 785000
}
],
"inboundSegments": [],
"outboundSegments": [
{
"aircraftCode": "320",
"arrAirport": "CGK",
"arrTerminal": "",
"arrTime": "202508231100",
"cabin": "",
"cabinClass": 1,
"carrier": "QG",
"codeShare": false,
"depAirport": "SIN",
"depTerminal": "",
"depTime": "202508231010",
"duration": 110,
"fareFamily": "ECO",
"flightNumber": "QG523",
"operatingCarrier": "",
"operatingFlightnumber": "",
"seatCount": 9,
"segmentIndex": 1,
"stopCities": ""
}
]
}
}Last updated
Was this helpful?

