2017-05-25 86 views
0

環境 - https://api.sabre.com/BargainFinderMax返回NOTFOUND - 軍刀

請求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 
}} 

了同樣的要求可與開發商憑據,但它不工作對生產環境。

+1

您有在PROD打電話給此服務的BFM協議嗎? – Bruno

+0

@Bruno是的,我們有 –

+0

當你說它適用於開發人員證書時,我猜你是指在DevStudio中提供的測試密鑰。這些在PROD中不起作用。如果您有自己的PCC,那麼您應該在PROD中進行身份驗證。 – Bruno

回答

-1

404只是意味着找不到,所以很可能這就像使用錯誤的URL一樣簡單。

難道你只是簡單地使用了端點URL(https://api.sabre.com/),而不是指向實際服務(v3.1.0/shop/flights)的完整URL。

爲了給你一個更好的答案,我們需要更多的信息。

相關問題