/erp/sc/statistic/removalOrder/createAndCommit{
"operation": {
"method": "POST",
"path": "/erp/sc/statistic/removalOrder/createAndCommit"
},
"protocol": "HTTPS",
"host": "https://openapi.lingxing.com",
"rateLimit": {
"tokenBucketCapacity": 1,
"text": ""
},
"requestExample": {
"lists": [
{
"sid": 5,
"order_type": 2,
"country_code": "US",
"state_or_region": "MI",
"sys_wid": 1,
"removal_no": "141hg16",
"city": "Michigan",
"address_line1": "address_line1-test",
"address_line2": "address_line1-test",
"address_line3": "address_line1-test",
"postal_code": "49444",
"phone": "132xxxxxxxx",
"name": "Michael Morton",
"remark": "remark demo",
"items": [
{
"msku": "Black_xxx",
"sellable_quantity": 1,
"unsellable_quantity": 1
}
]
}
]
}
}| 序号 | 字段 | 名称 | 类型 | 默认值 | 必填 | 描述 |
|---|---|---|---|---|---|---|
| 1 | lists | 提交数据 | array<object> | — | 必填 | 提交数据,支持批量,上限100个 |
| 1.1 | sid | 店铺id | integer | — | 必填 | 店铺id ,对应查询亚马逊店铺列表接口对应字段【sid】 |
| 1.2 | order_type | 移除类型 | integer | — | 必填 | 移除类型:2 Return,3 Disposal |
| 1.3 | country_code | 国家code | string | — | 可选 | 国家code,查询亚马逊市场列表接口对应【code】字段 |
| 1.4 | state_or_region | 省州code | string | — | 可选 | 省州code,查询亚马逊国家下地区列表接口对应【code】字段 |
| 1.5 | sys_wid | 系统仓库id | integer | — | 可选 | 系统仓库id,查询仓库列表接口对应【wid】字段 |
| 1.6 | removal_no | 移除订单号 | string | — | 可选 | 移除订单号,最长10位,为空则自动创建订单号 |
| 1.7 | city | 城市 | string | — | 必填 | 城市 |
| 1.8 | address_line1 | 地址1 | string | — | 必填 | 地址1 |
| 1.9 | address_line2 | 地址2 | string | — | 可选 | 地址2 |
| 1.10 | address_line3 | 地址3 | string | — | 可选 | 地址3 |
| 1.11 | postal_code | 邮编 | string | — | 必填 | 邮编 |
| 1.12 | phone | 联系电话 | string | — | 必填 | 联系电话 |
| 1.13 | name | 地址名称 | string | — | 必填 | 地址名称 |
| 1.14 | remark | 备注 | string | — | 可选 | 备注 |
| 1.15 | items | items列表 | array<object> | — | 必填 | items列表 |
| 1.15.1 | msku | msku | string | — | 必填 | msku |
| 1.15.2 | sellable_quantity | 移除可售数量 | integer | — | 必填 | 移除可售数量 |
| 1.15.3 | unsellable_quantity | 移除不可售数量 | integer | — | 必填 | 移除不可售数量 |
| 序号 | 字段 | 名称 | 类型 | 默认值 | 必填 | 描述 |
|---|---|---|---|---|---|---|
| 1 | code | 状态码 | integer | 0 | 必填 | 状态码,0 成功 |
| 2 | message | 提示信息 | string | success | 必填 | 提示信息 |
| 3 | error_details | 错误信息 | array<any> | — | 必填 | 错误信息 |
| 4 | request_id | 请求链路id | string | EF617C27-34B4-3596-BA2A-75F70F0B053C | 必填 | 请求链路id |
| 5 | response_time | 响应时间 | string | 2023-04-13 14:38:53 | 必填 | 响应时间 |
| 6 | data | 响应数据 | array<any> | — | 必填 | 响应数据 |
| 7 | total | 总数 | integer | 0 | 必填 | 总数 |
领星ERP的接口:创建移除订单(/erp/sc/statistic/removalOrder/createAndCommit),由轻易云数据集成平台 API 资产管理模块整理收纳,并随领星ERP版本更新同步更新。