# 新建出库单
接口地址 /api/dxm/outbound
请求方式 POST
consumes ["application/json"]
produces ["*/*"]
接口描述 ``
请求示例
{
"customerRef": "123",
"customerCode": "xxxx",
"warehouseCode": "",
"lmLabelSelf": false,
"lmLabelBase64": "",
"lmChannelCode": "快递渠道代码",
"salesPlatform": "销售平台",
"trackingNumbers": ["tracking001", "tracking002"],
"store": "平台店铺",
"remark": "订单备注",
"details": [
{
"qty": 2,
"sku": "sku001"
},
{
"qty": 1,
"sku": "sku002"
}
],
"consigneeAddress": {
"contacter": "Gabriela Dominguez",
"phone": "13423040008",
"countryCode": "US",
"state": "CA",
"city": "SAN JOSE",
"address": " 2247 Flint Avenue",
"address2": "",
"company": "",
"zipCode": "95148",
"fbaCode": "",
"deliverySignature": false
}
}
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
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
请求参数
| 参数名称 | 参数说明 | 请求类型 | 是否必须 | 数据类型 | schema |
|---|---|---|---|---|---|
| token | token | header | true | string | |
| form | form | body | true | 请求对象 | 请求对象 |
schema属性说明
请求对象
| 参数名称 | 参数说明 | 是否必须 | 数据类型 |
|---|---|---|---|
| customerRef | 客户参考号 | true | string |
| customerCode | 客户代码 | false | string |
| warehouseCode | 仓库代码 | true | string |
| lmLabelSelf | 是否为自定义标签 | true | boolean |
| lmLabelBase64 | 标签的Base64编码(lmLabelSelf为ture必填) | false | string |
| lmChannelCode | 快递渠道代码(lmLabelSelf为false必填) | true | string |
| salesPlatform | 销售平台 | false | string |
| trackingNumbers | 转单号 | false | array |
| store | 平台店铺 | false | string |
| remark | 订单备注 | false | string |
| details | 商品详情列表 | true | array |
| details.qty | 商品数量 | true | int |
| details.sku | SKU编码 | true | string |
| consigneeAddress | 收货人地址信息 | true | object |
| consigneeAddress.contacter | 收货人姓名 | true | string |
| consigneeAddress.phone | 收货人电话 | true | string |
| consigneeAddress.countryCode | 国家代码 | true | string |
| consigneeAddress.state | 州/省 | true | string |
| consigneeAddress.city | 城市 | true | string |
| consigneeAddress.address | 地址1 | true | string |
| consigneeAddress.address2 | 地址2 | false | string |
| consigneeAddress.company | 公司名称 | false | string |
| consigneeAddress.zipCode | 邮政编码 | true | string |
| consigneeAddress.fbaCode | FBA代码 | false | string |
| consigneeAddress.deliverySignature | 是否需要签收 | true | boolean |
响应示例
{
"success": true,
"message": "",
"data": {
"orderId": "123456"
}
}
1
2
3
4
5
6
7
2
3
4
5
6
7
响应参数
| 参数名称 | 参数说明 | 类型 | schema |
|---|---|---|---|
| success | 是否成功 | boolean | |
| message | 错误信息 | string | |
| data | 响应数据 | 返回对象 |
schema属性说明
返回对象
| 参数名称 | 参数说明 | 类型 | schema |
|---|---|---|---|
| orderId | 订单ID | string |