调用Sabre Instaflights Search API时遇到问题,下面是我面临的两个问题。
-
如果仅发送出发日期,则没有结果。 https://api-crt.cert.havail.sabre.com/v1/shop/flights?origin=JFK&destination=LAX&departuredate=2019-01-30&onlineitinerariesonly=N&limit=10&offset=1&eticketsonly=N&sortby=totalfare&order=asc&sortby2=departuretime&order2=asc&pointofsalecountry=US
下面是我得到的错误响应。
{
“ status”:“完成”,
“ reportingSystem”:“ RAF”,
“ timeStamp”:“ 2019-01-22T13:33:45 + 00:00”,
“ type”:“ Application”,
“ errorCode”:“ WARN.RAF.APPLICATION”,
“ instance”:“ raf-darhlc005.sabre.com-8080”,
“ message”:“未找到结果”
}
-
如果返回日期超过20天https://api-crt.cert.havail.sabre.com/v1/shop/flights?origin=JFK&destination=LAX&departuredate=2019-01-30&returndate=2019-02-20&onlineitinerariesonly=N&limit=10&offset=1&eticketsonly=N&sortby=totalfare&order=asc&sortby2=departuretime&order2=asc&pointofsalecountry=US
,则获取日期范围错误
下面是我得到的错误。
{
“ status”:“ NotProcessed”,
“ reportingSystem”:“ RAF”,
“ timeStamp”:“ 2019-01-22T13:43:26 + 00:00”,
“ type”:“验证”,
“ errorCode”:“ ERR.RAF.VALIDATION”,
“ instance”:“ raf-darhlc006.sabre.com-9080”,
“消息”:“”离开“和”返回日期“中的日期范围超过了允许的最大值”
}
请告诉我如何解决这些错误?