# Update after sales

You can only update the after-sales status

# Dxplaination of Interface Call Request

http请求方式:POST
https://api.weixin.qq.com/shop/aftersale/update?access_token=xxxxxxxxx

# Example of request parameters

{
    "out_order_id": "xxxxx",
    "openid": "oTVP50O53a7jgmawAmxKukNlq3XI",
    "out_aftersale_id": "xxxxxx",   // 商家售后Id
    "status": 1,       // 0:未受理,1:用户取消,2:商家受理中,3:商家逾期未处理,4:商家拒绝退款,5:商家拒绝退货退款,6:待买家退货,7:退货退款关闭,8:待商家收货,11:商家退款中,12:商家逾期未退款,13:退款完成,14:退货退款完成,15:换货完成,16:待商家发货,17:待用户确认收货,18:商家拒绝换货,19:商家已收到货
    "finish_all_aftersale": 0, // 0:售后未结束, 1:售后结束且订单状态流转
}

# Examples of back-up

{
    "errcode": 0,
    "errmsg":"ok"
}

# Dxplaination of request parameters

参数 type Is it compulsory? Introductions
out_order_id string yes Custom order ID, and order_id two options
out_aftersale_id string yes Merchant custom after-sales ID
openid string yes User's openid
status number yes 0: Not accepted, 1: User cancelled, 2: Merchant accepted, 3: Merchant overdue not processed, 4: Merchant refuses to refund, 5: Merchant declines to refund the item, 6: Purchase returned, 7: Return refund closed, 8: Merchant receiving, 11: Merchant refunded, 12: Merchant past due No refund, 13: Refund completed, 14: Return completed Refund finished, 15: Exchange completed, 16: Shipment pending delivery by merchant, 17: Customer confirmed receipt, 18: Merchant refused to exchange, 19: Merchant received
finish_all_aftersale number yes 0: There are items available for sale on the order, 1: All items on the order are completed after sale (order dimension)

# Dxplaination of callback parameters

参数 type Introductions
errcode number Error code
errmsg string Error message