...
HTTP Verb | URL |
|---|---|
| POST | /api/supplier-service/v1/b2b/order/scanWeight |
请求头样例
| 代码块 |
|---|
POST /services/shipper/labelsapi/supplier-service/v1/b2b/order/scanWeight HTTP/1.1 Host: httphttps://cfs-qa.etowertech.com/ Content-Type: application/json Accept: application/json Authorization:WallTech etotest8xkIIphLnbkjRACNj4P:pc9H97D-_b2_TSCVvNj81A X-WallTech-Date:Tue, 02 Aug 2022 06:43:37 GMT |
字段
字段名 | 数据类型 | 最大长度 | 必填性 | 描述 |
|---|---|---|---|---|
refNo | 255 | M | 箱唛条码中可得出的数据 分为三种 1. 订单号,该种方式仅能判断箱所属 2. 订单号+后缀,可判断箱顺序与原始箱号,如果出现测量错误可以相同条码进行扫描重新传输 3. 箱号,可对应原始箱号,出现测量错误可以相同条码进行扫描重新传输 | |
weightTime |
| O | 称重时间 时间格式:yyyy-MM-dd |
HH:mm: |
ss 例如:2023-10-10 13:50:44 | ||||
| weight | 8,3 | M | 箱子重量,限制小数点后三位 | |
| length | 8,2 | M | 箱子长度,限制小数点后两位 | |
| width | 8,2 | M | 箱子宽度,限制小数点后两位 | |
| height | 8,2 | M | 箱子高度,限制小数点后两位 |
请求样例
1、单个操作:
| 代码块 |
|---|
[
{
"refNo": "ETO2310100111",
"weightTime": "",
"weight": "50",
"Length": "50",
"width": "40",
"height": "30"
}
] |
2、批量操作:
| 代码块 |
|---|
[ { { "refNo": "UBI230825001-1", "weightTime":"2023-01-01 00:00:00", "weight":"10.000", "Length":"100.00", "width":"100.00", "height":"100.00" }ETO2310100111-1", "weightTime": "", "weight": "50", "Length": "50", "width": "40", "height": "30" }, { "refNo": "ETO2310100111-2", "weightTime": "", "weight": "60", "Length": "60", "width": "40", "height": "30" }, { "refNo": "ETO2310100111-3", "weightTime": "", "weight": "70", "Length": "70", "width": "40", "height": "30" }, { "refNo": "ETO2310100111-4", "weightTime": "", "weight": "80", "Length": "80", "width": "40", "height": "30" }, { "refNo": "ETO2310100111-5", "weightTime": "", "weight": "90", "Length": "90", "width": "40", "height": "30" } ] |
返回样例
1、单个操作
成功响应:
| 代码块 |
|---|
[
{
"code":"0",
"data":{
"refNo":"ETO2310100111",
"orderNo":"ETO2310100111"
},
"errors":"",
"message":"",
"messageId":"",
"success":true,
"warnList":""
}
] |
失败响应:
| 代码块 |
|---|
[ { "refNocode":"UBI2308250010005", "weightTimedata":"2023-01-01 00:00:00", "weight":"10.000"", "errors":[ { "code":"603002", "message":"refNo Cannot be empty" } ], "Lengthmessage":"100.00paramter error", "widthmessageId":"100.00"", "success":false, "heightwarnList":"100.00" } ] |
2、批量操作:
...
成功响应:
| 代码块 |
|---|
[ { "code":"0", "data":{ "refNo":"ETO2310100111-2", "orderNo":"ETO2310100111" }, "errors":"", "message":"", "messageId":"", "success":true, "warnList":"" }, { "code":"0", "data":{ OrderNo:"UBI230825001"refNo":"ETO2310100111-1", "orderNo":"ETO2310100111" }, "errors":"", "message":"", "messageId":"", "success":true, "warnList":"" }, { "code":"0", "data":{ "refNo":"ETO2310100111-4", "orderNo":"ETO2310100111" }, "errors":"", "message":"", "messageId":"", "success":true, "warnList":"" }, { "code":"0", "data":{ "refNo":"ETO2310100111-3", "orderNo":"ETO2310100111" }, "errors":"", "message":"", "messageId":"", "success":true, "warnList":"" }, { "code":"0", "data":{ "refNo":"ETO2310100111-5", "orderNo":"ETO2310100111" }, "errors":"", "message":"", "messageId":"", "success":true, "warnList":"" } ] |
失败响应:
| 代码块 |
|---|
[ { "code":"6002240005", "data":"", "errors":[ { "code":"603002", "message":"OrderNo not existrefNo Cannot be empty" } ], "message":"paramter error", "messageId":"", "success":false, "warnList":"" } ] |