Appearance
发放优惠券2.0
| 拥有此API的权限集 |
|---|
| 营销码券管理-增删改 |
接口描述
- 目前只支持spread_type为1的领取方式
请求方式及url
- 请求方式:
POST - 请求头:
Content-Type:application/json - 接口地址:
https://api.xiaoe-tech.com/xe.coupon.receive/2.0.0 - 频率限制:
10秒500次
接口调试
请求参数
响应结果
暂无响应数据
请求参数
| 参数名 | 必选 | 类型 | 说明 | 备注(示例) |
|---|---|---|---|---|
| access_token | 是 | string | 专属token | ... |
| user_id | 是 | string | 用户id | ... |
| coupon_id | 是 | string | 优惠券id | ... |
请求示例
{
"access_token": "xe_xxxxx",
"user_id": "xx",
"coupon_id": "xx"
}返回参数
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| code | 是 | int | 请求结果码 |
| msg | 是 | string | 描述信息 |
| data | 是 | object | 数据 |
数据列表data
| 参数名 | 必选 | 类型 | 说明 | 备注(示例) |
|---|---|---|---|---|
| received_count | 是 | int | 当前优惠券已发放数量 | 10 |
| count | 是 | int | 优惠券总库存 | 100 |
| current_user_received_count | 是 | int | 当前用户已领取总数 | 10 |
| received_rule | 是 | Int | 优惠券限领规则,每人限领的数量 | 1 |
返回示例
{
"code": 0,
"msg": "领取成功",
"data": {
"received_count": 1,
"count": 2,
"current_user_received_count": 1,
"receive_rule": 0
}
}