【发布时间】:2022-09-30 01:48:42
【问题描述】:
我们正在尝试为西南航空公司 (WN) 使用 BargainFinderMax REST API v3/offers/shop 和 /v4/offers/shop,但在 CERT 环境中出现以下请求错误
我们已经绑定了新旧域名端点(根据https://developer.sabre.com/guides/travel-agency/developer-guides/api-endpoints),但仍然抛出错误
New Endpoints:
https://api.cert.platform.sabre.com/v4/offers/shop
https://api.cert.platform.sabre.com/v3/offers/shop
Old Endpoints:
https://api-crt.cert.havail.sabre.com/v4/offers/shop
https://api-crt.cert.havail.sabre.com/v3/offers/shop
请求#1:
{
\"OTA_AirLowFareSearchRQ\": {
\"MaxResponses\": \"10\",
\"OriginDestinationInformation\": [{
\"RPH\": \"1\",
\"DepartureDateTime\": \"2022-08-19T00:00:00\",
\"OriginLocation\": {
\"LocationCode\": \"SFO\"
},
\"DestinationLocation\": {
\"LocationCode\": \"LAX\"
},
\"TPA_Extensions\": {
\"SegmentType\": {
\"Code\": \"O\"
}
}
}],
\"POS\": {
\"Source\": [{
\"PseudoCityCode\": \"xxxx\",
\"RequestorID\": {
\"CompanyName\": {
\"Code\": \"TN\"
},
\"ID\": \"xxx.xx\",
\"Type\": \"x.xxx.x\"
}
}]
},
\"TravelPreferences\": {
\"MaxStopsQuantity\": 99,
\"TPA_Extensions\": {
\"DataSources\": {
\"ATPCO\": \"Enable\",
\"LCC\": \"Disable\",
\"NDC\": \"Disable\"
},
\"NumTrips\": {
\"Number\": 10
}
},
\"VendorPref\": [{
\"Code\": \"WN\"
}]
},
\"TravelerInfoSummary\": {
\"AirTravelerAvail\": [{
\"PassengerTypeQuantity\": [{
\"Code\": \"ADT\",
\"Quantity\": 1
}]
}],
\"PriceRequestInformation\": {
\"TPA_Extensions\": {}
},
\"SeatsRequested\": [1]
},
\"TPA_Extensions\": {
\"IntelliSellTransaction\": {
\"RequestType\": {
\"Name\": \"xxxITINS\"
}
}
},
\"Version\": \"3\"
}
}
请求#2:
{
\"OTA_AirLowFareSearchRQ\": {
\"MaxResponses\": \"10\",
\"OriginDestinationInformation\": [{
\"RPH\": \"1\",
\"DepartureDateTime\": \"2022-08-20T00:00:00\",
\"OriginLocation\": {
\"LocationCode\": \"SFO\"
},
\"DestinationLocation\": {
\"LocationCode\": \"LAX\"
},
\"TPA_Extensions\": {
\"SegmentType\": {
\"Code\": \"O\"
}
}
}],
\"POS\": {
\"Source\": [{
\"PseudoCityCode\": \"xxxx\",
\"RequestorID\": {
\"CompanyName\": {
\"Code\": \"TN\"
},
\"ID\": \"xx.xx\",
\"Type\": \"x.xxx.x\"
}
}]
},
\"TravelPreferences\": {
\"MaxStopsQuantity\": 99,
\"TPA_Extensions\": {
\"DataSources\": {
\"ATPCO\": \"Enable\",
\"LCC\": \"Disable\",
\"NDC\": \"Disable\"
},
\"NumTrips\": {
\"Number\": 10
}
},
\"VendorPref\": [{
\"Code\": \"WN\"
}]
},
\"TravelerInfoSummary\": {
\"AirTravelerAvail\": [{
\"PassengerTypeQuantity\": [{
\"Code\": \"ADT\",
\"Quantity\": 1
}]
}],
\"PriceRequestInformation\": {
\"TPA_Extensions\": {}
},
\"SeatsRequested\": [1]
},
\"TPA_Extensions\": {
\"IntelliSellTransaction\": {
\"RequestType\": {
\"Name\": \"xxxITINS\"
}
}
},
\"Version\": \"3\"
}
}
回应#1:
{
\"groupedItineraryResponse\": {
\"version\": \"6.6.1\",
\"messages\": [{
\"severity\": \"Info\",
\"type\": \"SERVER\",
\"code\": \"ASE032LPSCIL672.ATSE.CERT.ASCINT.SABRECIRRUS.COM\",
\"text\": \"27040\"
}, {
\"severity\": \"Info\",
\"type\": \"WORKERTHREAD\",
\"code\": \"TRANSACTIONID\",
\"text\": \"3620995504794847122\"
}, {
\"severity\": \"Info\",
\"type\": \"DRE\",
\"code\": \"RULEID\",
\"text\": \"13292\"
}, {
\"severity\": \"Info\",
\"type\": \"DEFAULT\",
\"code\": \"RULEID\",
\"text\": \"25238\"
}, {
\"severity\": \"Info\",
\"type\": \"SCHEDULES\",
\"code\": \"MSG\",
\"text\": \"NO FLIGHT SCHEDULES FOR QUALIFIERS USED\"
}, {
\"severity\": \"Error\",
\"type\": \"IF2\",
\"code\": \"PROCESS\",
\"text\": \"No complete journey can be built in IF2/ADVJR1.\"
}, {
\"severity\": \"Error\",
\"type\": \"ERR\",
\"code\": \"ERR\",
\"text\": \"Error during Processing\"
}],
\"statistics\": {
\"itineraryCount\": 0
}
}
}
回应#2:
{
\"groupedItineraryResponse\": {
\"version\": \"6.3.0\",
\"messages\": [{
\"severity\": \"Info\",
\"type\": \"SERVER\",
\"code\": \"ASE032LPSCIL744.ATSE.CERT.ASCINT.SABRECIRRUS.COM\",
\"text\": \"27035\"
}, {
\"severity\": \"Info\",
\"type\": \"WORKERTHREAD\",
\"code\": \"TRANSACTIONID\",
\"text\": \"3623196258955057549\"
}, {
\"severity\": \"Info\",
\"type\": \"DRE\",
\"code\": \"RULEID\",
\"text\": \"13292\"
}, {
\"severity\": \"Info\",
\"type\": \"DEFAULT\",
\"code\": \"RULEID\",
\"text\": \"25238\"
}, {
\"severity\": \"Info\",
\"type\": \"SCHEDULES\",
\"code\": \"MSG\",
\"text\": \"NO FLIGHT SCHEDULES FOR QUALIFIERS USED\"
}, {
\"severity\": \"Error\",
\"type\": \"IF2\",
\"code\": \"PROCESS\",
\"text\": \"No complete journey can be built in IF2/ADVJR1.\"
}, {
\"severity\": \"Error\",
\"type\": \"ERR\",
\"code\": \"ERR\",
\"text\": \"Error during Processing\"
}],
\"statistics\": {
\"itineraryCount\": 0
}
}
}
此外,使用旧端点在 PROD 环境中使用 /v1/offers/shop/ 对此进行了测试,仍然看到相同的问题。
Endpoint: https://api.havail.sabre.com/v1/offers/shop,
{
\"groupedItineraryResponse\": {
\"version\": \"5.2.0\",
\"messages\": [{
\"severity\": \"Info\",
\"type\": \"SERVER\",
\"code\": \"ASE032LPSPIL9BE.IDM.SGDCPROD.SABRE.COM\",
\"text\": \"27041\"
}, {
\"severity\": \"Info\",
\"type\": \"WORKERTHREAD\",
\"code\": \"TRANSACTIONID\",
\"text\": \"3629312323318444028\"
}, {
\"severity\": \"Info\",
\"type\": \"DRE\",
\"code\": \"RULEID\",
\"text\": \"15943\"
}, {
\"severity\": \"Info\",
\"type\": \"DEFAULT\",
\"code\": \"RULEID\",
\"text\": \"17500\"
}, {
\"severity\": \"Info\",
\"type\": \"SCHEDULES\",
\"code\": \"MSG\",
\"text\": \"NO FLIGHT SCHEDULES FOR QUALIFIERS USED\"
}, {
\"severity\": \"Error\",
\"type\": \"IF2\",
\"code\": \"PROCESS\",
\"text\": \"No complete journey can be built in IF2/ADVJR1.\"
}, {
\"severity\": \"Error\",
\"type\": \"ERR\",
\"code\": \"ERR\",
\"text\": \"Error during Processing\"
}],
\"statistics\": {
\"itineraryCount\": 0
}
}
}
相同的 API 调用适用于其他航空公司代码,如 Delta Airlines (\'DL\')、American Airlines (\'AA\')、United Airlines (\'UA\') 等。
任何人都可以分享有关为什么会发生这种情况以及我们如何解决这种行为的任何见解吗?