# Create after-sales
# Interface call request specification
The original status of the order is 10, 200, Error code 100000 will be returned at 250.
finish_all_aftersale = Order status will flow to 200 at 1 (all after sales end, can not continue after sales)
This interface supports reentry by after-sale order number
Http request method: POST
https://api.weixin.qq.com/shop/aftersale/add?access_token=xxxxxxxxx
# Request Parameter Sample
{
"out_order_id": 'xxxxx';
"out_aftersale_id": ♪ Hey, hey, hey ♪ // Merchant Customer ID
"openid": "oTVP50O53a7jgmawAmxKukNlq3XI",
"type": 1, // 1: refund, 2: refund returns, 3: exchange
"create_time": "2020-12-01 00:00:00",
"status": 1,
"finish_all_aftersale": 0,
"path": "/pages/aftersale.html?out_aftersale_id=xxxxx",
"refund": 100,
"product_Infos ":
[
{
"out_product_id": "234245",
"out_sku_id": "23424",
"product_cnt": 5
},
...
]
}
# Return Package Example
{
"errcode": 0,
"errmsg":"ok"
}
# Request Parameter Dxplaination
parameter | type | Is it necessary to fill out | Introductions |
---|---|---|---|
out_order_id | string | yes | Merchant Custom Order ID |
out_aftersale_id | string | yes | Custom after-sales ID |
path | string | yes | Business Mini Program the single page path, do not exist to use the order path |
refund | number | yes | Refund amount, in points |
openid | string | yes | User's openid |
type | number | yes | After sale type, 1: refund, 2: refund return, 3: exchange |
create_time | string | yes | Time of filing, yyyy-MM-dd HH: mm: SS |
status | number | yes | 0: not accepted, 1: user cancellation, 2: merchant acceptance, 3: merchant overdue processing, 4: merchant refused to refund, 5: businesses refused to return refund, 6: to be returned by buyers, 7: refund closed, 8: to receive business, 11: business refund 12: business overdue refund, 13: refund completed, 14: return refund complete, 15: replacement completed, 16: to be shipped to businesses, 17: to confirm receipt, 18: businesses refused to exchange, 19: businesses have received goods |
finish_all_aftersale | number | yes | 0: orders can continue to after-sales, 1: Order without continuing after-sales |
product_infos | object array | yes | List of Return Related Items |
product_infos[].out_product_id | string | yes | Custom Product ID |
product_infos[].out_sku_id | string | yes | Business custom sku ID, If not, do not fill in |
product_infos[].product_cnt | number | product_Required when infos exists | Number of Products Involved in Aftersales |
refund_reason | string | no | Refund reason |
refund_address | string | no | Buyer receiving address |
Orderamt | number | no | Refund amount |
# Return parameter specification
parameter | type | Introductions |
---|---|---|
Errcode | number | Error code |
errmsg | string | Error message |