获取礼品卡消费记录(app接口).md 1.58 KB

1、获取礼品卡消费记录

获取礼品卡消费记录 (method=app.giftcard.consumelist)

请求参数

参数名称 参数类型 可否为空 示例 默认值 备注
cardCode string LPK00500000001 礼品卡号
uid int 123456
type int 1 1-消费,2-退款
page int 1 1
limit int 10 10

注意,通用的头部没有列出。

请求示例:
http://localhost:8090/gateway?method=app.giftcard.consumelist&debug=XYZ&cardCode=LPK00500000001&uid=123456&page=1&limit=10

code为200即为成功,否则是失败。 响应JSON格式如下所示:

{
    "alg": "SALT_MD5",
    "code": 200,
    "data": {
        "activateTime": 1504150032,
        "activateUid": 500027364,
        "amount": 100,
        "cardCode": "LPK00500000001",
        "currPage": 1,// 当前页码
        "currTotal": 1,
        "endTime": 1506742032,
        "giftCardConsumeInfoBOList": [
            {
                "changeAmount": 50,
                "createTime": 1504251553,
                "orderCode": 2222222222,
                "type": 1,
                "typeStr": "消费"
            }
        ],
        "id": 8,
        "limit": 10,
        "name": "棉花用的谁抢杀谁",
        "pageSize": 0,// 总页数
        "remainAmount": 50,
        "status": 40,
        "statusStr": "可使用",
        "total": 1
    },
    "md5": "60051043347036ab708f080836896ec4",
    "message": "操作成功"
}