错误码 | 说明 |
---|---|
21006 | 导入订单失败 |
21007 | shop_id非法,不存在对应店铺 |
21008 | item_id非法,不存在对应商品 |
21009 | unionid非法,找不到对应客户 |
{
"order_list": [
{
"shop_id": "xj184389276493",
"item_id": "11111",
"item_name": "商品名称",
"item_price": "100",
"amount": 2,
"payment_amount": "40",
"discount_amount": 4.04,
"payment_channel": "支付宝",
"id": "100000004",
"order_status": "已付款,待发货",
"create_time": 1593565941,
"paid_time": 1593565949,
"unionid": "omefmtxc4m4_-bCvMvsbQOsTxFP0",
"openid": "orxxxxxxxxxxxxxxxxx-xxxxxxxx",
"order_type": "夜莺商店",
"order_fields": [
{
"field_name": "订单备注",
"value": "发邮箱123@qq.com"
},
{
"field_name": "买家手机号",
"value": "173****9527"
}
]
},{
"shop_id": "1111222223333444",
"item_id": "22222",
"item_name": "商品名称2",
"item_price": "100",
"amount": 2,
"payment_amount": "40",
"discount_amount": 4.04,
"payment_channel": "支付宝",
"id": "100000005",
"order_status": "已付款,待发货",
"create_time": 1593565941,
"paid_time": 1593565949,
"unionid": "omefmtxc4m4_-bCvMvsbQOsTxFP0",
"order_type": "夜莺",
"order_fields": [
{
"field_name": "订单备注",
"value": "发邮箱123@qq.com"
},
{
"field_name": "买家手机号",
"value": "173****9527"
}
]
}
]
}
curl --location --request POST 'https://open.weibanzhushou.com/open-api/order/import_order_v2?access_token=' \
--header 'Content-Type: application/json' \
--data-raw '{
"order_list": [
{
"shop_id": "xj184389276493",
"item_id": "11111",
"item_name": "商品名称",
"item_price": "100",
"amount": 2,
"payment_amount": "40",
"discount_amount": 4.04,
"payment_channel": "支付宝",
"id": "100000004",
"order_status": "已付款,待发货",
"create_time": 1593565941,
"paid_time": 1593565949,
"unionid": "omefmtxc4m4_-bCvMvsbQOsTxFP0",
"openid": "orxxxxxxxxxxxxxxxxx-xxxxxxxx",
"order_type": "夜莺商店",
"order_fields": [
{
"field_name": "订单备注",
"value": "发邮箱123@qq.com"
},
{
"field_name": "买家手机号",
"value": "173****9527"
}
]
},{
"shop_id": "1111222223333444",
"item_id": "22222",
"item_name": "商品名称2",
"item_price": "100",
"amount": 2,
"payment_amount": "40",
"discount_amount": 4.04,
"payment_channel": "支付宝",
"id": "100000005",
"order_status": "已付款,待发货",
"create_time": 1593565941,
"paid_time": 1593565949,
"unionid": "omefmtxc4m4_-bCvMvsbQOsTxFP0",
"order_type": "夜莺",
"order_fields": [
{
"field_name": "订单备注",
"value": "发邮箱123@qq.com"
},
{
"field_name": "买家手机号",
"value": "173****9527"
}
]
}
]
}'
{
"errcode": 0,
"errmsg": "ok"
}