# Get details of the sales order

# Dxplaination of Interface Call Request

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

# Example of request parameters

{
    "order_id":32434234,            // 发起售后的订单ID
    "out_order_id": "xxxxx",
    "openid": "oTVP50O53a7jgmawAmxKukNlq3XI"
}

# Examples of back-up

{
    "errcode": 0,
    "errmsg":"ok",
    "aftersale_infos": [
        {
            "out_order_id": "xxxxx",
            "out_aftersale_id": "xxxxxx",   
            "openid": "oTVP50O53a7jgmawAmxKukNlq3XI",
            "type": 1,         
            "create_time": "2020-12-01 00:00:00",
            "path": "/pages/order.html?out_order_id=xxxxx",
            "status": 1,        
            "refund": 100,
            "product_infos": [
                {
                    "out_product_id": "234245",
                    "out_sku_id": "23424",
                    "product_cnt": 5
                },
                ...
            ]
        }
    ]
}

# Dxplaination of request parameters

参数 type Is it compulsory? Introductions
out_order_id string no Custom order ID, and order_id two options
openid string yes User's openid

# Dxplaination of callback parameters

参数 type Introductions
errcode number Error code
errmsg string Error message
aftersale_infos[].out_aftersale_id string Choose between aftersale_id and aftersale_id
aftersale_infos[].path string Merchant Weixin Mini Program The page path for the order, if it does not exist, use the order path
aftersale_infos[].openid string User's openid
aftersale_infos[].type number Aftersales Type, 1: Refund, 2: Refund Return, 3: Exchange
aftersale_infos[].status number 0: Not accepted, 1: User cancelled, 2: Merchant accepted, 3: Merchant overdue, 4: Merchant refusing to refund, 5: Merchant refused to refund, 6: Returned aftersale_infos[]. home, 7: Returned refund closed, 8: Returned after Merchant received, 11: Merchant refunded,12: Merchant overdue for no refund, 13: refund completed, 14: return completed
aftersale_infos[].product_infos object array List of return related items
aftersale_infos[].product_infos[].out_product_id string Merchant Custom Item ID
aftersale_infos[].product_infos[].out_sku_id string Merchant custom sku ID
aftersale_infos[].product_infos[].product_cnt number Required when product_infos exists
aftersale_infos[].refund number Amount of refund, in units: units
aftersale_infos[].refund_reason string Reasons for refund

# Explanatory value explaination

AfterSalesState

The enumeration value describe
1 Shoot the wrong / shoot more
2 I don't want one anymore.
3 No courier information
4 The package is empty
5 Packages have been refused visa
6 The delivery has not been delivered for a long time
7 Not consistent with the description of the product
8 Quality issues
9 The seller shipped the wrong product
10 There are no products
11 Counterfeit products
12 Other