查询订单待分账金额
商户可通过调用此接口查询订单剩余待分金额。
请求参数 | 类型 | 描述 |
---|---|---|
xml | object | 声明请求的XML 数据结构 |
mch_id | string | 商户号 |
transaction_id | string | 微信订单号 |
sign_type | string | 签名类型 |
php
$instance->v2->pay->profitsharingorderamountquery->postAsync([
'xml' => [
'mch_id' => '1900000100',
'transaction_id' => '4208450740201411110007820472',
'sign_type' => 'HMAC-SHA256',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
})
->wait();
php
$instance->chain('v2/pay/profitsharingorderamountquery')->postAsync([
'xml' => [
'mch_id' => '1900000100',
'transaction_id' => '4208450740201411110007820472',
'sign_type' => 'HMAC-SHA256',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
})
->wait();
php
$instance['v2/pay/profitsharingorderamountquery']->postAsync([
'xml' => [
'mch_id' => '1900000100',
'transaction_id' => '4208450740201411110007820472',
'sign_type' => 'HMAC-SHA256',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
})
->wait();
php
$response = $instance->v2->pay->profitsharingorderamountquery->post([
'xml' => [
'mch_id' => '1900000100',
'transaction_id' => '4208450740201411110007820472',
'sign_type' => 'HMAC-SHA256',
],
]);
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
php
$response = $instance->chain('v2/pay/profitsharingorderamountquery')->post([
'xml' => [
'mch_id' => '1900000100',
'transaction_id' => '4208450740201411110007820472',
'sign_type' => 'HMAC-SHA256',
],
]);
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
php
$response = $instance['v2/pay/profitsharingorderamountquery']->post([
'xml' => [
'mch_id' => '1900000100',
'transaction_id' => '4208450740201411110007820472',
'sign_type' => 'HMAC-SHA256',
],
]);
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
返回字典 | 类型 | 描述 |
---|---|---|
return_code | string | 返回状态码 |
return_msg | string | 返回信息 |
mch_id | string | 商户号 |
transaction_id | string | 微信订单号 |
unsplit_amount | integer | 订单剩余待分金额 |
nonce_str | string | 随机字符串 |
sign | string | 签名 |
参阅 官方文档