请求方式 | 版本信息 | 请求地址 |
---|---|---|
POST | V2 | http://openapi.zvcms.com/api/v2 |
参数 | 参数类型 | 是否必填 | 默认值 | 描述 |
---|---|---|---|---|
OpenId | string | 是 | 密钥Id | |
GrantCode | string | 是 | 授权code | |
Token | string | 是 | 签名,参考《数字签名sign》 | |
Timestamp | string | 是 | 当前时间戳 | |
Nonce | string | 是 | 随机正整数 | |
Action | string | 是 | user.my-cards | 接口方法 |
Params | array | 是 | 业务参数 |
参数 | 参数类型 | 是否必填 | 默认值 | 描述 |
---|---|---|---|---|
user_id | string | 是 | 用户id | |
needCycleCard | int | 否 | 不可用礼品卡里是否返回已被回收的卡 1返回被回收的 0不返回被回收的 |
参数 | 参数类型 | 描述 |
---|---|---|
status | bool | 成功或失败标识 |
code | int | 成功失败状态 |
message | string | 说明 |
data | array | |
├0 | array | |
├id | string | 卡号 |
├gift_card_id | string | 礼品卡模板id |
├gift_title | string | 卡名称 |
├par_value | string | 余额 |
├cover | string | 卡图片 |
├expired_desc | string | 有效期说明 |
├deduct_amount | string | 卡面总值 |
├bind_status | string | 绑定状态 0未绑定 1已绑定 |
├beginAt | string | 有效期开始时间 |
├endAt | string | 有效期结束时间 |
├createdAt | string | 创建时间 |
├status_desc | string | 状态描述 |
├status | string | 礼品卡的状态: 0-未知状态,1-未绑定,2-赠送中,3-已赠送,4-已绑定,5-已过期,6-已回收,7-已用完 |
├validType | string | 有效期类型:0-未知,1-长期有效,2-自绑定日起xxx有效,3-固定日期 |
├isErp | string | 1 非码 0或者不存在这个字段 企迈 |
{ "OpenId": "6dc05b4ac175cf316d226252b05cf685", "GrantCode": "782c281f62", "Timestamp": "1547186244", "Nonce": "658965", "Token": "0%2B%2B3c6hthjwAml4ABAXOYF4Q6UY%3D", "Action": "user.my-cards", "Params": { "user_id": "", "needCycleCard": "" } }
{ "status": "true", "code": "0", "message": "说明", "data": [ { "id": "", "gift_card_id": "", "gift_title": "", "par_value": "", "cover": "", "expired_desc": "", "deduct_amount": "", "bind_status": "", "beginAt": "", "endAt": "", "createdAt": "", "status_desc": "", "status": "", "validType": "", "isErp": "" } ] }
{ "status": true, "code": "异常编码,根据不同的业务返回编码", "message": "异常说明:查询的信息不存在" }
{ "status": false, "code": "系统错误编码:详见全局返回编码", "message": "系统错误说明" }
免费升级
营销功能、插件持续每月更新开发升级
免费专业培训
每月建站、微信营销、电商等互联网增值培训
7×24小时服务支持
400电话、QQ、微信、在线等多渠道售后支持
安徽智迈科技股份有限公司 版权所有 Copyright 2009-2018 皖公网安备 34019202000074号 增值电信业务经营许可证:皖B2-20170075