简要描述:

  • 消费卡详情

请求URL:

POST/wapapi/member/consumerCardDetail

参数:

参数名 是否必须 类型 说明
card_id int 卡券ID
wx_card_id int 微信卡券ID(card_id为0时)

返回示例:

正确时返回:

{
    "code": 1,
    "message": "获取成功",
    "data": {
        "card_id": 4,
        "goods_name": "微信卡券",
        "goods_picture": "",
        "card_title": "卡券标题",
        "card_type": 1,
        "wx_card_id": "",
        "wx_card_state": 0,
        "card_code": "B13435910590",
        "card_codeImg": "",
        "count_num": 100,
        "invalid_time": "2019-04-01 17:59:18",
        "surplus_num": 99,//剩余次数或者剩余天数
        "store_id": 1,
        "store_name": "一号",
        "store_tel": "12345678910",
        "address": "广东省广州市天河区1231231231",
        "type": 1,
        "state": 1
    }
}

错误时返回:

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

返回参数说明:

参数名 类型 说明
card_id int 卡券ID
goods_name string 商品名称
goods_picture string 商品图片
card_title string 微信卡券标题
card_type int 卡券类型 1: 普通卡券 2:微信卡券
wx_card_id string 微信卡券ID
wx_card_state int 微信卡券领取状态 0:未领取 1:已领取
card_code string 卡券编码
card_codeImg string 卡券编码图片
surplus_num int 剩余数
count_num int 可核销总数
invalid_time string 有效日期结束时间
store_id int 门店ID
store_name string 门店名称
store_tel string 门店电话
address string 门店地址
type int 卡券类型 1计时 2计次
state int 卡券状态 1可使用 2已使用 3已过期