创建出库单
POST
commonApi/dropshipping/createOutboundOrder
请求参数
Header 参数
token
string
可选
示例值:
150e1b82-0c79-41a7-a1ea-7908e27f9883
Body 参数application/json
param
array [object {34}]
必需
houseId
integer
必需
houseCode
string
必需
channelId
integer
可选
channelCode
string
必需
storeId
integer
店铺id
customerNumber
string
客户单号
waybillNo
string
可选
packageType
string
包裹类型
labelPath
string
可选
labelData
string
可选
reCountry
string
可选
reName
string
可选
reCompany
string
可选
reProvince
string
可选
reCity
string
可选
reHouseNo
string
收件人门牌号
rePhone
string
可选
reTel
string
可选
reMail
string
可选
reAdd1
string
可选
reAdd2
string
收件人地址2
reAdd3
string
收件人地址3
reZipCode
string
可选
skuTotalNum
integer
SKU总数量
skuWeight
number
SKU总重量
totalWeight
number
总实重
totalQty
number
必需
shopType
string
具体来源
omsOrderId
string
电商订单编号
items
array [object {7}]
货物明细
volumeItems
array [object {5}]
材积明细
outboundOrderServices
array [object {1}]
可选服务
logisticType
integer
必需
platLogisticCode
string
平台物流编码
uuid
string
必需
示例
{
"param": [
{
"houseId": 100,
"houseCode": "69",
"channelId": 28,
"channelCode": "18",
"storeId": 50,
"customerNumber": "65",
"waybillNo": "incididunt",
"packageType": "est",
"labelPath": "/etc/defaults",
"labelData": "labore nulla reprehenderit qui",
"reCountry": "aliqua adipisicing sunt",
"reName": "俞英",
"reCompany": "velit sint culpa Duis",
"reProvince": "北京市",
"reCity": "福汉市",
"reHouseNo": "pariatur",
"rePhone": "14820801541",
"reTel": "16462076979",
"reMail": "k8qkfk_oa5@21cn.com",
"reAdd1": "consectetur ut ea",
"reAdd2": "aliquip",
"reAdd3": "nostrud amet voluptate est",
"reZipCode": "636782",
"skuTotalNum": 60,
"skuWeight": 84,
"totalWeight": 6,
"totalQty": 99,
"shopType": "dolor ullamco occaecat",
"omsOrderId": "34",
"items": [
{
"skuId": 4,
"sku": "id sunt in",
"sysSku": "eiusmod ad",
"num": "77",
"remark": "labore nulla laborum",
"omsSku": "dolore minim dolore dolor",
"cnName": "开静怡"
},
{
"skuId": 64,
"sku": "deserunt nisi enim",
"sysSku": "in",
"num": "7",
"remark": "commodo ex",
"omsSku": "quis",
"cnName": "帛超栋"
}
],
"volumeItems": [
{
"length": 39,
"wide": 79,
"high": 100,
"weight": 21,
"qty": 77
}
],
"outboundOrderServices": [
{
"serviceId": "51"
}
],
"logisticType": 37,
"platLogisticCode": "88"
},
{
"houseId": 14,
"houseCode": "39",
"channelId": 66,
"channelCode": "11",
"storeId": 5,
"customerNumber": "20",
"waybillNo": "dolore veniam Excepteur cupidatat laboris",
"packageType": "eu",
"labelPath": "/private/var",
"labelData": "pariatur reprehenderit dolore",
"reCountry": "ullamco dolor",
"reName": "登超栋",
"reCompany": "in culpa esse",
"reProvince": "河北省",
"reCity": "海徽市",
"reHouseNo": "amet nulla",
"rePhone": "13687404079",
"reTel": "17160097362",
"reMail": "mg0iuc.fze@139.com",
"reAdd1": "Ut commodo sit cupidatat nulla",
"reAdd2": "exercitation",
"reAdd3": "ut magna pariatur eu",
"reZipCode": "422263",
"skuTotalNum": 68,
"skuWeight": 56,
"totalWeight": 95,
"totalQty": 56,
"shopType": "ipsum ex sit proident enim",
"omsOrderId": "54",
"items": [
{
"skuId": 97,
"sku": "voluptate in Lorem in",
"sysSku": "reprehenderit aute",
"num": "57",
"remark": "nostrud aliquip consequat id",
"omsSku": "laborum non",
"cnName": "兰茗泽"
}
],
"volumeItems": [
{
"length": 31,
"wide": 8,
"high": 19,
"weight": 40,
"qty": 40
}
],
"outboundOrderServices": [
{
"serviceId": "41"
},
{
"serviceId": "69"
},
{
"serviceId": "17"
}
],
"logisticType": 92,
"platLogisticCode": "24"
},
{
"houseId": 45,
"houseCode": "83",
"channelId": 8,
"channelCode": "76",
"storeId": 13,
"customerNumber": "7",
"waybillNo": "cillum nisi",
"packageType": "do",
"labelPath": "/usr/libdata",
"labelData": "dolore laborum dolore",
"reCountry": "consectetur tempor in",
"reName": "许文韬",
"reCompany": "dolore minim",
"reProvince": "河南省",
"reCity": "太林市",
"reHouseNo": "occaecat fugiat",
"rePhone": "35241451799",
"reTel": "19607341980",
"reMail": "k1zggq.ioj56@qq.com",
"reAdd1": "et deserunt enim ad",
"reAdd2": "culpa ipsum",
"reAdd3": "sint eu",
"reZipCode": "361322",
"skuTotalNum": 57,
"skuWeight": 36,
"totalWeight": 79,
"totalQty": 39,
"shopType": "in officia minim quis veniam",
"omsOrderId": "74",
"items": [
{
"skuId": 7,
"sku": "nostrud",
"sysSku": "nulla reprehenderit mollit ipsum",
"num": "36",
"remark": "est",
"omsSku": "velit laboris deserunt ipsum",
"cnName": "竺艺涵"
},
{
"skuId": 1,
"sku": "sunt nostrud pariatur",
"sysSku": "ut",
"num": "61",
"remark": "id in officia mollit",
"omsSku": "in ullamco",
"cnName": "市哲新"
}
],
"volumeItems": [
{
"length": 79,
"wide": 44,
"high": 31,
"weight": 87,
"qty": 97
},
{
"length": 15,
"wide": 50,
"high": 30,
"weight": 37,
"qty": 41
}
],
"outboundOrderServices": [
{
"serviceId": "66"
}
],
"logisticType": 18,
"platLogisticCode": "7"
}
],
"uuid": "cb3eac75-85b9-4275-ba76-2123c7ea23b9"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'commonApi/dropshipping/createOutboundOrder' \
--header 'token: 150e1b82-0c79-41a7-a1ea-7908e27f9883' \
--header 'Content-Type: application/json' \
--data-raw '{
"param": [
{
"houseId": 100,
"houseCode": "69",
"channelId": 28,
"channelCode": "18",
"storeId": 50,
"customerNumber": "65",
"waybillNo": "incididunt",
"packageType": "est",
"labelPath": "/etc/defaults",
"labelData": "labore nulla reprehenderit qui",
"reCountry": "aliqua adipisicing sunt",
"reName": "俞英",
"reCompany": "velit sint culpa Duis",
"reProvince": "北京市",
"reCity": "福汉市",
"reHouseNo": "pariatur",
"rePhone": "14820801541",
"reTel": "16462076979",
"reMail": "k8qkfk_oa5@21cn.com",
"reAdd1": "consectetur ut ea",
"reAdd2": "aliquip",
"reAdd3": "nostrud amet voluptate est",
"reZipCode": "636782",
"skuTotalNum": 60,
"skuWeight": 84,
"totalWeight": 6,
"totalQty": 99,
"shopType": "dolor ullamco occaecat",
"omsOrderId": "34",
"items": [
{
"skuId": 4,
"sku": "id sunt in",
"sysSku": "eiusmod ad",
"num": "77",
"remark": "labore nulla laborum",
"omsSku": "dolore minim dolore dolor",
"cnName": "开静怡"
},
{
"skuId": 64,
"sku": "deserunt nisi enim",
"sysSku": "in",
"num": "7",
"remark": "commodo ex",
"omsSku": "quis",
"cnName": "帛超栋"
}
],
"volumeItems": [
{
"length": 39,
"wide": 79,
"high": 100,
"weight": 21,
"qty": 77
}
],
"outboundOrderServices": [
{
"serviceId": "51"
}
],
"logisticType": 37,
"platLogisticCode": "88"
},
{
"houseId": 14,
"houseCode": "39",
"channelId": 66,
"channelCode": "11",
"storeId": 5,
"customerNumber": "20",
"waybillNo": "dolore veniam Excepteur cupidatat laboris",
"packageType": "eu",
"labelPath": "/private/var",
"labelData": "pariatur reprehenderit dolore",
"reCountry": "ullamco dolor",
"reName": "登超栋",
"reCompany": "in culpa esse",
"reProvince": "河北省",
"reCity": "海徽市",
"reHouseNo": "amet nulla",
"rePhone": "13687404079",
"reTel": "17160097362",
"reMail": "mg0iuc.fze@139.com",
"reAdd1": "Ut commodo sit cupidatat nulla",
"reAdd2": "exercitation",
"reAdd3": "ut magna pariatur eu",
"reZipCode": "422263",
"skuTotalNum": 68,
"skuWeight": 56,
"totalWeight": 95,
"totalQty": 56,
"shopType": "ipsum ex sit proident enim",
"omsOrderId": "54",
"items": [
{
"skuId": 97,
"sku": "voluptate in Lorem in",
"sysSku": "reprehenderit aute",
"num": "57",
"remark": "nostrud aliquip consequat id",
"omsSku": "laborum non",
"cnName": "兰茗泽"
}
],
"volumeItems": [
{
"length": 31,
"wide": 8,
"high": 19,
"weight": 40,
"qty": 40
}
],
"outboundOrderServices": [
{
"serviceId": "41"
},
{
"serviceId": "69"
},
{
"serviceId": "17"
}
],
"logisticType": 92,
"platLogisticCode": "24"
},
{
"houseId": 45,
"houseCode": "83",
"channelId": 8,
"channelCode": "76",
"storeId": 13,
"customerNumber": "7",
"waybillNo": "cillum nisi",
"packageType": "do",
"labelPath": "/usr/libdata",
"labelData": "dolore laborum dolore",
"reCountry": "consectetur tempor in",
"reName": "许文韬",
"reCompany": "dolore minim",
"reProvince": "河南省",
"reCity": "太林市",
"reHouseNo": "occaecat fugiat",
"rePhone": "35241451799",
"reTel": "19607341980",
"reMail": "k1zggq.ioj56@qq.com",
"reAdd1": "et deserunt enim ad",
"reAdd2": "culpa ipsum",
"reAdd3": "sint eu",
"reZipCode": "361322",
"skuTotalNum": 57,
"skuWeight": 36,
"totalWeight": 79,
"totalQty": 39,
"shopType": "in officia minim quis veniam",
"omsOrderId": "74",
"items": [
{
"skuId": 7,
"sku": "nostrud",
"sysSku": "nulla reprehenderit mollit ipsum",
"num": "36",
"remark": "est",
"omsSku": "velit laboris deserunt ipsum",
"cnName": "竺艺涵"
},
{
"skuId": 1,
"sku": "sunt nostrud pariatur",
"sysSku": "ut",
"num": "61",
"remark": "id in officia mollit",
"omsSku": "in ullamco",
"cnName": "市哲新"
}
],
"volumeItems": [
{
"length": 79,
"wide": 44,
"high": 31,
"weight": 87,
"qty": 97
},
{
"length": 15,
"wide": 50,
"high": 30,
"weight": 37,
"qty": 41
}
],
"outboundOrderServices": [
{
"serviceId": "66"
}
],
"logisticType": 18,
"platLogisticCode": "7"
}
],
"uuid": "cb3eac75-85b9-4275-ba76-2123c7ea23b9"
}'
返回响应
🟢200成功
application/json
Body
code
integer | null
错误码
data
array [object {6}] | null
返回数据
customerNumber
string
客户单号
orderNo
string
系统单号
waybillNo
string
运单号
outboundOrderId
string
订单id
code
integer
0 成 1失败
errorMsg
string
失败原因
errorMsg
string | null
可选
actionMsg
string | null
用于统一行为
solution
string | null
可选
msgCode
string | null
可选
示例
{
"code": 0,
"data": null,
"msg": "",
"errorMsg": "",
"actionMsg": "",
"solution": "",
"msgCode": ""
}
修改于 2025-06-06 00:52:03