创建出库单
POST
commonApi/dropshipping/createOutboundOrder
请求参数
Header 参数
token
string
可选
示例值:
150e1b82-0c79-41a7-a1ea-7908e27f9883
Body 参数application/json
param
array [object {32}]
必需
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
总件数
items
array [object {7}]
货物明细
volumeItems
array [object {6}]
材积明细
outboundOrderServices
array [object {1}]
可选服务
logisticType
integer
必需
platLogisticCode
string
平台物流编码
uuid
string
必需
示例
{
"houseId": 58,
"channelId": 60,
"storeId": 48,
"customerNumber": "85",
"waybillNo": "dolor amet tempor",
"packageType": "WPX",
"labelPath": "aliquip et",
"labelData": "in non ea",
"reCountry": "nisi in et aute",
"reName": "他速体就战第想",
"reCompany": "qui",
"reProvince": "贵州省",
"reCity": "天津市",
"reHouseNo": null,
"rePhone": "18131075486",
"reTel": "18644831353",
"reMail": "r.sinuqjbn@qq.com",
"reAdd1": "nulla minim in anim do",
"reAdd2": null,
"reAdd3": null,
"reZipCode": "82",
"skuTotalNum": 50,
"skuWeight": 36,
"totalWeight": 73,
"totalQty": 10,
"services": null,
"items": [
{
"skuId": "24",
"sku": "officia ipsum cupidatat",
"sysSku": "irure do",
"num": "38",
"remark": "dolor qui dolore ut quis",
"omsSku": "voluptate",
"cnName": "认工看眼"
}
],
"volumeItems": [
{
"length": 82,
"wide": 60,
"high": 42,
"weight": 67,
"qty": 49,
"calculateUnit": null
},
{
"length": 21,
"wide": 47,
"high": 24,
"weight": 25,
"qty": 49,
"calculateUnit": "Ut occaecat"
}
],
"outboundOrderServices": null,
"logisticType": null,
"platLogisticCode": null
},
示例代码
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 '{
"houseId": 58,
"channelId": 60,
"storeId": 48,
"customerNumber": "85",
"waybillNo": "dolor amet tempor",
"packageType": "WPX",
"labelPath": "aliquip et",
"labelData": "in non ea",
"reCountry": "nisi in et aute",
"reName": "他速体就战第想",
"reCompany": "qui",
"reProvince": "贵州省",
"reCity": "天津市",
"reHouseNo": null,
"rePhone": "18131075486",
"reTel": "18644831353",
"reMail": "r.sinuqjbn@qq.com",
"reAdd1": "nulla minim in anim do",
"reAdd2": null,
"reAdd3": null,
"reZipCode": "82",
"skuTotalNum": 50,
"skuWeight": 36,
"totalWeight": 73,
"totalQty": 10,
"services": null,
"items": [
{
"skuId": "24",
"sku": "officia ipsum cupidatat",
"sysSku": "irure do",
"num": "38",
"remark": "dolor qui dolore ut quis",
"omsSku": "voluptate",
"cnName": "认工看眼"
}
],
"volumeItems": [
{
"length": 82,
"wide": 60,
"high": 42,
"weight": 67,
"qty": 49,
"calculateUnit": null
},
{
"length": 21,
"wide": 47,
"high": 24,
"weight": 25,
"qty": 49,
"calculateUnit": "Ut occaecat"
}
],
"outboundOrderServices": null,
"logisticType": null,
"platLogisticCode": null
},'
返回响应
🟢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": ""
}
修改于 2024-11-22 08:04:30