【问题标题】:BargainFinderMax returning NotFound - SabreBargainFinderMax 返回 NotFound - Sabre
【发布时间】:2017-05-25 06:54:30
【问题描述】:

环境 - https://api.sabre.com/

请求 Json:

    {
   "OTA_AirLowFareSearchRQ":{
      "DirectFlightsOnly":false,
      "AvailableFlightsOnly":false,
      "Version":"3.1.0",
      "Target":"Production",
      "POS":{
         "Source":[
            {
               "PseudoCityCode":"XXXX", //morphed for security
               "RequestorID":{
                  "Type":"1",
                  "ID":"1",
                  "CompanyName":{
                     "Code":"TN",
                     "content":"TN"
                  }
               }
            }
         ]
      },
      "OriginDestinationInformation":[
         {
            "RPH":"1",
            "DepartureDateTime":"2017-06-05T00:00:00",
            "OriginLocation":{
               "LocationCode":"JFK"
            },
            "DestinationLocation":{
               "LocationCode":"LAX"
            },
            "TPA_Extensions":{
               "SegmentType":{
                  "Code":"O"
               }
            }
         }
      ],
      "TravelPreferences":{
         "ValidInterlineTicket":true,
         "CabinPref":[
            {
               "Cabin":"Y",
               "PreferLevel":"Preferred"
            }
         ],
         "TPA_Extensions":{
            "TripType":{
               "Value":"OpenJaw"
            },
            "LongConnectTime":{
               "Min":1200,
               "Max":780,
               "Enable":true
            },
            "ExcludeCallDirectCarriers":{
               "Enabled":true
            }
         }
      },
      "TravelerInfoSummary":{
         "SpecificPTC_Indicator":true,
         "PriceRequestInformation":{
            "TPA_Extensions":{
               "PointOfSaleOverride":{
                  "Code":"TPE"
               }
            }
         },
         "SeatsRequested":[
            1
         ],
         "AirTravelerAvail":[
            {
               "PassengerTypeQuantity":[
                  {
                     "Code":"ADT",
                     "Quantity":1
                  }
               ]
            }
         ]
      },
      "TPA_Extensions":{
         "IntelliSellTransaction":{
            "RequestType":{
               "Name":"50ITINS"
            },
            "CompressResponse":{
               "Value":true
            }
         }
      }
   }
}

响应 Json:

{StatusCode: 404, ReasonPhrase: 'Not Found', Version: 1.1, Content: System.Net.Http.StreamContent, Headers:
{
  Conversation-ID: 
  Message-ID: mvwL2X
  X-Provider-Instance-ID: raf-darhlp019-9080
  Date: Thu, 25 May 2017 06:45:08 GMT
  Server: Apache-Coyote/1.1
  Content-Length: 1159
  Content-Type: application/json
}}

相同的请求适用于开发人员凭据,但不适用于生产环境。

【问题讨论】:

  • 您是否有在 PROD 中调用此服务的 BFM 协议?
  • @Bruno 是的,我们有
  • 当您说它可以使用开发人员凭据时,我猜您指的是 DevStudio 中提供的测试密钥。这些在 PROD 中不起作用。如果您有自己的 PCC,那么您应该使用它在 PROD 中进行身份验证。
  • @Bruno 我确实有自己的 PCC 和凭据,当我能够使用开发人员凭据获取讨价还价者最大响应时,为什么我无法使用自己的 PCC 获取讨价还价者最大响应证书?我正在使用 Rest 方法进行获取
  • 您可能需要将此情况报告给服务台,并提供您的凭据以供进一步调查。

标签: rest sabre


【解决方案1】:

404只是表示没有找到,所以很可能就是用了错误的URL。

您是否只是使用端点 URL (https://api.sabre.com/) 而不是指向实际服务 (v3.1.0/shop/flights) 的完整 URL。

为了给您更好的答案,我们需要更多信息。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2022-07-01
    • 2021-08-09
    • 2021-10-23
    • 2017-10-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多