文档
测试

优惠券分页查询

GET
/api/members/coupon/getList

请求头

参数名
类型
描述
必填
Cookie
String
必填

请求参数

参数名
类型
描述
必填
page
int
当前页码。
必填
limit
int
每页显示条数。
必填
available
Boolean
优惠券是否可用。true-可用的。
可选
isGot
Integer
优惠券领取状态。0-待领取,1-已领取。
可选
isUsed
Integer
优惠券使用状态。0-未使用,1-已使用。
可选
expire
Boolean
优惠券是否过期。true-已过期
可选

响应参数

参数名
类型
描述
必填
result
int
0--成功,其他--失败。示例:0
必填
data
object
数据字典
必填
page
int
当前页码
可选
pageSize
int
每页显示条数
必填
records
int
总记录数
必填
total
int
总页数
必填
size
int
当前页有多少条数据
必填
rows
array
数据列表
必填
couponName
string
优惠券名称。示例:满99元减20元
可选
endDate
string
优惠券过期时间。示例:2021-05-18
可选
activityName
string
优惠券来自活动的名称。示例:满99元减20元
可选
couponId
string
优惠券ID。示例:2f093758e08c4da6af39277cadff5f33
可选
isUsed
Integer
优惠券使用状态。0-未使用,1-已使用。示例:0
可选
activityId
string
优惠券来自活动ID。示例:newuser-新用户优惠券
可选
uid
string
用户uid。示例:300114
可选
condition
int
最底消费(分),为0表示无门槛。示例:9900
可选
createTime
string
示例:2021-05-12T08:31:26.000+00:00
可选
couponType
string
MJ/ZK/SP分别代表满减、拆扣、商品券。示例:MJ
可选
value
int
示例:2000
可选
startDate
string
优惠券有效时间的开始时间。示例:2021-05-12
可选
isGot
Integer
优惠券领取状态。0-待领取,1-已领取。
可选
hasNextPage
boolean
是否还有下一页,false--没有下一页,true--有下一页,示例:false
必填
msg
string
提示信息。示例:Success
必填

说明 / 示例

可用优惠券请求示例: ``` /api/members/coupon/getList?limit=20&page=1&available=true 或者 /api/members/coupon/getList?limit=20&page=1&notexpire=true&isGot=1&isUsed=0 ``` 已使用优惠券请求示例: ``` /api/members/coupon/getList?limit=20&page=1&isGot=1&isUsed=1&_rnd=1631089720419 ``` 已过期优惠券请求示例: ``` /api/members/coupon/getList?limit=20&page=1&isGot=1&expire=true&_rnd=1631089778975 ```