简要描述
获取订单采购单数据
请求URL
https://ggtools.thinkerx.com/open-api/orders/panel_purchase
请求方式
POST
参数
content_type: application/json
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| app_key | 是 | string | 平台签发key |
| timestamp | 是 | string | 时间戳,精确到秒 |
| order_id | 是 | int | 订单ID |
cURL
curl --location 'https://ggtools.thinkerx.com/open-api/orders/panel_purchase' \--header 'token: TDJ5bGtreGY1VENzK1pUWGNLaHd...' \
--header 'sign: 62c91867976b...' \
--header 'Content-Type: application/json' \
--data '{ "order_id": "12345", "app_key": "b0d566b0fac064a230ec", "timestamp": 1753091011}'返回示例
{
"status": 1,
"msg": "请求成功",
"data": {
"plank": [
{
"branch_name": "",
"brand_name": "",
"brand_type": "",
"color_name": "T01",
"count": 3,
"detail_value": {
"color": "",
"content": "",
"material": "",
"spec": "1260*2480",
"substrate": "多层实木",
"thick": "18",
"width": ""
},
"name": "T01_18_多层实木",
"picture": [],
"plankNum": "",
"plankOrderNumber": "",
"plankType": "special",
"price": 0,
"steel_plate": ""
},
{
"branch_name": "",
"brand_name": "",
"brand_type": "",
"color_name": "T01",
"count": 1,
"detail_value": {
"color": "",
"content": "",
"material": "",
"spec": "1220*2440",
"substrate": "装饰板",
"thick": "5",
"width": ""
},
"name": "T01_5_装饰板",
"picture": [],
"plankNum": "",
"plankOrderNumber": "",
"plankType": "normal",
"price": 0,
"steel_plate": ""
}
],
"order_info": [
{
"order_id": 1185680,
"order_code": "2507172507-091",
"room_id": [
"100037315",
"100038048"
],
"buyer_address": "测试订单"
}
],
"door": [],
"hardware": [],
"edge": [
{
"color": "T01",
"thick": 18,
"width": 1.5,
"length": 10028.782226562502,
"waste": 1002.9
},
{
"color": "T01",
"thick": 18,
"width": 0.5,
"length": 31630.483398437504,
"waste": 3163
},
{
"color": "T01",
"thick": 18,
"width": 1,
"length": 2202.9468242187504,
"waste": 220.3
}
],
"all_edge": [],
"addon": [
{
"name": "连接件",
"spec": "三合一",
"unit": "个",
"count": 43
},
{
"name": "普通拉手",
"spec": "短拉手",
"unit": "个",
"count": 3
},
{
"name": "抽屉滑轨",
"spec": "默认滑轨_450mm",
"unit": "副",
"count": 2
}
],
"all_addon": []
}
}返回参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| status | int | 请求状态,1:成功,0:失败 |
| msg | string | 状态说明 |
| data | object | 数据 |
| plank | array | 板材信息 |
| order_info | array | 订单信息 |
| door | array | 门信息 |
| hardware | array | 五金信息 |
| edge | array | 边材信息 |
| addon | array | 附加五金 |
