(下行接口)合作方查询实体卡列表
授权方式:门店授权
HTTP请求方式:POST
HTTP请求头类型:Content-Type=application/json
URI: /open/v1/crm/getCustomerCards
详情可查看【公共说明】中的公共参数模块
参数名 | 类型 | 是否必填 | 参数描述 |
---|---|---|---|
currentPage | Integer | 否 | 当前页(默认1) |
customerId | Long | 是 | 顾客mainID |
pageSize | Integer | 否 | 每页显示数据条数(默认10) |
{
"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 | 否 | 售卡门店名称 |
{
"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
}
]
}
}