# 创建换标订单

接口地址 /api/order/outbound/change-label/create

请求方式 POST

consumes ["application/json"]

produces ["*/*"]

接口描述 ``

请求示例

{
	"warehouseId": 0,
	"details": [
		{
			"sku": "",
			"newSku": "",
			"qty": 0,
			"skuUnit": "CARTON",
			"label": {
				"content": "",
				"fileName": ""
			}
		}
	],
	"skuUnit": "CARTON",
	"customerRef": "",
	"additionalServiceIds": [],
    "changeLabel": true
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

请求参数

参数名称 参数说明 请求类型 是否必须 数据类型 schema
form form body true API创建换标订单请求对象 API创建换标订单请求对象
token token header true string

schema属性说明

API创建换标订单请求对象

参数名称 参数说明 请求类型 是否必须 数据类型 schema
warehouseId 仓库ID body true integer(int64)
details 出库sku明细 body true array 出库订单明细
skuUnit 库存单位,可用值:PCS,CARTON body true string
customerRef 客户订单号 body true string
additionalServiceIds 增值服务 body false array
changeLabel 是否换标,不换标新sku和产品标文件不用传 body true boolean

出库订单明细

参数名称 参数说明 请求类型 是否必须 数据类型 schema
sku sku body false string
newSku 新sku,换标出库需要传 body false string
qty 数量 body false integer(int32)
skuUnit 库存单位,可用值:PCS,CARTON body false string
label 产品标PDF文件 body false 文件对象 文件对象

文件对象

参数名称 参数说明 请求类型 是否必须 数据类型 schema
content 文件内容,UTF-8编码字节数组 body false string(byte)
fileName 文件名 body false string

响应状态

状态码 说明 schema
200 OK API创建订单返回对象
201 Created
401 Unauthorized
403 Forbidden
404 Not Found

响应参数

参数名称 参数说明 类型 schema
data CreateOrderResultItem CreateOrderResultItem
message string
success boolean

schema属性说明

CreateOrderResultItem

参数名称 参数说明 类型 schema
masterOrderId 主订单号 integer(int64)
subOrderIds 子订单号 array

响应示例

{
	"data": {
		"masterOrderId": 0,
		"subOrderIds": []
	},
	"message": "",
	"success": true
}
1
2
3
4
5
6
7
8
Last Updated: 9/20/2022, 5:59:44 PM