- API使用说明
- 物流
- oauth授权
- 订单
- 商品
- 库存
- 仓库
- 入库单
- oms客户
- B2B
- 费用
- webhook
- 直邮订单
创建B2B出库单
POST
/api/b2b/outbound/create
请求参数
Body 参数application/json
订单对象
erpNo
string
erp编号
warehouse
string
仓库编号
destination
integer
可选
dispatchType
integer
可选
logisticType
integer
可选
trackingNo
string
运单号
expectTime
string
可选
referenceNo
string
参考号
fbaShipmentId
string
可选
remark
string
备注
addressVo
object (B2bOutboundAddressVo)
收件信息
buyerName
string
收件人姓名
buyerPhone
string
收件人电话
recipientCountry
string
收件人国家
recipientProvince
string
收件人省份
recipientCity
string
收件人城市
recipientArea
string
收件人区县
recipientAddress
string
收件人详细地址
recipientAddress2
string
收件人地址2
zipCode
string
收件人邮编
boxList
array[object (B2bOutboundBoxVo) {2}]
箱子-商品信息
boxNo
string
箱号
skuInfoList
array[object (B2bOutboundSkuVo) {4}]
sku商品信息
fileInfo
object (B2bOutboundFileVo)
附件信息
labelJson
string
可选
bolJson
string
可选
boxJson
string
可选
otherJson
string
可选
示例
{
"erpNo": "string",
"warehouse": "string",
"destination": 0,
"dispatchType": 0,
"logisticType": 0,
"trackingNo": "string",
"expectTime": "string",
"referenceNo": "string",
"fbaShipmentId": "string",
"remark": "string",
"addressVo": {
"buyerName": "string",
"buyerPhone": "string",
"recipientCountry": "string",
"recipientProvince": "string",
"recipientCity": "string",
"recipientArea": "string",
"recipientAddress": "string",
"recipientAddress2": "string",
"zipCode": "string"
},
"boxList": [
{
"boxNo": "string",
"skuInfoList": [
{
"sku": "string",
"count": 0,
"changeLabel": 0,
"newLabelJson": "string"
}
]
}
],
"fileInfo": {
"labelJson": "string",
"bolJson": "string",
"boxJson": "string",
"otherJson": "string"
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/b2b/outbound/create' \
--header 'Content-Type: application/json' \
--data-raw '{
"erpNo": "string",
"warehouse": "string",
"destination": 0,
"dispatchType": 0,
"logisticType": 0,
"trackingNo": "string",
"expectTime": "string",
"referenceNo": "string",
"fbaShipmentId": "string",
"remark": "string",
"addressVo": {
"buyerName": "string",
"buyerPhone": "string",
"recipientCountry": "string",
"recipientProvince": "string",
"recipientCity": "string",
"recipientArea": "string",
"recipientAddress": "string",
"recipientAddress2": "string",
"zipCode": "string"
},
"boxList": [
{
"boxNo": "string",
"skuInfoList": [
{
"sku": "string",
"count": 0,
"changeLabel": 0,
"newLabelJson": "string"
}
]
}
],
"fileInfo": {
"labelJson": "string",
"bolJson": "string",
"boxJson": "string",
"otherJson": "string"
}
}'
返回响应
🟢200成功
application/json
Body
[API接口响应结果类]
0
1
code
integer
可选
默认值:
0
message
string
错误提示信息
data
object (OutboundVo)
数据
erpNo
string
ERP单号
outboundNo
string
出库单号
requestId
string
请求Id
示例
{
"code": 0,
"message": "",
"data": {
"erpNo": "",
"outboundNo": ""
},
"requestId": ""
}
修改于 2025-05-23 08:23:22