似乎无论我尝试在什么酒店或入住日期,GET /shopping/hotel-offers/by-hotel
端点始终不返回任何空房。城市的GET /shopping/hotel-offers
总是返回一个或多个有空房的酒店。我了解可以缓存这些结果,但是随后在GET /shopping/hotel-offers/by-hotel
端点中使用这些酒店中的任何一个都不会返回可用性
示例1
GET https://test.api.amadeus.com/v2/shopping/hotel-offers?cityCode=NYC
(RESPONSE TRUNCATED FOR READABILITY)
{
"data": [
{
"type": "hotel-offers",
"hotel": {
"type": "hotel",
"hotelId": "BWNYC133",
"chainCode": "BW",
"dupeId": "700101379",
"name": "BEST WESTERN BOWERY HANBEE HTL"
...
"available": true,
"offers": [
{
"id": "15F1E33CA0571B94E27F2BA26CA4319C8A097B500D737AB68088E93AC813D2BC",
"rateCode": "SRS",
"rateFamilyEstimated": {
"code": "SRS",
"type": "C"
},
"boardType": "BREAKFAST",
"room": {
"type": "A1Q",
"typeEstimated": {
"category": "ACCESSIBLE_ROOM",
"beds": 1,
"bedType": "QUEEN"
},
}
...
],
...
}
Immediately followed by
GET https://test.api.amadeus.com/v2/shopping/hotel-offers/by-hotel?hotelId=BWNYC133
RESPONSE
{
"errors": [
{
"status": 400,
"code": 3664,
"title": "NO ROOMS AVAILABLE AT REQUESTED PROPERTY"
}
]
}
无论我尝试在哪个城市的哪家酒店都一样。难道我做错了什么?我已经在端点上玩了几个小时,但只能从城市端点的酒店获得成功的答复。
感谢提供的任何帮助。
答案 0 :(得分:0)
我们的一些酒店供应商测试系统遇到暂时性问题,这比您的示例中的响应时间或超时要慢。我们尝试了相同的请求,并且在大多数情况下都有效,因此,当我们与供应商合作解决此问题时,您可以尝试执行几次请求,直到获得答复为止。
抱歉给您带来的不便!