订单新增
POST
/api/openPlatform/order/add状态码
状态码 | 描述 |
---|---|
000001 | 成功 |
000400 | 请求失败,详细见描述(msg) |
000401 | 鉴权失败 (token已过期或者token无效) |
000403 | 无权限访问 |
000405 | 请求方法不允许 |
000422 | 请求数据异常 |
000429 | 请求太频繁 |
000500 | 程序内部错误 |
011001 | sku库存不足 |
011002 | 存在已锁定库存的sku |
011003 | 订单已存在 |
请求参数
outboundType="2-10" 必填 更多平台code见
outboundType="2-10" 必填
outboundType="2-10" 必填
最大支持50个字符
tiktok平台订单必填
默认CNY,更多币种见
两位小数
1是0否,默认0
可用值:
2-10销售订单出库 (默认)
2-170赠送出库
2-200报销出库
2-210样品出库
2-220发货出库
2-140其他出库
tiktok平台订单必填
tiktok平台订单必填
tiktok平台订单必填
logistics.channelType=2是必须按照元仓给的地址库准确填写,否则无法正常获取到物流单号
logistics.channelType=2 必填
logistics.channelType=2 必填
logistics.channelType=2 必填
logistics.channelType=2 必填
logistics.channelType=2 必填
logistics.channelType=2 必填
完整的收货地址(包括国家、州/省、城市),logistics.channelType=2 必填
outboundType="2-10" 必填
1.如果是线下渠道发货,请准确填写元仓的渠道编码
2.如果是平台线上渠道发货,可以填写匹配的元仓编码,可以填写平台的买家自选物流。买家自选物流请确填写准确,以免影响仓库分拣揽收
可用值:1:线上,2:线下 默认1
channelType=1 必填
channelType=1 必填
可用值:pdf ,channelType=1 必填
可用值:1:100150,2:100100,3:A4,4:A5 channelType=1 必填
可用值:1竖向,2横向 channelType=1 必填
两位小数
北京时间
tiktok平台订单必填
{
"platformCode": "SE",
"shopName": "kokoye",
"siteCode": "MY",
"customerOrderSn": "SE2208222012110004113",
"warehouseCode": "001",
"address": {
"name": "才体将及调济",
"phone": "18191082024",
"state": "voluptate dolore",
"city": "连江县",
"district": "XX区",
"zipcode": "2",
"fullAddress": "宁夏回族自治区海口市利津县",
"email": "y.xluzw@qq.com"
},
"logistics": {
"channelCode": "Y7002S",
"trackingNumber1": "74",
"labelUrl1": "http://www.baidu.com",
"labelType": "pdf",
"labelSize": 1,
"labelDirection": 1,
"shipByDate": "2022-08-22 17:45:00",
"freight": 3.45,
"labelUrl2": "",
"trackingNumber2": "62"
},
"skuList": [
{
"customerSku": "JAY1350",
"quantity": 1,
"sellerPrice": 12.5
},
{
"customerSku": "JAY1349",
"quantity": 1,
"sellerPrice": 12.5
}
],
"currency": "CNY",
"platformOrderId": "220822S7H3098H3",
"buyerId": "7494018952640169163",
"payTime": "2022-08-22 17:45:00",
"totalAmount": 34.52
}
返回响应
{
"state": "string",
"msg": "string",
"data": [
"string"
]
}