获取店铺优惠券
GET {{base_url}}/shop/getCouponList
Query
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
shop_id |
string | 1 | 店铺ID(不传获取所有优惠券) | 1 |
shop_type |
string | 1 | 店铺类型 | 【1=便利店,2=美食店】 |
shop_name |
string | 1 | 店铺名称 |
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 | bearer {{token}} |
返回示例
{
"status": 200,
"msg": "success",
"data": [
{
"coupon_id": 1,
"shop_id": 1,
"shop_type": 1,
"use_money": 20,
"reduce_money": 10,
"term_of_validity": 3,
"get_num": 2,
"status": 1,
"created_at": "2020-04-20 11:08:12",
"updated_at": "2020-06-06 10:18:51",
"user_coupons_count": 0,
"shop": {
"shop_id": 1,
"shop_name": "便利店(爱联店)",
"shop_logo": "https://weike.union-home.cn/uploads/shop_logo/2020-06-06/5edb7280ec9d0.png",
"shop_type": 1,
"shop_type_name": "便利店"
}
},
{
"coupon_id": 2,
"shop_id": 1,
"shop_type": 1,
"use_money": 20,
"reduce_money": 15,
"term_of_validity": 1,
"get_num": 0,
"status": 1,
"created_at": "2020-04-20 11:08:24",
"updated_at": null,
"user_coupons_count": 0,
"shop": {
"shop_id": 1,
"shop_name": "便利店(爱联店)",
"shop_logo": "https://weike.union-home.cn/uploads/shop_logo/2020-06-06/5edb7280ec9d0.png",
"shop_type": 1,
"shop_type_name": "便利店"
}
},
{
"coupon_id": 3,
"shop_id": 1,
"shop_type": 1,
"use_money": 10,
"reduce_money": 5,
"term_of_validity": 1,
"get_num": 0,
"status": 1,
"created_at": "2020-04-20 11:09:50",
"updated_at": null,
"user_coupons_count": 0,
"shop": {
"shop_id": 1,
"shop_name": "便利店(爱联店)",
"shop_logo": "https://weike.union-home.cn/uploads/shop_logo/2020-06-06/5edb7280ec9d0.png",
"shop_type": 1,
"shop_type_name": "便利店"
}
},
{
"coupon_id": 4,
"shop_id": 1,
"shop_type": 1,
"use_money": 30,
"reduce_money": 10,
"term_of_validity": 3,
"get_num": 0,
"status": 1,
"created_at": "2020-04-20 11:10:06",
"updated_at": null,
"user_coupons_count": 0,
"shop": {
"shop_id": 1,
"shop_name": "便利店(爱联店)",
"shop_logo": "https://weike.union-home.cn/uploads/shop_logo/2020-06-06/5edb7280ec9d0.png",
"shop_type": 1,
"shop_type_name": "便利店"
}
},
{
"coupon_id": 7,
"shop_id": 1,
"shop_type": 1,
"use_money": 100,
"reduce_money": 50,
"term_of_validity": 1,
"get_num": 0,
"status": 1,
"created_at": "2020-04-20 15:21:25",
"updated_at": null,
"user_coupons_count": 0,
"shop": {
"shop_id": 1,
"shop_name": "便利店(爱联店)",
"shop_logo": "https://weike.union-home.cn/uploads/shop_logo/2020-06-06/5edb7280ec9d0.png",
"shop_type": 1,
"shop_type_name": "便利店"
}
},
{
"coupon_id": 11,
"shop_id": 1,
"shop_type": 1,
"use_money": 30,
"reduce_money": 15,
"term_of_validity": 1,
"get_num": 0,
"status": 1,
"created_at": "2020-04-20 16:13:00",
"updated_at": null,
"user_coupons_count": 0,
"shop": {
"shop_id": 1,
"shop_name": "便利店(爱联店)",
"shop_logo": "https://weike.union-home.cn/uploads/shop_logo/2020-06-06/5edb7280ec9d0.png",
"shop_type": 1,
"shop_type_name": "便利店"
}
},
{
"coupon_id": 12,
"shop_id": 1,
"shop_type": 1,
"use_money": 100,
"reduce_money": 10,
"term_of_validity": 3,
"get_num": 0,
"status": 1,
"created_at": "2020-06-01 10:42:25",
"updated_at": null,
"user_coupons_count": 0,
"shop": {
"shop_id": 1,
"shop_name": "便利店(爱联店)",
"shop_logo": "https://weike.union-home.cn/uploads/shop_logo/2020-06-06/5edb7280ec9d0.png",
"shop_type": 1,
"shop_type_name": "便利店"
}
},
{
"coupon_id": 14,
"shop_id": 7,
"shop_type": 2,
"use_money": 0,
"reduce_money": 5,
"term_of_validity": 3,
"get_num": 0,
"status": 1,
"created_at": "2020-06-03 11:11:39",
"updated_at": "2020-06-03 11:11:39",
"user_coupons_count": 0,
"shop": {
"shop_id": 7,
"shop_name": "首尔炸鸡",
"shop_logo": "https://weike.union-home.cn/uploads/shop_logo/2020-05-06/5eb22df5986fc.png",
"shop_type": 2,
"shop_type_name": "美食店"
}
}
]
}
参数名 | 类型 | 描述 | |
---|---|---|---|
data.shop |
object | 店铺信息 | |
data.term_of_validity |
number | 优惠券有效期(单位:天) | |
data.user_coupons_count |
number | 用户是否已领取(0未领取 1领取) |
文档更新时间: 2020-09-14 16:59 作者:nianwang