Skip to content

权益变更推送

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

推送参数

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

xe_data 参数结构

参数名必选类型说明
change_timeString权益变更时间
end_dateString到期时间
app_idString店铺id
resource_idString课程资源id
subjectString用户id ,virtual_group-此资源为免费课
sourceString权益来源:password(输入正确加密课密码获得的权益),activity-receive(活动领取获得的权益),friends-gift(通过送好友获得的权益),purchase(订购获得的权益),import(B端管理台导入获得的权益)
stateString状态: 1-添加权益 0-删除权益

特殊说明

推送条件:当用户的课程权益变更时,会触发权益变更消息推送。

推送解密后示

<type>role_change</type>
<app_id>appAKLWLitnxxxx</app_id>
<message_id>20230615_1669013687304xxxxxx</message_id>
<retry_times>0</retry_times>
<xe_data>
    <app_id>appAKLWLitnxxxx</app_id>
    <change_time>2023-01-10 17:37:54</change_time>
    <end_date/>
    <resource_id>p_622ea319e4b04d7e2xxxxxx</resource_id>
    <source>purchase</source>
    <state>1</state>
    <subject>u_618dbfa7b58fd_y5PyGxxxxx</subject>
</xe_data>