Skip to content

请求分账

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

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

查询分账结果

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

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

Released under the MIT License. (SITEMAP)