查询最大分账比例
服务商可以查询子商户设置的允许服务商分账的最大比例。
请求参数 | 类型 | 描述 |
---|---|---|
xml | object | 声明请求的XML 数据结构 |
mch_id | string | 商户号 |
sub_mch_id | string | 子商户号 |
brand_mch_id | string | 品牌主商户号 |
sign_type | string | 签名类型 |
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_code | string | 返回状态码 |
return_msg | string | 返回信息 |
mch_id | string | 商户号 |
sub_mch_id | string | 子商户号 |
brand_mch_id | string | 品牌主商户号 |
transaction_id | string | 微信订单号 |
max_ratio | integer | 最大分账比例 |
nonce_str | string | 随机字符串 |
sign | string | 签名 |
参阅 官方文档