查询微信代扣订单状态
该接口仅提供微信代扣订单的查询,商户可以通过该接口主动查询微信代扣订单状态,完成下一步的业务逻辑。 官方文档
js
wxpay.v2.transit.queryorder.post({
appid,
mch_id,
transaction_id,
nonce_str,
sign_type,
})
.then(
({
data: {
return_code,
return_msg,
appid,
mch_id,
nonce_str,
sign,
result_code,
err_code,
err_code_des,
device_info,
openid,
is_subscribe,
trade_type,
trade_state,
bank_type,
total_fee,
fee_type,
cash_fee,
cash_fee_type,
settlement_total_fee,
coupon_fee,
coupon_count,
coupon_type_$n,
coupon_id_$n,
coupon_fee_$n,
transaction_id,
out_trade_no,
attach,
time_end,
trade_state_desc,
},
}) => ({
return_code,
return_msg,
appid,
mch_id,
nonce_str,
sign,
result_code,
err_code,
err_code_des,
device_info,
openid,
is_subscribe,
trade_type,
trade_state,
bank_type,
total_fee,
fee_type,
cash_fee,
cash_fee_type,
settlement_total_fee,
coupon_fee,
coupon_count,
coupon_type_$n,
coupon_id_$n,
coupon_fee_$n,
transaction_id,
out_trade_no,
attach,
time_end,
trade_state_desc,
})
)