Appearance
推送酒店价格(pms接口)
- 请求方式:
POST - 请求地址:
/nsAgentHotel/pushAgentHotelPrice
请求参数(Body)
| 参数 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| appid | string | 是 | appid | 921a345cd6944b4c |
| template | string | 是 | 十位时间戳 | 1761543988 |
| sign | string | 是 | 签名(md5(‘ns’+appid+secretKey+template)) | 154fb7e3ea8ad4fd7efca03107cbd460 |
| id | number | 是 | 服务商酒店ID | 3233 |
| priceInfo[0][roomId] | number | 是 | 服务商酒店房型ID | 1082759 |
| priceInfo[0][planId] | number | 是 | 服务商酒店房型计划ID | 1667132 |
| priceInfo[0][priceCode][0][date] | string | 是 | 价格日期(一次最多传30天价格, 最多60天) | 2025-10-28 |
| priceInfo[0][priceCode][0][cost] | number | 否 | 价格(只保留小数点后两位) | 500 |
| priceInfo[0][priceCode][0][amount] | number | 否 | 售卖间数 | 6 |
| priceInfo[0][priceCode][0][status] | number | 否 | 状态:0关房1:有房 | 1 |
| priceInfo[0][priceCode][1][date] | string | 是 | 价格日期(一次最多传30天价格) | 2025-10-27 |
| priceInfo[0][priceCode][1][cost] | string | 否 | 价格 | 200 |
| priceInfo[0][priceCode][1][amount] | string | 否 | 售卖间数 | 2 |
| priceInfo[0][priceCode][1][status] | string | 否 | 状态:0关房1:有房 | 1 |
| priceInfo[1][roomId] | string | 是 | 服务商酒店房型ID | 1082759 |
| priceInfo[1][planId] | string | 是 | 服务商酒店房型计划ID | 1577451 |
| priceInfo[1][priceCode][0][date] | string | 是 | 价格日期(一次最多传30天价格) | 2025-10-28 |
| priceInfo[1][priceCode][0][cost] | string | 否 | 价格(只保留小数点后两位) | 2000.23 |
| priceInfo[1][priceCode][0][amount] | string | 否 | 售卖间数 | 1 |
| priceInfo[1][priceCode][0][status] | string | 否 | 状态:0关房1:有房 | 0 |
请求体示例
json
{"appid": "XNTjz76M8o6xpVlJgN2h", "template": 1753163375, "sign": "cee8527ec8777ca108d55e83033c197c", "id": 181044, "priceInfo": [{"roomId": 1052087, "planId": 1394395, "priceCode": [{"date": "2025-07-22", "cost": 250, "amount": 6, "status": 1}]}, {"roomId": 1060278, "planId": 1394396, "priceCode": [{"date": "2025-07-22", "cost": 324, "amount": 6, "status": 1}]}, {"roomId": 1060116, "planId": 1394397, "priceCode": [{"date": "2025-07-22", "cost": 344, "amount": 2, "status": 1}]}, {"roomId": 1060115, "planId": 1394398, "priceCode": [{"date": "2025-07-22", "cost": 270, "amount": 6, "status": 1}]}, {"roomId": 1060249, "planId": 1394399, "priceCode": [{"date": "2025-07-22", "cost": 290, "amount": 1, "status": 0}]}, {"roomId": 1053597, "planId": 1394401, "priceCode": [{"date": "2025-07-22", "cost": 406, "amount": 1, "status": 0}]}]}响应示例
json
{
"msg": "推送成功",
"url": "",
"success": true,
"status": "success",
"data": [],
"code": 0
}