文档
测试

我的优惠券

POST
http://192.168.1.222//shop/api.bonus/getList

请求参数

参数名
类型
描述
必填
apitoken
string
示例:J55PPP46c4e6a9d4e1392f1f86747329e15ab0OJEUJBjj
必填
type
int
状态:0-未使用,1-已使用,2-已失效 9-全部 示例:9
必填
p
int
示例:1
必填
row
int
示例:10
必填

响应参数

参数名
类型
描述
必填
data
object
数据字典
必填
list
array
数据列表
必填
bonus_id
int
用户优惠券标识 示例:308
必填
type_id
int
优惠券类型 示例:41
必填
status
int
0-未使用,1-已使用,2-已失效 示例:0
必填
bonus
object
数据字典
必填
type_name
string
优惠券名称 示例:快乐过五一
必填
type_money
int
优惠券金额 示例:50
必填
min_amount
int
满减额度 示例:100
必填
goods_type
int
商品类型:1-普通商品,2-拼团商品,3-秒杀商品 示例:1
必填
use_end_date
string
有效期 示例:2021.06.29
必填
use_start_date
str
开始使用日期 示例:2021.06.29
必填
count
int
数据总数 示例:2
必填
pagenum
int
数据页码总数 示例:1
必填
row
int
行数 示例:10
必填
p
int
页码 示例:1
必填
state
object
状态总数 数据字典
必填
all
int
所有 示例:2
必填
unused
int
未使用 示例:2
必填
been_used
int
已使用 示例:0
必填
failure
int
已失效 示例:0
必填
code
int
示例:1
必填
msg
string
示例:Success.
必填

说明 / 示例

``` { "data": { "list": [ { "bonus_id": 308, "type_id": 41, "status": 0, "bonus": { "type_name": "快乐过五一", "type_money": 50, "min_amount": 100, "goods_type": 1, "use_end_date": "2021.06.29" } }, { "bonus_id": 307, "type_id": 40, "status": 0, "bonus": { "type_name": "五一活动券", "type_money": 10, "min_amount": 0, "goods_type": 1, "use_end_date": "2021.06.29" } } ], "count": 2, "pagenum": 1, "row": 10, "p": 1, "state": { "all": 2, "unused": 2, "been_used": 0, "failure": 0 } }, "code": 1, "msg": "Success." }