查询会员卡模板列表

更新时间:2025.06.22

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

接口说明

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

请求方式:【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开始


limit  选填 integer

【分页大小】 分页大小

请求示例

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

【分页页码】 分页页码


limit  必填 integer

【分页大小】 分页大小

应答示例

200 OK

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

 

错误码

公共错误码

状态码

错误码

描述

解决方案

400

PARAM_ERROR

参数错误

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

400

INVALID_REQUEST

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

请参阅 接口规则

401

SIGN_ERROR

验证不通过

请参阅 签名常见问题

500

SYSTEM_ERROR

系统异常,请稍后重试

请稍后重试

 

更多技术问题
技术咨询
反馈
咨询
目录
置顶