文档
测试

我的优惠券列表

POST
coupon/my

接口描述

获取用户已领取的优惠券列表

请求参数

application/x-www-form-urlencoded
参数名
类型
描述
必填
token
str
用户登录令牌token
必填
type
int
优惠券类型 1租赁券2买断券
可选
sid
int
商家ID
可选
status
int
优惠券状态,0未使用1已使用2已过期
可选
page
int
页码(可选),默认=1
可选
stagePrice
float
订单每月金额
可选

响应参数

参数名
类型
描述
必填
code
int
错误码,0正确,大于0表示有错误
必填
msg
str
错误信息,ok 或 错误信息
必填
data
obj
返回的数据
必填
list
array
列表
必填
total
int
总数
必填

说明 / 示例

## 返回示例 ```json { "code": 0, "msg": "ok", "data": { "list": [ { "cid": "1", //优惠券ID "type": "1", // 1租赁券2买断券3首月1元 "status": "0", //0未使用1已使用2已过期 "amount": "50", //面值金额 "name": "测试优惠券1", //名称 "base": "200", //满多少元可使用 "days": "30", //领取后有效天数 "intro": "测试优惠券测试优惠券1", //介绍 "ucid": "1", //用户优惠券ID "created": "2023-01-04 17:55", //领取时间 "expireAt": null, //到期时间 "used": null, //使用时间 "shop": 0, //是否限制门店 "shopName": "", //限制门店名称 "goods": 0, //是否限制商品 "goodsName": "" //限制商品名称 }, { "cid": "2", "type": "2", "status": "0", "amount": "200", "name": "测试优惠券2", "base": "6000", "days": "0", "intro": "限期发放", "ucid": "2", "created": "2023-01-04 17:55", "expireAt": "2023-02-04", "used": null, "shop": 0, "shopName": "", "goods": 0, "goodsName": "" } ], "total": 2 } } ```