座位
Atlas API 座位端点参考,用于查询可用座位、选择座位,并将座位附加服务加入预订。
使用此端点进行流入座位查询。
SeatAvailability 调用规则
仅在有效的预订链中使用 seatAvailability.do。
支持的请求上下文:
verify.do返回的sessionIdgetOffers.do返回的OfferId
不支持的请求上下文:
仅航班信息
区域处理
全球客户
保持当前流程。
像以前一样使用 sessionId 或 OfferId。
中国 OTA 场景
某些上游座位请求仅包含航班信息。
对于这种情况,保留 verify.do 返回的 sessionId。
当座位请求到达时,将航班与缓存的 sessionId 进行匹配。
如果匹配成功,使用该 sessionId 调用 seatAvailability.do。
如果不存在匹配,则将其视为纯询价请求。
Atlas 不支持这种情况。
变更原因
此规则确保座位定价和履约与实际预订链保持一致。
同时也减少了无效的航司侧查询。
有关共享规则和计数详情,请使用 API 请求限制。
Dependency: Verify or getOffer function should be called in prior to this call.
In a booking process, please call the 'seatAvailability' API to get seat availability information after price verification via 'verify' or 'getOffer'. Steps:
API sequence
Search - Verify- seatAvailability - Order - Pay
getOffer - seatAvailability - Order - Pay
Pass 'offerId' in 'seatAvailability' requests:
From 'verify': Use sessionId directly. From 'getOffer': Use its offerId.
In the Order step, use the productCode to add specific seat to the ticket order.
Endpoint: https://sandbox.atriptech.com/seatAvailability.do
application/jsonapplication/jsongzipNAR65434_api_1<YOUR_CLIENT_SECRET>ThesessionIdreturned by price verification api(verify.do). Only required in Non-independent mode.
TheofferIDreturned by get offer api(getOffers.do). Only required in Non-independent mode.
The IATA code of MSC(known as Most Significant Carrier) of the itinerary.
POST /seatAvailability.do HTTP/1.1
Accept: text
Accept-Encoding: text
x-atlas-client-id: NAR65434_api_1
x-atlas-client-secret: text
Content-Type: application/json
Content-Length: 52
{
"sessionId": "f623b2c4-a1ed-4e8f-9cfb-5de1ae7739d6"
}{
"cabins": [
{
"segmentIndex": 1,
"cabin": {
"deck": "main",
"cabinClass": 1,
"cabinLayout": {
"columns": [
{
"designator": "A",
"characteristics": "W"
},
{
"designator": "B",
"characteristics": "M"
},
{
"designator": "C",
"characteristics": "A"
},
{
"designator": "D",
"characteristics": "W"
},
{
"designator": "E",
"characteristics": "M"
},
{
"designator": "F",
"characteristics": "A"
}
],
"rows": {
"first": 4,
"last": 20
},
"exitRowPositions": [
{
"first": 4,
"last": 5
},
{
"first": 10,
"last": 11
},
{
"first": 20,
"last": 20
}
]
},
"rows": [
{
"number": 4,
"seats": [
{
"column": "A",
"seatStatus": "F",
"seatCharacteristics": [
"W",
"L",
"E"
],
"price": 26.29,
"currency": "USD",
"vendorPrice": 26.29,
"vendorCurrency": "USD",
"productCode": "SCI_SEAT_4A_W6_FCO_BUD"
},
{
"column": "B",
"seatStatus": "F",
"seatCharacteristics": [
"M",
"L",
"E"
],
"price": 10.79,
"currency": "USD",
"vendorPrice": 10.79,
"vendorCurrency": "USD",
"productCode": "SCI_SEAT_4B_W6_FCO_BUD"
},
{
"column": "C",
"seatStatus": "F",
"seatCharacteristics": [
"A",
"L",
"E"
],
"price": 30.13,
"currency": "USD",
"vendorPrice": 30.13,
"vendorCurrency": "USD",
"productCode": "SCI_SEAT_4C_W6_FCO_BUD"
},
{
"column": "D",
"seatStatus": "F",
"seatCharacteristics": [
"W",
"L",
"E"
],
"price": 88.43,
"currency": "USD",
"vendorPrice": 88.43,
"vendorCurrency": "USD",
"productCode": "SCI_SEAT_4D_W6_FCO_BUD"
},
{
"column": "E",
"seatStatus": "F",
"seatCharacteristics": [
"M",
"L",
"E"
],
"price": 56.78,
"currency": "USD",
"vendorPrice": 56.78,
"vendorCurrency": "USD",
"productCode": "SCI_SEAT_4E_W6_FCO_BUD"
},
{
"column": "F",
"seatStatus": "F",
"seatCharacteristics": [
"A",
"L",
"E"
],
"price": 29.47,
"currency": "USD",
"vendorPrice": 29.47,
"vendorCurrency": "USD",
"productCode": "SCI_SEAT_4F_W6_FCO_BUD"
}
]
}
]
}
},
{
"segmentIndex": 2,
"cabin": {
"deck": "main",
"cabinClass": 1,
"cabinLayout": {
"columns": [
{
"designator": "A",
"characteristics": "W"
},
{
"designator": "B",
"characteristics": "M"
},
{
"designator": "C",
"characteristics": "A"
},
{
"designator": "D",
"characteristics": "W"
},
{
"designator": "E",
"characteristics": "M"
},
{
"designator": "F",
"characteristics": "A"
}
],
"rows": {
"first": 4,
"last": 20
},
"exitRowPositions": [
{
"first": 4,
"last": 5
},
{
"first": 10,
"last": 11
},
{
"first": 20,
"last": 20
}
]
},
"rows": [
{
"number": 5,
"seats": [
{
"column": "A",
"seatStatus": "F",
"seatCharacteristics": [
"W",
"L",
"E"
],
"price": 34.25,
"currency": "USD",
"vendorPrice": 34.25,
"vendorCurrency": "USD",
"productCode": "SCI_SEAT_5A_W6_BUD_FCO"
},
{
"column": "B",
"seatStatus": "F",
"seatCharacteristics": [
"M",
"L",
"E"
],
"price": 26.42,
"currency": "USD",
"vendorPrice": 26.42,
"vendorCurrency": "USD",
"productCode": "SCI_SEAT_5B_W6_BUD_FCO"
},
{
"column": "C",
"seatStatus": "F",
"seatCharacteristics": [
"A",
"L",
"E"
],
"price": 25.53,
"currency": "USD",
"vendorPrice": 25.53,
"vendorCurrency": "USD",
"productCode": "SCI_SEAT_5C_W6_BUD_FCO"
},
{
"column": "D",
"seatStatus": "F",
"seatCharacteristics": [
"W",
"L",
"E"
],
"price": 22.75,
"currency": "USD",
"vendorPrice": 22.75,
"vendorCurrency": "USD",
"productCode": "SCI_SEAT_5D_W6_BUD_FCO"
},
{
"column": "E",
"seatStatus": "F",
"seatCharacteristics": [
"M",
"L",
"E"
],
"price": 68.06,
"currency": "USD",
"vendorPrice": 68.06,
"vendorCurrency": "USD",
"productCode": "SCI_SEAT_5E_W6_BUD_FCO"
},
{
"column": "F",
"seatStatus": "F",
"seatCharacteristics": [
"A",
"L",
"E"
],
"price": 29.83,
"currency": "USD",
"vendorPrice": 29.83,
"vendorCurrency": "USD",
"productCode": "SCI_SEAT_5F_W6_BUD_FCO"
}
]
}
]
}
}
],
"status": 0,
"msg": "success"
}Last updated
Was this helpful?

