简要描述:

  • 消费卡列表

请求URL:

POST/wapapi/member/consumerCard

参数:

参数名 是否必须 类型 说明
state int 消费卡状态 0可使用 1已使用 2已过期
page_index int 当前页数
page_size int 分页大小,默认20

返回示例:

正确时返回:

{
    "code": 1,
    "message": "获取成功",
    "data": {
        "data": [
            {
                "card_id": 4,
                "goods_name": "微信卡券",
                "card_title": "卡券标题",//微信卡券才会有
                "state": "0",
                "surplus_num": 99,//剩余次数或者剩余天数
                "invalid_time": "2019-04-01 17:59:18",
                "type": 1
            }
        ],
        "total_count": 1,
        "page_count": 1
    }
}

错误时返回:

{
    "code": -1,
    "message": "获取失败"
}

返回参数说明:

参数名 类型 说明
card_id int 卡券ID
goods_name string 商品名称
card_title string 微信卡券标题
state int 状态 0可使用 1已使用 2已过期
surplus_num int 剩余数
invalid_time string 有效日期结束时间
type int 卡券类型 1计时 2计次