W8海外仓系统|API文档
  1. 02 一件代发
W8海外仓系统|API文档
  • W8WMS API 简介
  • 01 公共接口
    • 获取机场
      POST
    • 获取自提类型
      POST
    • 获取仓库
      POST
    • 获取渠道
      POST
    • 获取可选服务
      POST
  • 02 一件代发
    • 创建产品
      POST
    • 查询产品
      POST
    • 创建入库单
      POST
    • 查询入库单
      POST
    • 创建出库单
      POST
    • 查询出库单
      POST
    • 查询库存
      POST
    • 打印箱唛
      POST
    • 退回出库单
      POST
    • 退回入库单
      POST
  • 03 中转
    • 下单
      POST
    • 删除中转订单
      POST
    • 删除出库单
      POST
    • 查询中转订单
      POST
    • 查询出库单
      POST
    • 创建出库预约单
      POST
  1. 02 一件代发

创建出库单

POST
commonApi/dropshipping/createOutboundOrder

请求参数

Header 参数
token
string 
可选
示例值:
150e1b82-0c79-41a7-a1ea-7908e27f9883
Body 参数application/json
param
array [object {34}] 
必需
houseId
integer 
必需
仓库id和仓库编码 必填一个
houseCode
string 
必需
仓库编码 和仓库id必填一个
channelId
integer 
可选
下单渠道id 和下单渠道编码必填一个
channelCode
string 
必需
下单渠道编码 和下单id必填一个
storeId
integer 
店铺id
可选
customerNumber
string 
客户单号
必需
waybillNo
string 
可选
运单号 平台物流必填
packageType
string 
包裹类型
可选
labelPath
string 
可选
标签路径 平台物流标签路径或者 标签base64二者填一个
labelData
string 
可选
标签base64内容
reCountry
string 
可选
收件人国家 仓库渠道必填
reName
string 
可选
收件人 仓库渠道必填
reCompany
string 
可选
收件人公司 仓库渠道必填
reProvince
string 
可选
收件人省/州 仓库渠道必填
reCity
string 
可选
收件人城市 仓库渠道必填
reHouseNo
string 
收件人门牌号
可选
rePhone
string 
可选
收件人手机 仓库渠道必填
reTel
string 
可选
收件人电话 仓库渠道必填
reMail
string 
可选
收件人邮箱 仓库渠道必填
reAdd1
string 
可选
收件人地址1 仓库渠道必填
reAdd2
string 
收件人地址2
可选
reAdd3
string 
收件人地址3
可选
reZipCode
string 
可选
收件人邮编 仓库渠道必填
skuTotalNum
integer 
SKU总数量
可选
skuWeight
number 
SKU总重量
可选
totalWeight
number 
总实重
可选
totalQty
number 
必需
总件数 默认1 材积明细有几条,总件数为几
shopType
string 
具体来源
必需
例 如是店小秘 可直接传'店小秘'
omsOrderId
string 
电商订单编号
可选
items
array [object {7}] 
货物明细
必需
volumeItems
array [object {5}] 
材积明细
可选
outboundOrderServices
array [object {1}] 
可选服务
可选
logisticType
integer 
必需
物流方式 1 平台物流 2 仓库渠道
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 
可选
解决方案 可以是文本也可以是html前端会渲染出来
msgCode
string  | null 
可选
示例
{
  "code": 0,
  "data": null,
  "msg": "",
  "errorMsg": "",
  "actionMsg": "",
  "solution": "",
  "msgCode": ""
}
上一页
查询入库单
下一页
查询出库单
Built with