文档
测试

获取优惠券列表

POST
/shopbackend/coupon/queryList

请求参数

参数名
类型
描述
必填
type
int
优惠券类型 1:满减券 2:折扣券
可选
status
int
10:未开始 11:进行中 12:已结束
可选
title
int
优惠券标题
可选

说明 / 示例

{ "code": 200, "data": { "items": [ { "id": 26, //优惠券编号 "shop_id": 1, //商铺编号 "amount": 100, //发行数量 "goods": [ { "goods_id": 1, //商品id "title": "测试商品" //商品对应名称 } ], "type": 1, // 1 满减券 2折扣券 "threshold": 2, // 1 无门槛 2有门槛 "threshold_price": 100, //满减券 减多少钱 折扣券 打多少折 "content": "10", //优惠内容 满减券是金额 折扣卷是打折数 "coupon_start_time": 1591095086, //优惠券开始时间 "coupon_end_time": 1591096086,//优惠券结束时间 "receive_number": 2, //设置的领取数量 0是不限制 "create_time": "2020-06-04T03:05:12.000000Z", //优惠券创建时间 "update_time": "2020-06-04T03:05:12.000000Z", //优惠券修改时间 "delete_time": null, "create_user_id": null, "update_user_id": null, "delete_user_id": null, "received_amount": 0, //优惠券领取数量 "titles": [ { "coupon_id": 26, "title": "测试语言标题", //优惠券标题 "title_remarks": "测试语言备注" //优惠券备注 } ] }, { "id": 31, "shop_id": 1, "amount": 100, "goods": [ { "goods_id": 1, "title": "测试商品" } ], "type": 1, "threshold": 2, "threshold_price": 100, "content": "10", "coupon_start_time": 1591095086, "coupon_end_time": 1591096086, "receive_number": 2, "create_time": "2020-06-04T07:16:15.000000Z", "update_time": "2020-06-04T09:02:40.000000Z", "delete_time": null, "create_user_id": null, "update_user_id": null, "delete_user_id": null, "received_amount": 0, "titles": [ { "coupon_id": 31, "title": "测试优惠券", "title_remarks": "测试" } ] }, { "id": 32, "shop_id": 1, "amount": 100, "goods": [ { "goods_id": 1, "title": "测试商品" } ], "type": 1, "threshold": 2, "threshold_price": 100, "content": "10", "coupon_start_time": 1591095086, "coupon_end_time": 1591096086, "receive_number": 2, "create_time": "2020-06-05T10:34:50.000000Z", "update_time": "2020-06-05T10:34:50.000000Z", "delete_time": null, "create_user_id": null, "update_user_id": null, "delete_user_id": null, "received_amount": 0, "titles": [ { "coupon_id": 32, "title": "测试11优惠券", "title_remarks": "测试别名" } ] } ], "current_page": 1, "last_page": 1, "total": 3 } }