Skip to content

查询订单待分账金额

商户可通过调用此接口查询订单剩余待分金额。

请求参数类型描述
xmlobject声明请求的XML数据结构
mch_idstring商户号
transaction_idstring微信订单号
sign_typestring签名类型
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_codestring返回状态码
return_msgstring返回信息
mch_idstring商户号
transaction_idstring微信订单号
unsplit_amountinteger订单剩余待分金额
nonce_strstring随机字符串
signstring签名

参阅 官方文档

Published on the GitHub by TheNorthMemory