【发布时间】:2020-03-20 06:15:42
【问题描述】:
我使用 REST API 并关注 Sabre 的 low fare search and book workflow
第 1 步:使用 Bargain Finder Max API 购买航班。
第 2 步:预订一个或多个航段,添加所有必需信息 创建乘客姓名记录 (PNR),并使用 创建乘客姓名记录 API。
我可以检索 Bargain Finder Max(步骤 1)数据,但我卡在 创建乘客姓名记录。它总是返回Unable to process the stateless transaction. Please retry. 错误。
这是有效载荷信息
请求数据
{
"CreatePassengerNameRecordRQ": {
"version": "2.3.0",
"targetCity": "****",
"haltOnAirPriceError": false,
"TravelItineraryAddInfo": {
"AgencyInfo": {
"Address": {
"AddressLine": "SABRE TRAVEL",
"CityName": "SOUTHLAKE",
"CountryCode": "US",
"PostalCode": "76092",
"StateCountyProv": {
"StateCode": "TX"
},
"StreetNmbr": "3150 SABRE DRIVE"
},
"Ticketing": {
"TicketType": "7TAW"
}
},
"CustomerInfo": {
"ContactNumbers": {
"ContactNumber": [
{
"NameNumber": "1.1",
"Phone": "817-555-1212",
"PhoneUseType": "H"
}
]
},
"PersonName": [
{
"NameNumber": "1.1",
"PassengerType": "ADT",
"GivenName": "John",
"Surname": "Tolliver"
}
]
}
},
"AirBook": {
"HaltOnStatus": [
{
"Code": "HL"
},
{
"Code": "KK"
},
{
"Code": "LL"
},
{
"Code": "NN"
},
{
"Code": "NO"
},
{
"Code": "UC"
},
{
"Code": "US"
}
],
"OriginDestinationInformation": {
"FlightSegment": [
{
"ArrivalDateTime": "2020-03-24T08:48:00T00:00:00",
"DepartureDateTime": "2020-03-24T08:48:00T00:00:00",
"FlightNumber": "",
"NumberInParty": "1",
"ResBookDesigCode": "Y",
"Status": "NN",
"DestinationLocation": {
"LocationCode": ""
},
"MarketingAirline": {
"Code": "",
"FlightNumber": ""
},
"OriginLocation": {
"LocationCode": ""
}
},
{
"ArrivalDateTime": "2020-03-24T08:48:00T00:00:00",
"DepartureDateTime": "2020-03-24T08:48:00T00:00:00",
"FlightNumber": "",
"NumberInParty": "1",
"ResBookDesigCode": "Y",
"Status": "NN",
"DestinationLocation": {
"LocationCode": ""
},
"MarketingAirline": {
"Code": "",
"FlightNumber": ""
},
"OriginLocation": {
"LocationCode": ""
}
}
]
},
"RedisplayReservation": {
"NumAttempts": 10,
"WaitInterval": 300
}
},
"AirPrice": [
{
"PriceRequestInformation": {
"Retain": true,
"OptionalQualifiers": {
"FOP_Qualifiers": {
"BasicFOP": {
"Type": "CK"
}
},
"PricingQualifiers": {
"PassengerType": [
{
"Code": "0",
"Quantity": "1"
}
]
}
}
}
}
],
"SpecialReqDetails": {
"AddRemark": {
"RemarkInfo": {
"FOP_Remark": {
"Type": "CHECK"
}
}
},
"SpecialService": {
"SpecialServiceInfo": {
"SecureFlight": [
{
"PersonName": {
"DateOfBirth": "2009-05-14",
"Gender": "F",
"NameNumber": "2.1",
"GivenName": "mim",
"Surname": "khan"
},
"SegmentNumber": "A"
}
],
"Service": [
{
"PersonName": {
"NameNumber": "2.1"
},
"SSR_Code": "CHLD",
"Text": "01MAY07"
}
]
}
}
},
"PostProcessing": {
"EndTransaction": {
"Source": {
"ReceivedFrom": "SP WEB"
}
},
"RedisplayReservation": {
"waitInterval": 100
}
}
}
}
响应数据
{
"errorCode": "ERR.SP.PROVIDER_ERROR",
"message": "Unable to process the stateless transaction. Please retry.",
"status": "Incomplete",
"type": "Application",
"timeStamp": "2020-03-20T01:01:30-05"
}
【问题讨论】: