此服务不允许使用Day / DaysRange请求限定符

时间:2018-06-20 14:36:39

标签: rest sabre

我不能在OTA_AirLowFareSearchRQ中使用Day或DaysRange

我正在尝试在几天甚至特定日期范围内发出低价搜索请求,但该服务始终返回该服务不允许使用Day / DaysRange请求限定符且未找到404

这是低价搜索json请求

FILE * fileptr = fopen("<name of file in double quotes>", "r"); // open file for reading
if (fileptr == NULL) /* do some error handling stuff */;
int i, j;
for (i = 0; i < 12; ++i)
    for (j = 0; j < 12; ++j)
        fscanf(fileptr, "%d", &matr[i][j]);
// Some important matrix stuff...
fclose(fileptr); // close your file when done

这是我得到的答复

{    
"OTA_AirLowFareSearchRQ": {
"Target": "Test",
"POS": {
  "Source": [
    {
      "PseudoCityCode": "F9CE",
      "RequestorID": {
        "Type": "1",
        "ID": "1",
        "CompanyName": {}
      }
    }
  ]
},
"OriginDestinationInformation": [
  {
    "RPH": "0",
            "DepartureDates":{
                "DaysRange":[{
                    "FromDate":"2018-07-10",
                    "ToDate":"2018-07-12"
                }]
            },
    "OriginLocation": {
      "LocationCode": "CAI"
    },
    "DestinationLocation": {
      "LocationCode": "BER"
    },
    "TPA_Extensions": {
      "SegmentType": {
        "Code": "O"
      }
    }
  }
],
"TravelPreferences": {
  "ValidInterlineTicket": true,
  "CabinPref": [
    {
      "Cabin": "Y",
      "PreferLevel": "Preferred"
    }
  ],
  "TPA_Extensions": {
    "TripType": {
      "Value": "Return"
    },
    "LongConnectTime": {
      "Min": 780,
      "Max": 1200,
      "Enable": true
    },
    "ExcludeCallDirectCarriers": {
      "Enabled": true
    }
  }
},
"TravelerInfoSummary": {
  "SeatsRequested": [
    1
  ],
  "AirTravelerAvail": [
    {
      "PassengerTypeQuantity": [
        {
          "Code": "ADT",
          "Quantity": 1
        }
      ]
    }
  ]
},
"TPA_Extensions": {
  "IntelliSellTransaction": {
    "RequestType": {
      "Name": "50ITINS"
    }
  }
}
}
}

0 个答案:

没有答案