简要描述:

  • 优惠券状态信息列表

请求URL:

POST:一级域名/index.php?s=/wapapi/member/getcouplist

参数:

参数名 是否必须 类型 说明
state int 优惠券状态 1已领用(未使用) 2已使用 3已过期
page_index int 当前页数
page_size int 分页大小,默认14

返回示例:

正确时返回:

{
    "data": {
        "page_index": 1,
        "total_page": 1,
        "total_count": 1,
        "list": [
            {
                "coupon_type_id": 7,
                "shop_id": 43,
                "shop_range_type": 1,
                "coupon_genre": 1,
                "coupon_name": "阿迪达斯无门槛优惠券",
                "money": "88.00",
                "count": 102,
                "max_fetch": 1,
                "discount": "0.00",
                "at_least": "0.00",
                "need_user_level": 0,
                "range_type": 1,
                "start_time": 1524202480,
                "end_time": 1555016882,
                "create_time": 0,
                "update_time": 0,
                "start_receive_time": 1524202473,
                "end_receive_time": 1526016876,
                "is_show": 0,
                "is_fetch": 1,
                "website_id": 9,
                "desc": "admin端测试优惠券-无门槛-所有商品",
                "coupon_id": 446,
                "uid": 73,
                "state": 1,
                "shop_name": "bbb直营店",
                "show_name": "bbb直营店-全部商品"
            }
        ]
    },
    "code": 0
}

错误时返回:

{
    "code": -1,
    "message": "系统繁忙"
}

返回参数说明:

参数名 类型 说明
coupon_type_id int 优惠券类型ID
shop_id int 优惠券店铺ID
shop_range_type int 优惠券适用范围,1-直营店,2-全平台
coupon_genre int 优惠券类型,1-无门槛,2-满减,3-折扣
coupon_type_id int 优惠券类型ID
account_type int 账户类型1.积分2.余额3.购物币
coupon_name string 优惠券名称
money int 优惠面额
discount int 10.00不打折,0.00免费
at_least int 满多少元使用
range_type int 使用范围0部分产品使用 1全场产品使用
start_time string 有效日期开始时间
end_time string 有效日期结束时间
coupon_id string 优惠券ID
page_index string 当前分页
total_count string 总条数
total_page string 总页数
show_name string 'c
shop_name string 店铺名
state int 优惠券状态 1已领用(未使用) 2已使用 3已过期