Skip to content

订单售后状态推送

拥有此API的权限集并订阅此消息推送
订单管理-查询

接口描述

  • 推送售后单状态变更消息

推送参数

参数名是否必传类型说明
typestring推送类型:after_sale-售后
app_idString店铺id
message_idString消息ID
retry_timesint重试次数
xe_dataObject业务数据

xe_data 参数结构

参数名必选类型说明
actionstring事件类型:详情见下方action参数说明
versionstring版本号
app_idstring店铺id
order_idstring订单id
aftersale_idstring售后id
stateint售后单状态
备注

state参数说明

参数名说明
0未受理申请中
1用户取消申请
2商家受理中
3商家逾期未处理
4商家拒绝退款
5商家拒绝退货退款
6待买家退货
7退货退款关闭
8待商家收货
11商家退款中
12商家逾期未退款
13退款完成
14退货退款完成
15换货完成
16待商家发货
17待用户确认收货
18商家拒绝换货
19商家已收到货
20商家审核同意,待受理
21供应商逾期未处理
22门店审核同意,待受理
23平台介入中
24确认签收
25换货转仅退款
26换货转退货退款
60商家拒绝收货
61待揽收

state表示本次售后状态变更事件代码。部分操作事件处理后的最终售后单状态可能发生转换,例如state=24确认签收成功后,售后单最终状态为state=15换货完成。

action参数说明

参数名说明
create_aftersale推送类型:创建售后单
cancel_aftersale推送类型:取消售后申请
shop_agrees_refund推送类型:商家同意退款
shop_overdue推送类型:商家逾期未处理
shop_refuse_aftersale推送类型:商家拒绝退款
shop_refuse_return_refund推送类型:商家拒绝退货退款
shop_sends_return_address推送类型:商家同意售后并发送退货地址
return_refund_closed推送类型:退货退款关闭
buyer_returns_shipment推送类型:买家寄件退回
refunding推送类型:退款中
refund_over_time推送类型:退款超时
refund_completed推送类型:退款完成
return_refund_completed推送类型:退货退款完成
exchange_completed推送类型:换货完成
wait_shop_send_goods推送类型:待商家发货
exchange_shipped推送类型:商家已发货
reject_goods推送类型:商家拒绝换货
shop_agrees_receive推送类型:商家确认收货
shop_agrees_aftersale推送类型:商家同意售后
supplier_overdue推送类型:供应商逾期未处理
store_examine推送类型:门店审核
xiaoe_intervention推送类型:平台介入中
confirm_receipt推送类型:确认签收
exchange_for_return推送类型:换货转仅退款
exchange_for_return_goods推送类型:换货转退货退款
shop_refuse_receive推送类型:商家拒绝收货
wait_door_pickup推送类型:待揽收

推送解密后示例

创建售后单示例

<doc>
    <type>after_sale</type>
    <app_id>appAKLWLitnxxxx</app_id>
    <message_id>20230615_1669013687304xxxxxx</message_id>
    <retry_times>0</retry_times>
    <xe_data>
        <action>create_aftersale</action>
        <app_id>appAKLWLxxxxxx</app_id>
        <order_id>E2021072914183xxxxxx</order_id>
        <version>v1.0.0</version>
        <aftersale_id>A1624244852_xxxxxxxx</aftersale_id>
        <state>0</state>
    </xe_data>
</doc>

取消售后申请示例

<doc>
    <type>after_sale</type>
    <app_id>appAKLWLitnxxxx</app_id>
    <message_id>20230615_1669013687305xxxxxx</message_id>
    <retry_times>0</retry_times>
    <xe_data>
        <action>cancel_aftersale</action>
        <app_id>appAKLWLxxxxxx</app_id>
        <order_id>E2021072914183xxxxxx</order_id>
        <version>v1.0.0</version>
        <aftersale_id>A1624244852_xxxxxxxx</aftersale_id>
        <state>1</state>
    </xe_data>
</doc>

商家同意退款示例

<doc>
    <type>after_sale</type>
    <app_id>appAKLWLitnxxxx</app_id>
    <message_id>20230615_1669013687306xxxxxx</message_id>
    <retry_times>0</retry_times>
    <xe_data>
        <action>shop_agrees_refund</action>
        <app_id>appAKLWLxxxxxx</app_id>
        <order_id>E2021072914183xxxxxx</order_id>
        <version>v1.0.0</version>
        <aftersale_id>A1624244852_xxxxxxxx</aftersale_id>
        <state>2</state>
    </xe_data>
</doc>

退款完成示例

<doc>
    <type>after_sale</type>
    <app_id>appAKLWLitnxxxx</app_id>
    <message_id>20230615_1669013687307xxxxxx</message_id>
    <retry_times>0</retry_times>
    <xe_data>
        <action>refund_completed</action>
        <app_id>appAKLWLxxxxxx</app_id>
        <order_id>E2021072914183xxxxxx</order_id>
        <version>v1.0.0</version>
        <aftersale_id>A1624244852_xxxxxxxx</aftersale_id>
        <state>13</state>
    </xe_data>
</doc>

确认签收示例

<doc>
    <type>after_sale</type>
    <app_id>appAKLWLitnxxxx</app_id>
    <message_id>20230615_1669013687308xxxxxx</message_id>
    <retry_times>0</retry_times>
    <xe_data>
        <action>confirm_receipt</action>
        <app_id>appAKLWLxxxxxx</app_id>
        <order_id>E2021072914183xxxxxx</order_id>
        <version>v1.0.0</version>
        <aftersale_id>A1624244852_xxxxxxxx</aftersale_id>
        <state>24</state>
    </xe_data>
</doc>