membercard - 会员卡相关接口
- api/member/membercard/getcreateorder GET 获取会员批量开卡单
- api/member/membercard/getcreateorderlist GET 门店 获取会员批量开卡单列表
- api/member/membercard/batchcreate POST 门店 新建会员批量开卡单
- api/member/membercard/writecard POST 写卡
Uri请求参数
| 名称 | 类型 | 描述 |
|---|---|---|
| id | int |
响应参数
| 名称 | 类型 | 描述 |
|---|---|---|
| code | string | 单号 |
| createCount | int | 开卡数量 |
| createTime | date | 创建时间 |
| currentCode | string | 当前卡号 |
| details | [...] | 单据明细 |
| ┆- cardCode | string | 卡号 |
| ┆- id | int | id |
| ┆- isFinished | boolean | 是否完成 |
| ┆- orderId | int | 开卡记录Id |
| endCode | string | 结束卡号 |
| expectCount | int | 预期数量 |
| id | int | id |
| isFinished | boolean | 是否完成 |
| memberCardClassId | int | 会员卡类别Id |
| memberCardClassName | string | 会员卡类别 |
| shopId | int | 门店Id |
| shopName | string | 门店名称 |
| startCode | string | 起始卡号 |
| userId | int | 操作人id |
| userName | string | 操作人名称 |
| writeCount | int | 写卡数量 |
响应示例
application/json, text/json
{
"shopId": 1,
"shopName": "",
"code": "",
"memberCardClassId": 4,
"memberCardClassName": "",
"startCode": "",
"endCode": "",
"currentCode": "",
"expectCount": 9,
"createCount": 10,
"writeCount": 11,
"isFinished": true,
"createTime": "2025-10-01 05:31:28",
"userId": 14,
"userName": "",
"details": [
{
"orderId": 1,
"cardCode": "",
"isFinished": true,
"id": 4
},
{
"orderId": 1,
"cardCode": "",
"isFinished": true,
"id": 4
}
],
"id": 16
}
Uri请求参数
| 名称 | 类型 | 描述 |
|---|---|---|
| endDate | date | |
| isFinished | int | |
| keyword | string | |
| pageIndex | int | |
| pageSize | int | |
| shopid | int | |
| startDate | date |
响应参数
| 名称 | 类型 | 描述 |
|---|---|---|
| data | [...] | |
| ┆- code | string | 单号 |
| ┆- createCount | int | 开卡数量 |
| ┆- createTime | date | 创建时间 |
| ┆- currentCode | string | 当前卡号 |
| details | [...] | 单据明细 |
| ┆- cardCode | string | 卡号 |
| ┆- id | int | id |
| ┆- isFinished | boolean | 是否完成 |
| ┆- orderId | int | 开卡记录Id |
| ┆- endCode | string | 结束卡号 |
| ┆- expectCount | int | 预期数量 |
| ┆- id | int | id |
| ┆- isFinished | boolean | 是否完成 |
| ┆- memberCardClassId | int | 会员卡类别Id |
| ┆- memberCardClassName | string | 会员卡类别 |
| ┆- shopId | int | 门店Id |
| ┆- shopName | string | 门店名称 |
| ┆- startCode | string | 起始卡号 |
| ┆- userId | int | 操作人id |
| ┆- userName | string | 操作人名称 |
| ┆- writeCount | int | 写卡数量 |
| pageIndex | int | |
| pageSize | int | |
| sumData | {...} | |
| ┆- code | string | 单号 |
| ┆- createCount | int | 开卡数量 |
| ┆- createTime | date | 创建时间 |
| ┆- currentCode | string | 当前卡号 |
| details | [...] | 单据明细 |
| ┆- cardCode | string | 卡号 |
| ┆- id | int | id |
| ┆- isFinished | boolean | 是否完成 |
| ┆- orderId | int | 开卡记录Id |
| ┆- endCode | string | 结束卡号 |
| ┆- expectCount | int | 预期数量 |
| ┆- id | int | id |
| ┆- isFinished | boolean | 是否完成 |
| ┆- memberCardClassId | int | 会员卡类别Id |
| ┆- memberCardClassName | string | 会员卡类别 |
| ┆- shopId | int | 门店Id |
| ┆- shopName | string | 门店名称 |
| ┆- startCode | string | 起始卡号 |
| ┆- userId | int | 操作人id |
| ┆- userName | string | 操作人名称 |
| ┆- writeCount | int | 写卡数量 |
| totalCount | int |
响应示例
application/json, text/json
Uri请求参数
| 名称 | 类型 | 描述 |
|---|---|---|
| shopid | int | 门店id |
Body请求参数
| 名称 | 类型 | 描述 |
|---|---|---|
| code | string | 单号 |
| createCount | int | 开卡数量 |
| createTime | date | 创建时间 |
| currentCode | string | 当前卡号 |
| details | [...] | 单据明细 |
| ┆- cardCode | string | 卡号 |
| ┆- id | int | id |
| ┆- isFinished | boolean | 是否完成 |
| ┆- orderId | int | 开卡记录Id |
| endCode | string | 结束卡号 |
| expectCount | int | 预期数量 |
| id | int | id |
| isFinished | boolean | 是否完成 |
| memberCardClassId | int | 会员卡类别Id |
| memberCardClassName | string | 会员卡类别 |
| shopId | int | 门店Id |
| shopName | string | 门店名称 |
| startCode | string | 起始卡号 |
| userId | int | 操作人id |
| userName | string | 操作人名称 |
| writeCount | int | 写卡数量 |
请求示例
application/json, text/json
{
"shopId": 1,
"shopName": "",
"code": "",
"memberCardClassId": 4,
"memberCardClassName": "",
"startCode": "",
"endCode": "",
"currentCode": "",
"expectCount": 9,
"createCount": 10,
"writeCount": 11,
"isFinished": true,
"createTime": "2025-10-01 05:31:28",
"userId": 14,
"userName": "",
"details": [
{
"orderId": 1,
"cardCode": "",
"isFinished": true,
"id": 4
},
{
"orderId": 1,
"cardCode": "",
"isFinished": true,
"id": 4
}
],
"id": 16
}
响应参数
| 名称 | 类型 | 描述 |
|---|---|---|
| data | int | |
| message | string | 附加信息 |
| status | string | 200:成功; 500:内部错误; 601:卡不可用; 602:卡不存在; 603:卡挂失; 604:卡作废; 605:卡余额不足; 606:卡付款码超时; 607:积分不足; 608:礼品不可用; 701:支付成功; 702:支付确认失败; 703:支付状态未知; 704:付款码超时; 801:流水号重复; 901:未日结; 902:日结进行中; 903:日结中断; 904:日结完成; 905:日结金额发生变化; 1001:无法购买; 1002:已售罄; 1003:支付超时 |
响应示例
application/json, text/json
{
"data": 1,
"status": 200,
"message": ""
}
Body请求参数
| 名称 | 类型 | 描述 |
|---|---|---|
| cardCode | string | 卡号 |
| id | int | id |
| mac | string | 卡密 |
| orderId | int | 订单号 |
请求示例
application/json, text/json
{
"cardCode": "",
"mac": "",
"orderId": 3,
"id": 4
}
响应参数
| 名称 | 类型 | 描述 |
|---|---|---|
| data | string | |
| message | string | 附加信息 |
| status | string | 200:成功; 500:内部错误; 601:卡不可用; 602:卡不存在; 603:卡挂失; 604:卡作废; 605:卡余额不足; 606:卡付款码超时; 607:积分不足; 608:礼品不可用; 701:支付成功; 702:支付确认失败; 703:支付状态未知; 704:付款码超时; 801:流水号重复; 901:未日结; 902:日结进行中; 903:日结中断; 904:日结完成; 905:日结金额发生变化; 1001:无法购买; 1002:已售罄; 1003:支付超时 |
响应示例
application/json, text/json
{
"data": "",
"status": 200,
"message": ""
}