查询会员卡模板列表

更新时间:2025.06.22

通过此接口可查询指定某品牌的所有会员卡模板列表

接口限频:按服务商商户号维度 5次/秒

接口说明

支持商户:【普通服务商】

请求方式:【GET】/v3/brand/partner/card-member/cards

请求域名:【主域名】https://api.mch.weixin.qq.com 使用该域名将访问就近的接入点

     【备域名】https://api2.mch.weixin.qq.com 使用该域名将访问异地的接入点 ,指引点击查看

请求参数

Header  HTTP头参数

 Authorization  必填 string

请参考签名认证生成认证信息


 Accept  必填 string

请设置为application/json


query  查询参数

 brand_id  必填   string(32)

【品牌ID】 商家进驻微信支付品牌商家后获得的品牌ID(灰度期间联系微信支付运营获取),用于标记该会员卡的归属方


 state  选填   string

【状态】 会员卡状态信息

可选取值

  • CARD_EFFECTIVE:  生效中

  • CARD_INVALID:  已失效


 offset  必填   integer

【分页开始位置】 该次请求的分页开始位置,从0开始计数,例如offset=10,表示从第11条记录开始返回。


 limit  必填   integer

【分页大小,范围为1~20】 分页大小,范围为1~20

请求示例

curl
Java
Go

GET

1curl -X GET \
2  https://api.mch.weixin.qq.com/v3/brand/partner/card-member/cards?brand_id=1004&state=CARD_EFFECTIVE&offset=0&limit=20 \
3  -H "Authorization: WECHATPAY2-SHA256-RSA2048 mchid=\"1900000001\",..." \
4  -H "Accept: application/json" 
5

应答参数

200 OK

 data  选填   array[object]

【会员卡模板列表】 符合条件的会员卡模板列表

属性

 total_count  必填   integer

【总数量】 总数量


 offset  必填   integer

【分页开始位置】 该次请求的分页开始位置,从0开始计数,例如offset=10,表示从第11条记录开始返回。


 limit  必填   integer

【分页大小,范围为1~20】 分页大小,范围为1~20

应答示例

200 OK

1{
2  "data" : [
3    {
4      "out_request_no" : "100002322019090134234sfdf",
5      "card_id" : "pbLatjvWOibDc5-TBnbUk1pD12o0",
6      "brand_id" : "1004",
7      "appid" : "wxea9c30890f48d5ae",
8      "card_type" : "NORMAL",
9      "card_title" : "测试卡",
10      "card_color" : "#FFFF00",
11      "card_picture_url" : "https://wxpaylogo.qpic.cn/wxpaylogo/xxxxx/0",
12      "code_mode" : "SYSTEM_ALLOCATE",
13      "code_type" : "BAR_CODE",
14      "code_jump_information" : {
15        "jump_appid" : "wxea9c30a90fs8d3fe",
16        "jump_path" : "/pages/code/code"
17      },
18      "benefits" : "会员折扣、专属价",
19      "notify_url" : "https://www.weixin.qq.com/wxpay/notify.php",
20      "need_pinned" : true,
21      "need_display_level" : true,
22      "init_level" : "白银会员",
23      "service_phone" : "010-8877xxxx",
24      "legal_agreement" : "商家需在 48 小时内发货,若商品存在质量问题,用户可在 7 天内申请退货。",
25      "valid_date_information" : {
26        "type" : "PERMANENT",
27        "available_begin_time" : "2020-05-20T13:29:35.120+08:00",
28        "available_end_time" : "2020-05-20T13:29:35.120+08:00",
29        "available_day_after_receive" : 30
30      },
31      "member_information" : {
32        "jump_appid" : "wxea9c30a90fs8d3fe",
33        "jump_path" : "/pages/points/points"
34      },
35      "points_information" : {
36        "jump_appid" : "wxea9c30a90fs8d3fe",
37        "jump_path" : "/pages/points/points"
38      },
39      "balance_information" : {
40        "jump_appid" : "wxea9c30a90fs8d3fe",
41        "jump_path" : "/pages/balance/balance"
42      },
43      "purchase_information" : {
44        "price" : 100,
45        "jump_appid" : "wxea9c30a90fs8d3fe",
46        "jump_path" : "/pages/purchase/purchase"
47      },
48      "user_information" : {
49        "common_field_list" : [
50          "USER_FORM_FLAG_SEX"
51        ],
52        "custom_field_list" : [
53          {
54            "type" : "CHECK_BOX",
55            "name" : "喜欢的运动",
56            "values" : [
57              "篮球"
58            ]
59          }
60        ]
61      },
62      "state" : "CARD_EFFECTIVE",
63      "create_time" : "2020-05-20T13:29:35.120+08:00",
64      "modify_time" : "2020-05-20T13:29:35.120+08:00"
65    }
66  ],
67  "total_count" : 20,
68  "offset" : 0,
69  "limit" : 20
70}
71

 

错误码

公共错误码

状态码

错误码

描述

解决方案

400

PARAM_ERROR

参数错误

请根据错误提示正确传入参数

400

INVALID_REQUEST

HTTP 请求不符合微信支付 APIv3 接口规则

请参阅 接口规则

401

SIGN_ERROR

验证不通过

请参阅 签名常见问题

500

SYSTEM_ERROR

系统异常,请稍后重试

请稍后重试

业务错误码

状态码

错误码

描述

解决方案

400

INVALID_REQUEST

商家未开通商家名片会员功能

请联系运营为该商家开通商家名片会员功能

 

反馈
咨询
目录
置顶