Appearance
优惠券消息推送
| 拥有此API的权限集并订阅此消息推送 |
|---|
| 优惠券管理-查询 |
推送参数
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| type | 是 | string | 推送类型:coupons-优惠券 |
| app_id | 是 | String | 店铺id |
| message_id | 是 | String | 消息ID |
| retry_times | 是 | int | 重试次数 |
| xe_data | 是 | Object | 业务数据 |
xe_data 参数结构
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| app_id | 是 | string | 店铺id |
| coupon_id | 是 | string | 优惠券id |
| coupon_name | 是 | string | 优惠券名称 |
| valid_at | 是 | string | 优惠券有效期开始时间 |
| invalid_at | 是 | string | 优惠券失效时间 |
| receive_at | 是 | string | 优惠券领取时间 |
| user_id | 是 | string | 用户id |
| price | 是 | int | 优惠券面值,单位:分 |
特殊说明
优惠券消息推送情况:只有在小鹅通平台用户主动领取行为时才推送,不包括批量定向发送的优惠券等情况
推送解密后示
<app_id>appAKLWLitnxxxx</app_id>
<type>coupons</type>
<message_id>20230615_1669013687304xxxxxx</message_id>
<retry_times>0</retry_times>
<xe_data>
<app_id>appAKLWLitnxxxx</app_id>
<coupon_id>cou_6131ecb60dbe1-Bdxxxx</coupon_id>
<coupon_name>优惠券</coupon_name>
<discount_limit_price>0</discount_limit_price>
<discount_percent>0</discount_percent>
<discount_way>1</discount_way>
<invalid_at>2021-11-30 23:59:59</invalid_at>
<price>1200</price>
<receive_at>2021-11-30 14:50:36</receive_at>
<user_id>u_619e5c0d6fcfc_h2nGbwxxxx</user_id>
<valid_after>0</valid_after>
<valid_at>2021-11-30 14:50:36</valid_at>
<valid_day>1</valid_day>
</xe_data>