Skip to content

订单状态变更推送

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

接口描述

  • 订单状态推送,当订单状态发生改变时会触发此推送

推送参数

参数名必选类型说明
typeString推送类型:order_change
app_idString店铺id
message_idString消息ID
retry_timesint重试次数
xe_dataObject业务数据

xe_data 参数结构

参数名必选类型说明
actionString事件类型:详情见下方action参数说明
action_textString事件类型说明
versionString推送接口版本
app_idstring店铺id
order_idstring订单id
user_idstring用户id
order_stateint订单状态:详情见下方order_state参数说明

推送示例

<doc>
    <type>order_change</type>
    <app_id>appAKLWLitnxxxx</app_id>
    <message_id>20230615_1669013687304xxxxxx</message_id>
    <retry_times>0</retry_times>
    <xe_data>
        <action>create</action>
        <action_text>订单创建</action_text>
        <app_id>appxxxx</app_id>
        <channel_id>0</channel_id>
        <channel_name>未知渠道来源</channel_name>
        <order_id>o_xxxx</order_id>
        <order_state>0</order_state>
        <user_id>u_qq_xxxx</user_id>
        <version>v1.1.0</version>
    </xe_data>
</doc>

action参数说明

参数名说明
create订单创建
create_zero_order0元订单创建
set_pay订单支付
cancel订单取消
confirm_ship订单发货
confirm_receipt确认收货
refund_callback订单退款
settle订单结算
gift_code_receive邀请码兑换单
redeem兑换码兑换单
friend_receive好友助力领取
create_offline_order面授课线下订单创建
team_buy_success拼团成功
user_receive_gift_class用户领取赠送课程

order_state参数说明

参数名说明
0未支付
1支付成功
2支付失败
3已退款(如拼团未成功等情况)
6订单超时未支付,自动取消
7用户取消订单
10订单已全额退款
11订单部分退款