Appearance
推送酒店价格计划
- 请求方式:
POST - 请求地址:
/nsAgentHotel/pushHotelPlan
请求参数(Body)
| 参数 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| appid | string | 是 | appid | 921a345cd6944b4c |
| template | string | 是 | 十位时间戳 | 1761543988 |
| sign | string | 是 | 签名(md5(‘ns’+appid+secretKey+template)) | 154fb7e3ea8ad4fd7efca03107cbd460 |
| id | number | 是 | 服务商酒店ID | 3233 |
| roomId | number | 是 | 服务商酒店房型ID | 1082759 |
| planCode[0][breakfast] | number | 是 | 早餐数量0:无早,1:含一份早,以此类推 | 0 |
| planCode[0][is_cancel] | number | 是 | 是否可以取消:2-可以取消(30分钟之内免费取消),1-不可取消 | 1 |
| planCode[0][sale] | number | 是 | 是否售卖,1-售卖,2-不售卖 | 1 |
| planCode[0][cancel_advance_day] | number | 是 | 提前多少天取消订单 | 0 |
| planCode[0][cancel_specific_date] | string | 是 | 提前取消时间的具体时间 18:00 - 24:00 | 19:00 |
| planCode[0][cancel_cut_type] | number | 是 | 提前取消扣费方式,0:不扣费(作废);1:金额;2:比例;3:首晚房费; 4:全部房费(根据供应渠道通知,目前只有2和3选项) | 2 |
| planCode[0][cancel_amount] | number | 是 | 提前取消扣费:不扣费->不用写,选金额->填写数值金额, 比例->添加百分比 (30% 就填写30),首晚房费和全部房费不用写 | 30 |
响应示例
json
{
"msg": "",
"url": "",
"success": true,
"status": "success",
"data": [
{
"breakfast": "0",
"plan_id": 1295234
}
],
"code": 0
}json
{
"msg": "签名错误",
"url": "",
"success": false,
"status": "error",
"data": [],
"code": 40003
}