如何解决Sabre 无法使用“重新验证行程”REST API
我正在尝试按照开发人员指南了解文档中的机票预订流程。 https://developer.sabre.com/guides/travel-agency/workflows/air-booking
在这里,我使用了基于令牌的身份验证 (v2),我可以使用其余的 api 成功搜索和预订。但是,在使用文档 https://developer.sabre.com/docs/rest_apis/air/search/revalidate_itinerary/reference-documentation
中的示例点击 revalidate itinerary api 后在这里,我收到以下错误。 (注意:我在这里更改了 pcc 代码。原始请求使用了正确的 pnr。)
回复:
{
"groupedItineraryResponse": {
"version": "6.3.0","messages": [
{
"severity": "Info","type": "WORKERTHREAD","code": "TRANSACTIONID","text": "3019835637227710880"
},{
"severity": "Info","type": "SERVER","code": "ASE032LPSCIL668.ATSE.CERT.ASCINT.SABRECIRRUS.COM","text": "27038"
},"type": "DRE","code": "RULEID","text": "25961"
},"type": "DEFAULT","text": "25959"
},{
"severity": "Error","type": "IF2","code": "PROCESS","text": "PCC EPCC: Revalidate Itinerary not requested."
},"type": "ERR","code": "ERR","text": "Error during Processing"
}
],"statistics": {
"itineraryCount": 0
}
}
}
API 网址:https://api-crt.cert.havail.sabre.com/v3/shop/flights/revalidate
请求json:
{
"OTA_AirLowFareSearchRQ": {
"OriginDestinationInformation": [
{
"RPH": "0","DepartureDateTime": "2021-08-14T00:00:00","OriginLocation": {
"LocationCode": "KRK"
},"DestinationLocation": {
"LocationCode": "WAW"
}
}
],"POS": {
"Source": [
{
"PseudoCityCode": "EPCC","RequestorID": {
"CompanyName": {
"Code": "TN"
},"ID": "1","Type": "1"
}
}
]
},"TPA_Extensions": {
"IntelliSellTransaction": {
"RequestType": {
"Name": "200ITINS"
}
}
},"TravelPreferences": {
"TPA_Extensions": {
"DataSources": {
"NDC": "Disable","ATPCO": "Enable","LCC": "Disable"
},"NumTrips": {}
}
},"TravelerInfoSummary": {
"AirTravelerAvail": [
{
"PassengerTypeQuantity": [
{
"Code": "ADT","Quantity": 1
}
]
}
],"SeatsRequested": [
1
]
},"Version": "3"
}
}
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。