提取 PNR
Atlas API 提取 PNR 端点参考,用于获取 PNR 数据,支持订单恢复、服务和预订后处理。
使用 extractPnr.do 从现有 Atlas 订单中获取 PNR 数据。
该端点支持订单恢复、服务处理,以及 Atlas 与航司之间的 PNR 数据同步。
常见问题
何时应使用 extractPnr.do?
当需要从已有 Atlas 订单检索 PNR 详细信息时使用。
它适用于订单恢复、服务和预订后处理。
提取 PNR 后应做什么?
根据订单服务或同步流程处理返回的 PNR 数据。
使用PNR 数据提取了解常见用例。
This API is used to directly connect to airlines and extract PNR information. The content displayed by this API reflects the current PNR information on the airline side, such as flight schedule and ticket status. Atlas extracts airline information truthfully and will not do any modification.
Endpoint: https://sandbox.atriptech.com/extractPnr.do
application/jsonapplication/jsongzipExample: gzip<YOUR_CLIENT_ID>Example: <YOUR_CLIENT_ID><YOUR_CLIENT_SECRET>Example: <YOUR_CLIENT_SECRET>The airline PNR
2-letter IATA code for the airline
The maximum response duration, in milliseconds. Note: This time is estimated due to the impact of network transmission.
15000Airline PNR(not Atlas)
BSG768TicketedPossible values: pnr usage status
The currency of fare
USDPOST /extractPnr.do HTTP/1.1
Accept: text
Accept-Encoding: gzip
x-atlas-client-id: <YOUR_CLIENT_ID>
x-atlas-client-secret: <YOUR_CLIENT_SECRET>
Content-Type: application/json
Content-Length: 505
{
"airlinePnr": "0419",
"carrier": "BC",
"passengers": [
{
"firstName": "***",
"lastName": "*****",
"passengerType": null
}
],
"contact": {
"email": "*********************"
},
"routing": {
"fromSegments": [
{
"dptAirport": "UKB",
"arrAirport": "HND",
"flightNumber": "BC108",
"depTime": "2025-07-27 13:00",
"arrTime": "2025-07-27 14:15"
}
],
"retSegments": null
},
"timeout": 15000,
"requestSource": null,
"channel": null,
"mainChannel": null,
"subChannelID": null,
"requestOwner": null,
"requestId": "50fbfd16ec2c4bfa8f604f8788565311",
"clientRequestId": null
}{
"status": 0,
"msg": "text",
"airlinePnr": "BSG768",
"pnrStatus": "Ticketed",
"pnrUsed": "used",
"currency": "USD",
"totalPrice": "text",
"routing": {
"fromSegments": [
{
"aircraftCode": "text",
"arrAirport": "text",
"arrTerminal": "text",
"arrTime": "text",
"carrier": "text",
"codeShare": true,
"depAirport": "text",
"depTerminal": "text",
"depTime": "text",
"duration": 1,
"flightNumber": "text",
"operatingCarrier": "text",
"operatingFlightnumber": "text"
}
],
"retSegments": [
{
"aircraftCode": "text",
"arrAirport": "text",
"arrTerminal": "text",
"arrTime": "text",
"carrier": "text",
"codeShare": true,
"depAirport": "text",
"depTerminal": "text",
"depTime": "text",
"duration": 1,
"flightNumber": "text",
"operatingCarrier": "text",
"operatingFlightnumber": "text"
}
]
},
"paxTicketInfos": [
{
"name": "text",
"ticketNos": [
"text"
],
"airlinePNRs": [
"text"
],
"ancillaries": [
{
"productCode": "text",
"segmentIndex": 1,
"currency": "text",
"ancillaryPrice": 1,
"auxBaggageElement": {
"isAllWeight": true,
"piece": 1,
"size": "text",
"weight": 1
},
"auxSeatElement": {
"row": "27",
"column": "A"
},
"vendorCurrency": "text",
"vendorPrice": 1,
"displayCurrency": "text",
"displayPrice": 1
}
],
"contactEmails": [
"test@test.com"
],
"contactPhones": [
"0001-87291810"
],
"ticketStatus": "OPEN_FOR_USE"
}
],
"contact": {
"email": "text",
"companyName": "text"
}
}Last updated
Was this helpful?

