酒店编号
约 240 字小于 1 分钟
POST 酒店编号列表信息
POST /v1.0/static/hotelIds
请求参数
{
"countryId": 66,
"cityId": 233
}| 名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
|---|---|---|---|---|---|
| countryId | int | 必填 | none | 国家编号 | 国家编号 |
| cityId | int | 必填 | none | 城市编号 | 城市编号 |
请求示例
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
}'返回示例
{
"responseStatus": "SUCCESS",
"version": "v1.0",
"hotels": {
"countryId": 66,
"cityId": 233,
"hotelIds": ["11775754"]
},
"remark": ""
}| 属性 | 类型 | 必填 | 说明 |
|---|---|---|---|
| responseStatus | string | 必填 | 状态 |
| version | string | 必填 | 版本号 |
| remark | string | 非必填 | 备注 |
| hotels | object | 必填 | 酒店集合 |
| countryId | string | 必填 | 国家编号 |
| cityId | string | 必填 | 城市编号 |
| hotelIds | List | 非必填 | 酒店Id集合 |
状态码
| 编码 | 说明 |
|---|---|
| SUCCESS | 成功 |
| NO_FIND | 无数据 |
| UNAUTHORIZED | 认证校验失败 |
| SUPPLIER_SERVER_ERROR | 系统或接口异常 |