版本比较

标识

  • 该行被添加。
  • 该行被删除。
  • 格式已经改变。

...

HTTP Verb

URL

POST

/api/supplier-service/v1/b2b/boxsizeorder/scanWeight


请求头样例


代码块
POST  /services/shipper/labels/api/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

50


O

称重时间

时间格式:yyyy-MM-dd

'T'

HH:mm:

ssZ不传时间,默认当前时间

ss

例如:2023-10-10 13:50:44

weight
10

8,3M箱子重量,限制小数点后三位
length
10

8,2M箱子长度,限制小数点后两位
width
10

8,2M箱子宽度,限制小数点后两位
height
10

8,2M箱子高度,限制小数点后两位


请求样例

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"
	}
	{
		"refNo":"UBI230825001",
		"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":""
	}
]

失败响应:

代码块
[
	{
		"code":"0005",
		"data":"",
		"errors":[
			{
				"code":"603002",
				"message":"refNo Cannot be empty"
			}
		],
		"message":"paramter error",
		"messageId":"",
		"success":false,
		"warnList":""
	}
]

2、批量操作:

成功响应:

代码块
[
	{
		"code":"0",
		"data":{
			"refNo":"ETO2310100111-2",
			"orderNo":"ETO2310100111"
		},
		"errors":"",
		"message":"",
		"messageId":"",
		"success":true,
		"warnList":""
	},
	{
		"code":"0",
		"data":{
			"refNo":"ETO2310100111-1",
			"orderNo":"UBI230825001"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":"refNo not existCannot be empty"
			}
		],
		"message":"paramter error",
		"messageId":"",
		"success":false,
		"warnList":""
	}
]