简要描述:
- 店员端根据核销码获取消费卡
请求URL:
POST/wapstore/addons/execute/addons/store/controller/wapstore/action/consumerCardDetail
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
card_code | 是 | int | 消费卡编码 |
返回示例:
正确时返回:
{
"code": 1,
"message": "获取成功",
"data": {
"card_id": 4,
"goods_name": "微信卡券",
"card_title": "卡券标题",
"card_type": 1,
"wx_card_id": "",
"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": 0,
"message": "获取成功",
"data": {
"store_id": 1,
"prompt": "该码为一号店核销码,是否切换门店进行核销?"
}
}
错误时返回:
{
"code": -1,
"message": "该码为一号店核销码,你无法操作,请提示会员到对应门店进行核销。"
}
{
"code": -1,
"message": "获取失败"
}
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
card_id | int | 卡券ID |
goods_name | string | 商品名称 |
card_title | string | 微信卡券标题 |
card_type | int | 卡券类型 1: 普通卡券 2:微信卡券 |
wx_card_id | string | 微信卡券ID |
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已过期 |