通过授权协议号查询与用户授权记录(合作伙伴模式)
通过authorization_code,商户查询与用户授权关系 官方文档 官方文档
js
wxpay.v3.payscore.partner.permissions.authorizationCode._authorization_code_.get({
authorization_code,
params,
})
.then(
({
data: {
service_id,
appid,
mchid,
openid,
authorization_code,
authorization_state,
notify_url,
cancel_authorization_time,
authorization_success_time,
sub_mchid,
sub_appid,
sub_openid,
user_risk_level,
risk_level_version,
},
}) => ({
service_id,
appid,
mchid,
openid,
authorization_code,
authorization_state,
notify_url,
cancel_authorization_time,
authorization_success_time,
sub_mchid,
sub_appid,
sub_openid,
user_risk_level,
risk_level_version,
})
)