查询用户会员卡信息
通过此接口可查询指定用户会员卡的信息,如会员积分、储值余额、开卡信息等 官方文档
js
wxpay.v3.marketing.membercardOpen.cards._card_id_.codes._code_.get({
card_id,
code,
})
.then(
({
data: {
card_id,
code,
openid,
membership_number,
level,
nickname,
head_image_url,
background_picture_url,
balance,
user_card_status,
user_information,
bonus_value,
},
}) => ({
card_id,
code,
openid,
membership_number,
level,
nickname,
head_image_url,
background_picture_url,
balance,
user_card_status,
user_information,
bonus_value,
})
)
修改用户会员卡信息
通过此接口可更新指定用户的会员卡背景图、会员卡号、等级、储值余额 官方文档
js
wxpay.v3.marketing.membercardOpen.cards._card_id_.codes._code_.patch({
membership_number,
background_picture_url,
level,
out_request_no,
balance_information,
}, { card_id, code, })
.then(({ status }) => status === 204)