Tools Tags
directory
Tools Tags
Member Card Area (2)
8 Managing membership cards
8.1 Pulling member information (points query) interface
Interface description
Support developers to query member information based on card_id and Code, including activation information, points information, balance and other information.
Interface call request description
HTTP请求方式: POSTURL:https://api.weixin.qq.com/card/membercard/userinfo/get?access_token=TOKEN
Parameter description
| ##POST data | is | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Call interface credentials Required | Description ## Code | is the code value received by the user from |
| Parameter name code, 0 is normal | errmsg |
|---|---|
| nickname | |
| ##bonus | Points information |
| BALANCE | balance information |
| Sex | ## user gender |
| # User_info | |
| # Custom_field_list | The membership card membership information category set by developers, such as level. |
| name For example, level value, etc. | |
| Current user membership card status, NORMAL Normal EXPIRE Expired GIFTING Transfer in progress GIFT_SUCC Transfer successful GIFT_TIMEOUT Transfer timeout DELETE Deleted, UNAVAILABLE invalid | |
| 8.2 Change membership card information interface | |
| Supports changing membership card surface information and card information Voucher attribute information. | Interface call request description |
| ##Parameter | |
| is | Json data |
is
Call interface credentialsPOST data
HTTP请求方式: POSTURL:https://api.weixin.qq.com/card/update?access_token=TOKEN
Support modification fields:
base_info field:
| Parameter name | Type 128) | notice Verify cards and coupons. | Usage reminder, the maximum number of characters is 16 Chinese characters. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ##description | is | string (3072) | cannot be used in conjunction with other offers Enjoy | Instructions for use. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ##location_id_list No . | use_all_locations | No | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| #true | Supports all stores, fill in the coupon store Updated following merchant store updates | center_title | The name of the jump button in the middle of the membership card is, which is recommended for use. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| custom_url_name ##Customize the name of the jump entrance. | custom_url The redirected URL. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ##promotion_url_name | No | string(16) - | Product introduction. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| promotion_url The address link to the external link. | # String (18) | . | The prompt displayed on the right side of the marketing entrance. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Code code display type, “CODE_TYPE_TEXT” text “CODE_TYPE_BARCODE” one-dimensional code | ”CODE_TYPE_QRCODE two-dimensional code | "CODE_TYPE_ONLY_QRCODE" | Only the QR code is displayed "CODE_TYPE_ONLY_BARCODE"Only the 1D code is displayed | "CODE_TYPE_NONE" No Show any pattern | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ain_share | 否 | # Bool | False | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| #can_give_friend | bool No No Time stamp, does not support filling in 2 | Begin_timestamp | No | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ## End_timestamp | No | unsigned into , indicating the end time. The end time can only be extended later. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| # Parameter name | whether to pilit #background_pic_url | No - ##is | string(3072) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ##bonus_rules | is | string(3072) | Points rules. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ##balance_rules | is | string(3072) | ##prerogative | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| string(3072) | - Privilege description. No When true, the card will support one-click card opening. For details, see | One-click card opening | .This option is mutually exclusive with activate_url. No When set to true, the user's membership card will be automatically set to activation. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Automatic activation | .||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| activate_url | No | string(128) | Activate link | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| custom_field1 . | ##custom_field3 | No | FIELD_NAME_TYPE_LEVEL Level | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| FIELD_NAME_TYPE_STAMP Stamp | FIELD_NAME_TYPE_DISCOUNT Discount FIELD_NAME_TY PE_ACHIEVEMEN ACHIEVEMENT | FIELD_NAME_TYPE_MILEAGE | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| url | custom_cell1 ## Bonus_rule | 否 | JSON Structure | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| int | #The upper limit of points obtained in a single timeCost_bonus_unit | No | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ## every 5 points. | ##reduce_money | #least_money_to_use_bonus No | #No#int | Discount, the discount benefit enjoyed by this membership card {
"card_id": "ph_gmt7cUVrlRk8swPwx7aDyF-pg",
"member_card": {
"background_pic_url": "https://mmbiz.qlogo.cn/mmbiz/0?wx_fmt=jpeg",
"base_info": {
"logo_url": "http:\/\/www.supadmin.cn\/uploads\/allimg\/120216\/1_120216214725_1.jpg",
"color": "Color010",
"notice": "使用时向服务员出示此券",
"service_phone": "020-88888888",
"description": "不可与其他优惠同享\n如需团购券发票,请在消费时向商户提出\n店内均可使用,仅限堂食\n餐前不可打包,餐后未吃完,可打包\n本团购券不限人数,建议2人使用,超过建议人数须另收酱料费5元/位\n本单谢绝自带酒水饮料",
"location_id_list": [
123,
12321,
345345
]
},
"bonus_cleared": "aaaaaaaaaaaaaa",
"bonus_rules": "aaaaaaaaaaaaaa",
"prerogative": "",
"auto_activate": true,
//也可以填写wx_activate"activate_url":""
}
} | ##Parameter name | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ##errcode to be taken. | errmsg | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| send_check | Whether this update needs to be reviewed, true means it is required, false means it is not needed. |
| Parameters ##Is it necessary ##POST data Use messages to configure coupons http请求方式: POSThttps://api.weixin.qq.com/card/update?access_token=TOKEN
{
"card_id": "ph_gmt7cUVrlRk8swPwx7aDyF-pg",
"member_card": {
"modify_msg_operation": {
"card_cell": {
"end_time": 1452724561,
"card_id": "p1Pj9jr90_SQRaVqYI239Ka1erkI"
}
}
}
}Field description
8.4 Set up payment as a member8.4.1 Add payment as a member rule interfaceMerchants who have opened WeChat payment can set it. After WeChat payment, a card collection message is automatically sent to the user, and the user can receive the membership card by clicking on the message.
Interface Description Supports merchants to set payment-as-membership rules, and can issue membership cards based on time periods and amount ranges. Interface call request description { "errcode":0, "errmsg":"ok" }Parameter description
Field Name Description
Field Name Note
is ’ ’ ’ s ’ s ’ s with ’s ’ s ’ s ‐ ‐ ‐ ‐ ‐ POST dataHTTP请求方式: POST URL:https://api.weixin.qq.com/card/paygiftmembercard/get?access_token=TOKEN Field description ##Field name . |
|---|















![Getting Started with PHP Practical Development: PHP Quick Creation [Small Business Forum]](https://img.php.cn/upload/course/000/000/035/5d27fb58823dc974.jpg)









