用户状态查询
在停车场、高速、加油等场景下,商户需获取用户车主服务状态/需要关联车主服务。本接口,会查询用户是否开通、授权、有欠费或黑名单用户情况,并将对应的用户状态进行返回。 官方文档
js
wxpay.v2.vehicle.partnerpay.querystate.post({
appid,
sub_appid,
mch_id,
sub_mch_id,
nonce_str,
sign_type,
trade_scene,
jump_scene,
openid,
version,
})
.then(
({
data: {
return_code,
return_msg,
appid,
sub_appid,
mch_id,
sub_mch_id,
nonce_str,
sign,
result_code,
err_code,
err_code_des,
user_state,
openid,
deduct_mode,
sub_openid,
path,
plate_number_info,
plate_number,
channel_type,
common_use_flag,
},
}) => ({
return_code,
return_msg,
appid,
sub_appid,
mch_id,
sub_mch_id,
nonce_str,
sign,
result_code,
err_code,
err_code_des,
user_state,
openid,
deduct_mode,
sub_openid,
path,
plate_number_info,
plate_number,
channel_type,
common_use_flag,
})
)