垫付退款回补(平台收付通)
提交垫付退款后,发起退款方可通过该接口发起垫付退款资金回补,把退款垫付的资金从二级商户回补到电商平台账户。 官方文档 官方文档
js
wxpay.v3.ecommerce.refunds._refund_id_.returnAdvance.post({
sub_mchid,
}, { refund_id })
.then(
({
data: {
refund_id,
advance_return_id,
return_amount,
payer_mchid,
payer_account,
payee_mchid,
payee_account,
result,
success_time,
},
}) => ({
refund_id,
advance_return_id,
return_amount,
payer_mchid,
payer_account,
payee_mchid,
payee_account,
result,
success_time,
})
)
查询垫付回补结果(平台收付通)
提交垫付退款回补后,通过调用该接口查询垫付回补结果。 官方文档
js
wxpay.v3.ecommerce.refunds._refund_id_.returnAdvance.get({
refund_id,
params,
})
.then(
({
data: {
refund_id,
advance_return_id,
return_amount,
payer_mchid,
payer_account,
payee_mchid,
payee_account,
result,
success_time,
},
}) => ({
refund_id,
advance_return_id,
return_amount,
payer_mchid,
payer_account,
payee_mchid,
payee_account,
result,
success_time,
})
)