排期查询
报告解读排期查询。
请求URL:
https://m-api.lejian.com/open-api/V2/counter/report/queryOrderableCapacity?accessToken=ACCESS_TOKEN
请求协议:HTTPS
请求方式:POST
需要签名: 否
URL参数:
| 参数名 | 是否必须 | 类型 | 说明 |
|---|---|---|---|
| accessToken | 是 | string | 当前有效的accessToken |
POST参数示例
{"businessId":1,"startDate":"2023-02-08","endDate":"2023-04-08"}
| 参数名 | 是否必须 | 类型 | 说明 |
|---|---|---|---|
| businessId | 是 | Integer | 业务编号 |
| startDate | 是 | date | 起始日期 |
| endDate | 是 | date | 终止日期 |
返回示例:
正确时返回:
{"success":"T","data":{"dayCapacitys": [{"dateStr": 2023-02-08,"simpleCapacities": [{"periodId": 4384,"periodName": "14:45-15:00","maxNum": 1,"availableNum": 1,"businessId": 1},{"periodId": 4385,"periodName": "15:00-15:15","maxNum": 1,"availableNum": 1,"businessId": 1,"recordId": 97}]},{"dateStr": 2023-02-09,"simpleCapacities": [{"periodId": 4395,"periodName": "14:00-14:15","maxNum": 1,"availableNum": 1,"businessId": 1},{"periodId": 4396,"periodName": "14:15-14:30","maxNum": 1,"availableNum": 1,"businessId": 1}]}]},"msg":"success"}
返回参数说明:
| 参数名 | 类型 | 说明 |
|---|---|---|
| dayCapacitys | Array[] | 天数容量列表,列表类为每天的人数容量 |
| simpleCapacities | Array[] | 时段容量列表,当天时段列表 |
| periodId | Integer | 时间段id,用于下单 |
| dateStr | string | 日期(格式:yyyy-mm-dd) |
| maxNum | Integer | 最大库存人数 |
| periodName | string | 时段 |
| availableNum | Integer | 可约订单数 |
| businessId | integer | 业务id,乐荐提供 |
文档更新时间: 2023-02-08 16:09