# 获取售后

# 接口调用请求说明

获取这个订单下所有售后单

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

# 请求参数示例

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

# 回包示例

{
    "errcode": 0,
    "errmsg":"ok",
    "aftersale_infos":
    [
        {
            "order_id":32434234,            // 发起售后的订单ID
            "out_order_id": "xxxxx",
            "aftersale_id":12314521321,     // 售后单ID
            "out_aftersale_id": "xxxxxx",   // 商家售后ID
            "openid": "oTVP50O53a7jgmawAmxKukNlq3XI",
            "type": 1,          // 1:退款,2:退款退货,3:换货
            "status": 1,        // 0:未受理,1:用户取消,2:商家受理中,3:商家逾期未处理,4:商家拒绝退款,5:商家拒绝退货退款,6:待买家退货,7:退货退款关闭,8:待商家收货,11:商家退款中,12:商家逾期未退款,13:退款完成,14:退货退款完成
            "product_infos":
            [
                {
                    "product_id": 234245,
                    "sku_id":23424,
                    "product_cnt": 5
                },
                ...
            ]
        }
    ]
}

# 请求参数说明

参数 类型 是否必填 说明
order_id number 订单ID
out_order_id string 商家自定义订单ID,与 order_id 二选一
openid string 用户的openid

# 回包参数说明

参数 类型 说明
errcode number 错误码
errmsg string 错误信息
aftersale_infos[].order_id number
aftersale_infos[].out_order_id string
aftersale_infos[].aftersale_id number 交易组件平台内部售后ID
aftersale_infos[].out_aftersale_id string 商家自定义售后ID
aftersale_infos[].openid string 用户的openid
aftersale_infos[].type number 售后类型,1:退款,2:退款退货,3:换货
aftersale_infos[].status number 0:未受理,1:用户取消,2:商家受理中,3:商家逾期未处理,4:商家拒绝退款,5:商家拒绝退货退款,6:待买aftersale_infos[].家退货,7:退货退款关闭,8:待商家收货,11:商家退款中,12:商家逾期未退款,13:退款完成,14:退货退款完成
aftersale_infos[].product_infos object array 退货相关商品列表
aftersale_infos[].product_infos[].product_id number 交易组件平台内部商品ID
aftersale_infos[].product_infos[].out_product_id string 商家自定义商品ID,与product_id二选一
aftersale_infos[].product_infos[].sku_id number product_infos存在时必填
aftersale_infos[].product_infos[].product_cnt number product_infos存在时必填