完结分账
不需要进行分账的订单,可直接调用本接口将订单的金额全部解冻给分账方商户
请求参数 | 类型 | 描述 |
---|---|---|
json | object | 声明请求的JSON 数据结构 |
sub_mchid | string | 子商户号 |
transaction_id | string | 微信订单号 |
out_order_no | string | 商户分帐单号 |
description | string | 分账描述 |
php
$instance->v3->brand->profitsharing->finishOrder->postAsync([
'json' => [
'sub_mchid' => '1900000109',
'transaction_id' => '4208450740201411110007820472',
'out_order_no' => 'P20150806125346',
'description' => '分账完结',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/brand/profitsharing/finish-order')->postAsync([
'json' => [
'sub_mchid' => '1900000109',
'transaction_id' => '4208450740201411110007820472',
'out_order_no' => 'P20150806125346',
'description' => '分账完结',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/brand/profitsharing/finish-order']->postAsync([
'json' => [
'sub_mchid' => '1900000109',
'transaction_id' => '4208450740201411110007820472',
'out_order_no' => 'P20150806125346',
'description' => '分账完结',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->brand->profitsharing->finishOrder->post([
'json' => [
'sub_mchid' => '1900000109',
'transaction_id' => '4208450740201411110007820472',
'out_order_no' => 'P20150806125346',
'description' => '分账完结',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/brand/profitsharing/finish-order')->post([
'json' => [
'sub_mchid' => '1900000109',
'transaction_id' => '4208450740201411110007820472',
'out_order_no' => 'P20150806125346',
'description' => '分账完结',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/brand/profitsharing/finish-order']->post([
'json' => [
'sub_mchid' => '1900000109',
'transaction_id' => '4208450740201411110007820472',
'out_order_no' => 'P20150806125346',
'description' => '分账完结',
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
sub_mchid | string | 子商户号 |
transaction_id | string | 微信订单号 |
out_order_no | string | 商户分帐单号 |
order_id | string | 微信分帐单号 |
参阅 官方文档