查询分账结果
发起分账请求后,可调用此接口查询分账结果
| 请求参数 | 类型 | 描述 |
|---|---|---|
| out_order_no | string | 商户分账单号 |
| query | object | 声明请求的查询参数 |
| sub_mchid | string | 子商户号 |
| transaction_id | string | 微信订单号 |
php
$instance->v3->profitsharing->orders->_out_order_no_->getAsync([
'out_order_no' => 'P20150806125346',
'query' => [
'sub_mchid' => '1900000109',
'transaction_id' => '4208450740201411110007820472',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$instance->chain('v3/profitsharing/orders/{out_order_no}')->getAsync([
'out_order_no' => 'P20150806125346',
'query' => [
'sub_mchid' => '1900000109',
'transaction_id' => '4208450740201411110007820472',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$instance['v3/profitsharing/orders/{out_order_no}']->getAsync([
'out_order_no' => 'P20150806125346',
'query' => [
'sub_mchid' => '1900000109',
'transaction_id' => '4208450740201411110007820472',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$response = $instance->v3->profitsharing->orders->_out_order_no_->get([
'out_order_no' => 'P20150806125346',
'query' => [
'sub_mchid' => '1900000109',
'transaction_id' => '4208450740201411110007820472',
],
]);
print_r(json_decode((string) $response->getBody(), true));php
$response = $instance->chain('v3/profitsharing/orders/{out_order_no}')->get([
'out_order_no' => 'P20150806125346',
'query' => [
'sub_mchid' => '1900000109',
'transaction_id' => '4208450740201411110007820472',
],
]);
print_r(json_decode((string) $response->getBody(), true));php
$response = $instance['v3/profitsharing/orders/{out_order_no}']->get([
'out_order_no' => 'P20150806125346',
'query' => [
'sub_mchid' => '1900000109',
'transaction_id' => '4208450740201411110007820472',
],
]);
print_r(json_decode((string) $response->getBody(), true));| 返回字典 | 类型 | 描述 |
|---|---|---|
| sub_mchid | string | 子商户号 |
| transaction_id | string | 微信订单号 |
| out_order_no | string | 商户分账单号 |
| order_id | string | 微信分账单号 |
| state | string | 分账单状态PENDING | SUCCESS | CLOSED 枚举值之一 |
| receivers | object[] | 分账接收方列表 |
| amount | integer | 分账金额 |
| description | string | 分账描述 |
| type | string | 分账接收方类型MERCHANT_ID | PERSONAL_OPENID | PERSONAL_SUB_OPENID 枚举值之一 |
| account | string | 分账接收方帐号 |
| result | string | 分账结果ACCOUNT_ABNORMAL | NO_RELATION | RECEIVER_HIGH_RISK | RECEIVER_REAL_NAME_NOT_VERIFIED | NO_AUTH | RECEIVER_RECEIPT_LIMIT | PAYER_ACCOUNT_ABNORMAL | INVALID_REQUEST 枚举值之一 |
| fail_reason | string | 分账失败原因 |
| detail_id | string | 分账明细单号 |
| create_time | string | 分账创建时间 |
| finish_time | string | 分账完成时间 |