Hotel ID List
About 198 wordsLess than 1 minute
POST Hotel ID API
POST /v1.0/static/hotelIds
Request Parameters
{
"countryId": 66,
"cityId": 233
}| 名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
|---|---|---|---|---|---|
| countryId | int | 必填 | none | 国家编号 | 国家编号 |
| cityId | int | 必填 | none | 城市编号 | 城市编号 |
Request Example
curl --location --request POST '{{domain}}/v1.0/static/hotelIds' \
--header 'Authorization: PHT apikey={{api_key}},signature={{signature}},timestamp={{timestamp}}' \
--header 'api_key: {{api_key}}' \
--header 'Content-Type: application/json' \
--header 'Accept: */*' \
--header 'Connection: keep-alive' \
--data-raw '{
"countryId": 66,
"cityId": 233
}'Response Example
{
"responseStatus": "SUCCESS",
"version": "v1.0",
"hotels": {
"countryId": 66,
"cityId": 233,
"hotelIds": ["11775754"]
},
"remark": ""
}| Field | Type | Required | Description |
|---|---|---|---|
| responseStatus | string | Yes | Response status |
| version | string | Yes | API version |
| remark | string | No | Additional remarks |
| hotels | object | Yes | Hotel collection |
| countryId | string | Yes | Country ID |
| cityId | string | Yes | City ID |
| hotelIds | List | No | List of hotel IDs |
Status Codes
| Code | Description |
|---|---|
| SUCCESS | Request successful |
| NO_FIND | No data found |
| UNAUTHORIZED | Authentication failed |
| SUPPLIER_SERVER_ERROR | Server or upstream API error |