• 开发者平台
  • >
  • 餐饮文档中心

查询会员实体卡列表收费

(下行接口)合作方查询实体卡列表

授权方式:门店授权

请求描述

HTTP请求方式:POST
HTTP请求头类型:Content-Type=application/json
URI:  /open/v1/crm/getCustomerCards

请求参数

1.公共参数

详情可查看【公共说明】中的公共参数模块

2.业务参数

参数名 类型 是否必填 参数描述
currentPage Integer 当前页(默认1)
customerId Long 顾客mainID
pageSize Integer 每页显示数据条数(默认10)

业务示例(JSON)

{
    "currentPage": 1,
    "customerId": "8849923",
    "pageSize":10
}

响应参数

参数名 类型 是否必填 参数描述
code Int 返回编码,详见错误码
message String 返回信息
messageUuid String 消息uuid
result CRMPager<CRMCustomerCardVo> 返回响应数据,json对象或数组,可空

CRMPager<CRMCustomerCardVo>

参数名 类型 是否必填 参数描述
currentPage Integer 当前页
items List<CRMCustomerCardVo> 数据对象
pageSize Integer 每页记录数
startRow Integer 开始记录数
totalPage Integer 总页码数
totalRows Integer 总记录数

CRMCustomerCardVo

字段名 类型 是否必填 字段描述
cardKindId Long 实体卡卡种ID
cardKindName String 实体卡名称
cardNum String 实体卡卡号
cardStatus Integer 实体卡状态(0:未制卡;1:未出售;3:已激活;4:已停用;5:已废除;)
id Long 实体卡ID
cardType Integer 实体卡类型(1:权益卡,2:匿名卡,3:会员卡)
openTime Long 开卡时间(时间戳,秒)
openCommercialId Integer 开卡门店编号
openCommercialName String 开卡门店名称
saleTime Long 售卡时间(时间戳,秒)
saleCommercialId Integer 售卡门店编号
saleCommercialName String 售卡门店名称

响应示例(JSON)

{
    "code": "1",
    "result": {
        "currentPage": 1,
        "pageSize": 10,
        "totalRows": 6,
        "startRow": 0,
        "totalPage": 1,
        "items": [
            {
                "id": 33195,
                "cardKindId": 139,
                "cardKindName": "尊上优先卡",
                "cardNum": "00032680139000000128",
                "cardStatus": 3
            },
            {
                "id": 44426,
                "cardKindId": 654,
                "cardKindName": "丑人专享卡01",
                "cardNum": "00032680025000000018",
                "cardStatus": 5
            },
            {
                "id": 44437,
                "cardKindId": 654,
                "cardKindName": "丑人专享卡01",
                "cardNum": "00032680025000000128",
                "cardStatus": 5
            },
            {
                "id": 44438,
                "cardKindId": 654,
                "cardKindName": "丑人专享卡01",
                "cardNum": "00032680025000000138",
                "cardStatus": 5
            },
            {
                "id": 44466,
                "cardKindId": 668,
                "cardKindName": "所有规则",
                "cardNum": "00032680026000000018",
                "cardStatus": 5
            },
            {
                "id": 44470,
                "cardKindId": 668,
                "cardKindName": "所有规则",
                "cardNum": "00032680026000000058",
                "cardStatus": 5
            },
            {
                "id": 44471,
                "cardKindId": 668,
                "cardKindName": "所有规则",
                "cardNum": "00032680026000000068",
                "cardStatus": 5
            },
            {
                "id": 44473,
                "cardKindId": 668,
                "cardKindName": "所有规则",
                "cardNum": "00032680026000000088",
                "cardStatus": 5
            },
            {
                "id": 44668,
                "cardKindId": 686,
                "cardKindName": "只积分",
                "cardNum": "00032680034000000018",
                "cardStatus": 5
            },
            {
                "id": 44678,
                "cardKindId": 687,
                "cardKindName": "只会员价",
                "cardNum": "00032680035000000018",
                "cardStatus": 3
            }
        ]
    }
}
目录