Я использую REST API и следую за поиском по низким тарифам и рабочим процессом Сабре
Шаг 1. Покупайте авиабилеты, используя API Bargain Finder Max.
Шаг 2. Забронируйте один или несколько сегментов полета, добавьте всю необходимую информацию для создания записи имени пассажира (PNR) и завершите транзакцию с помощью API-интерфейса «Создать запись имени пассажира».
Я могу получить Bargain Finder Максимальное количество данных (шаг 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"
}