Skip to content

发放优惠券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_tokenstring专属token...
user_idstring用户id...
coupon_idstring优惠券id...

请求示例

{
  "access_token": "xe_xxxxx",
  "user_id": "xx",
  "coupon_id": "xx"
}

返回参数

参数名必选类型说明
codeint请求结果码
msgstring描述信息
dataobject数据

数据列表data

参数名必选类型说明备注(示例)
received_countint当前优惠券已发放数量10
countint优惠券总库存100
current_user_received_countint当前用户已领取总数10
received_ruleInt优惠券限领规则,每人限领的数量1

返回示例

 {
    "code": 0,
    "msg": "领取成功",
    "data": {
        "received_count": 1,
        "count": 2,
        "current_user_received_count": 1,
        "receive_rule": 0
    }
}