# 创建一件代发订单

接口地址 /api/order/outbound/psc-outbound/create

请求方式 POST

consumes ["application/json"]

produces ["*/*"]

接口描述 ``

请求示例

{
	"warehouseId": 0,
	"deliveryType": "PICK_UP_SELF_TRUCK",
  "channelCode": "xxx",
	"additionalServiceIds": [],
	"orders": [
		{
			"customerRef": "",
			"contacter": "",
			"phone": "",
			"countryCode": "",
			"state": "",
			"city": "",
			"address": "",
			"zipCode": "",
			"deliverySignature": "false",
			"skuLable": {
				"content": "",
				"fileName": ""
			},
			"cartonLable": {
				"content": "",
				"fileName": ""
			},
			"expressLable": {
				"content": "",
				"fileName": ""
			},
			"skus": [
				{
					"sku": "",
					"qty": 0
				}
			]
		}
	]
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37

请求参数

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

schema属性说明

API创建一件代发订单请求对象

参数名称 参数说明 请求类型 是否必须 数据类型 schema
warehouseId 仓库ID body true integer(int64)
deliveryType 运输方式:快递、卡车、快递自提、卡车自提。,可用值:EXPRESS,TRUCK,PICK_UP_SELF,PICK_UP_SELF_TRUCK body true string
channelCode 渠道代码 body false string
additionalServiceIds 增值服务 body false array
orders 订单明细 body true array API创建一件代发明细

API创建一件代发明细

参数名称 参数说明 请求类型 是否必须 数据类型 schema
customerRef 客户订单号 body false string
contacter 联系人 body false string
phone 联系电话 body false string
countryCode 国家简码 body false string
state 州/省 body false string
city 城市 body false string
address 详细地址 body false string
zipCode 邮编 body false string
deliverySignature 是否签名 body false string
skuLable 产品标文件 body false 文件对象 文件对象
cartonLable 箱标文件 body false 文件对象 文件对象
expressLable 快递面单文件 body false 文件对象 文件对象
skus sku明细 body false array sku明细

文件对象

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

sku明细

参数名称 参数说明 请求类型 是否必须 数据类型 schema
sku sku body false string
qty 数量 body false integer(int32)

响应状态

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

响应参数

参数名称 参数说明 类型 schema
data array 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
9
10
Last Updated: 10/16/2025, 3:03:52 PM