简要描述:
- 优惠券详情
请求URL:
POST/wapapi/addons/execute/addons/coupontype/controller/coupontype/action/couponDetail
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
coupon_type_id | 是 | int | 优惠券ID |
coupon_id | 否 | int | 用户优惠券id,在分享领取页面时,需要传 |
返回示例:
正确时返回:
{
"code": 1,
"message": "获取成功",
"data": {
"coupon_type_id": 50,
"coupon_name": "10块",
"shop_id": 0,
"shop_name": "自营店",
"shop_logo": "",
"coupon_genre": 2,
"at_least": "199.00",
"discount": "0.00",
"money": "100.00",
"start_time": 1556640000,
"end_time": 1559318399,
"is_coupon": 10,
"is_fetch": 1,
"is_send_friend": 1,
}
}
错误时返回:
{
"code": -1,
"message": "获取失败"
}
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
coupon_type_id | int | 优惠券ID |
coupon_name | string | 优惠券名称 |
shop_id | int | 店铺ID |
shop_name | string | 店铺名称 |
shop_logo | string | 店铺头像 |
coupon_genre | int | 优惠券类型,1/2/3,//无门槛/金额券/折扣券 |
at_least | float | 满多少可用 |
discount | float | 0.00-10.00折扣 |
money | float | 1,2类型的优惠金额 |
start_time | int | 优惠券有效起始时间 |
end_time | int | 优惠券有效结束时间 |
is_coupon | int | 领取状态 大于0可领取 0已领取 -1未开始 -2已过期 3-已失效 -3自己不能领取自己的券 |
is_send_friend | int | 是否赠送朋友 0不可赠送 1可以赠送 |