For the complete documentation index, see llms.txt. This page is also available as Markdown.

提取 PNR

Atlas API 提取 PNR 端点参考,用于获取 PNR 数据,支持订单恢复、服务和预订后处理。

💬 需要帮助? 如果遇到问题,请在帮助中心咨询 Eva,快速获取诊断建议。

咨询 Eva

使用 extractPnr.do 从现有 Atlas 订单中获取 PNR 数据。

该端点支持订单恢复、服务处理,以及 Atlas 与航司之间的 PNR 数据同步。

常见问题

何时应使用 extractPnr.do

当需要从已有 Atlas 订单检索 PNR 详细信息时使用。

它适用于订单恢复、服务和预订后处理。

PNR 提取与认领有什么区别?

PNR 提取用于读取 Atlas 订单关联的 PNR 数据。

PNR 认领用于将外部创建的航司 PNR 关联到 Atlas。

提取 PNR 后应做什么?

根据订单服务或同步流程处理返回的 PNR 数据。

使用PNR 认领与提取了解常见用例。

Extract PNR

post

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

Header parameters
AcceptstringRequiredExample: application/json
Content-TypestringRequiredExample: application/json
Accept-EncodingstringRequiredDefault: gzipExample: gzip
x-atlas-client-idstringRequiredDefault: <YOUR_CLIENT_ID>Example: <YOUR_CLIENT_ID>
x-atlas-client-secretstringRequiredDefault: <YOUR_CLIENT_SECRET>Example: <YOUR_CLIENT_SECRET>
Body
airlinePnrstringRequired

The airline PNR

carrierstringRequired

2-letter IATA code for the airline

timeoutinteger · nullableOptional

The maximum response duration, in milliseconds. Note: This time is estimated due to the impact of network transmission.

Default: 15000
Responses
200Success
application/json
statusinteger · enumRequiredPossible values:
msgstring · nullableOptional
airlinePnrstringRequired

Airline PNR(not Atlas)

Example: BSG768
pnrStatusstring · enumRequiredExample: TicketedPossible values:
pnrUsedstring · enum · nullableRequired

pnr usage status

Possible values:
currencystring · nullableOptional

The currency of fare

Example: USD
totalPricestring · nullableOptional
post/extractPnr.do
200Success

Last updated

Was this helpful?