简要描述
获取通过云排版排版后的排版用量数据 (手动保存至历史或下载NC文件是自动保存至历史)
请求地址
https://ggtools.thinkerx.com/open-api/layout_count
请求方式
POST
请求参数
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| app_key | 是 | string | 平台签发 key |
| timestamp | 是 | string | 时间戳, 精确到秒 |
| order_id | 是 | int | 柜柜订单 id |
响应示例
{
"status": 1,
"msg": "请求失败",
"data": [
{
"category": "多层实木",
"color": "T01",
"thick": 18.0,
"width": 1000.0,
"height": 1800.0,
"plank_type": "surplus",
"layout_num": 3
},
{
"category": "多层实木",
"color": "T01",
"thick": 18.0,
"width": 1220.0,
"height": 2440.0,
"plank_type": "normal",
"layout_num": 3
},
{
"category": "多层实木",
"color": "T01",
"thick": 18.0,
"width": 1220.0,
"height": 2700.0,
"plank_type": "big_plank",
"layout_num": 3
},
{
"category": "多层实木",
"color": "T01",
"thick": 5.0,
"width": 1220.0,
"height": 2440.0,
"plank_type": "normal",
"layout_num": 3
}
]
}响应参数说名
| 参数名 | 类型 | 说明 |
|---|---|---|
| status | int | 响应状态 |
| msg | string | 响应信息 |
| data | array[paiban_object] | 按板材分类的排版用量数据 |
paiban_object
| 参数名 | 类型 | 说明 |
|---|---|---|
| category | string | 大板材质 |
| color | string | 颜色 |
| thick | float | 大板厚度 |
| width | float | 大板宽度 |
| height | float | 大板高度 |
| plank_type | string | 大板类型, normal: 常规版, surplus: 预料板, big_plank: 超大板 |
| layout_num | int | 当前板材的排版用量 |
失败请求示例
订单未参与排版, 或前一次是和其他订单批量排版
{ "status": 0, "msg": "该订单未参与排版"}查询参数列表未传柜柜订单号 order_id 参数
{ "status": 0, "msg": "order_id"}未传有效的订单号 (0 或空字符串)
{ "status": 0, "msg": "请求传递有效的订单号"}柜柜订单不存在
{ "status": 0, "msg": "该订单不存在"}
