| 错误码 | 说明 |
|---|---|
| 21006 | 导入订单失败 |
| 21007 | shop_id非法,不存在对应店铺 |
| 21008 | item_id非法,不存在对应商品 |
| 21009 | unionid非法,找不到对应客户 |
{
"order_list": [
{
"id": "ORDER202605250001",
"shop_id": "10001",
"shop_name": "微伴商城",
"item_list": [
{
"item_id": "SKU001",
"item_name": "商品 A",
"item_price": "99.00",
"amount": 1
},
{
"item_id": "SKU002",
"item_name": "商品 B",
"item_price": "199.00",
"amount": 2
}
],
"payment_amount": 497,
"discount_amount": 0,
"payment_channel": "微信支付",
"order_status": "已支付",
"create_time": 1716600000,
"paid_time": 1716600300,
"unionid": "oUnionidExample",
"openid": "oOpenidExample",
"phone_num": "13800138000",
"external_user_id": "wm_external_user_id",
"order_fields": [
{
"field_name": "导购",
"value": "张三"
}
]
}
]
}curl --location --globoff 'https://open.weibanzhushou.com/open-api/order/import_order_v2?access_token=' \
--header 'Content-Type: application/json' \
--data '{
"order_list": [
{
"id": "ORDER202605250001",
"shop_id": "10001",
"shop_name": "微伴商城",
"item_list": [
{
"item_id": "SKU001",
"item_name": "商品 A",
"item_price": "99.00",
"amount": 1
},
{
"item_id": "SKU002",
"item_name": "商品 B",
"item_price": "199.00",
"amount": 2
}
],
"payment_amount": 497,
"discount_amount": 0,
"payment_channel": "微信支付",
"order_status": "已支付",
"create_time": 1716600000,
"paid_time": 1716600300,
"unionid": "oUnionidExample",
"openid": "oOpenidExample",
"phone_num": "13800138000",
"external_user_id": "wm_external_user_id",
"order_fields": [
{
"field_name": "导购",
"value": "张三"
}
]
}
]
}'{
"errcode": 0,
"errmsg": "ok"
}