Skip to content

查询最大分账比例

服务商可以查询子商户设置的允许服务商分账的最大比例。

请求参数类型描述
xmlobject声明请求的XML数据结构
mch_idstring商户号
sub_mch_idstring子商户号
brand_mch_idstring品牌主商户号
sign_typestring签名类型
HMAC-SHA256 枚举值
php
$instance->v2->pay->profitsharingmerchantratioquery->postAsync([
  'xml' => [
    'mch_id'       => '1900000100',
    'sub_mch_id'   => '1900000109',
    'brand_mch_id' => '1900000108',
    '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/profitsharingmerchantratioquery')->postAsync([
  'xml' => [
    'mch_id'       => '1900000100',
    'sub_mch_id'   => '1900000109',
    'brand_mch_id' => '1900000108',
    '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/profitsharingmerchantratioquery']->postAsync([
  'xml' => [
    'mch_id'       => '1900000100',
    'sub_mch_id'   => '1900000109',
    'brand_mch_id' => '1900000108',
    '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->profitsharingmerchantratioquery->post([
  'xml' => [
    'mch_id'       => '1900000100',
    'sub_mch_id'   => '1900000109',
    'brand_mch_id' => '1900000108',
    'sign_type'    => 'HMAC-SHA256',
  ],
]);
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
php
$response = $instance->chain('v2/pay/profitsharingmerchantratioquery')->post([
  'xml' => [
    'mch_id'       => '1900000100',
    'sub_mch_id'   => '1900000109',
    'brand_mch_id' => '1900000108',
    'sign_type'    => 'HMAC-SHA256',
  ],
]);
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
php
$response = $instance['v2/pay/profitsharingmerchantratioquery']->post([
  'xml' => [
    'mch_id'       => '1900000100',
    'sub_mch_id'   => '1900000109',
    'brand_mch_id' => '1900000108',
    'sign_type'    => 'HMAC-SHA256',
  ],
]);
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
返回字典类型描述
return_codestring返回状态码
SUCCESS | FAIL 枚举值之一
return_msgstring返回信息
mch_idstring商户号
sub_mch_idstring子商户号
brand_mch_idstring品牌主商户号
max_ratiointeger最大分账比例
nonce_strstring随机字符串
signstring签名

参阅 官方文档

Published on the GitHub by TheNorthMemory