完结分账(平台收付通)
不需要进行分账的订单,可直接调用本接口将订单的金额全部解冻给二级商户。 官方文档
js
wxpay.v3.ecommerce.profitsharing.finishOrder.post({
sub_mchid,
transaction_id,
out_order_no,
description,
})
.then(
({
data: {
sub_mchid,
transaction_id,
out_order_no,
order_id,
},
}) => ({
sub_mchid,
transaction_id,
out_order_no,
order_id,
})
)