Skip to content

请求分账(平台收付通)

微信订单支付成功后,由电商平台发起分账请求,将结算后的资金分给分账接收方。 官方文档

js
wxpay
.
v3
.
ecommerce
.
profitsharing
.
orders
.
post
({
appid
,
sub_mchid
,
transaction_id
,
out_order_no
,
receivers
,
finish
,
}) .
then
(
({
data
: {
sub_mchid
,
transaction_id
,
out_order_no
,
order_id
,
}, }) => ({
sub_mchid
,
transaction_id
,
out_order_no
,
order_id
,
}) )

查询分账结果(平台收付通)

发起分账请求后,可调用此接口查询分账结果 ;发起分账完结请求后,可调用此接口查询分账完结的结果。 官方文档

js
wxpay
.
v3
.
ecommerce
.
profitsharing
.
orders
.
get
({
params
,
headers
,
}) .
then
(
({
data
: {
sub_mchid
,
transaction_id
,
out_order_no
,
order_id
,
status
,
receivers
,
close_reason
,
finish_amount
,
finish_description
,
}, }) => ({
sub_mchid
,
transaction_id
,
out_order_no
,
order_id
,
status
,
receivers
,
close_reason
,
finish_amount
,
finish_description
,
}) )

Released under the MIT License. (SITEMAP)