Skip to content

申请修改特约商户结算规则

从业机构可调用该接口帮助特约商户进行结算规则ID的修改。

请求参数类型描述
jsonobject声明请求的JSON数据结构
acquiring_bank_idstring从业机构号
channel_idstring渠道商户号
sub_mchidstring从业机构特约商户号
settle_rule_idinteger结算规则id
php
$instance->v3->merchantSettlement->merchantSettleRuleApplications->postAsync([
  'json' => [
    'acquiring_bank_id' => '1356485',
    'channel_id'        => '20001111',
    'sub_mchid'         => '1346578',
    'settle_rule_id'    => 760,
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/merchant-settlement/merchant-settle-rule-applications')->postAsync([
  'json' => [
    'acquiring_bank_id' => '1356485',
    'channel_id'        => '20001111',
    'sub_mchid'         => '1346578',
    'settle_rule_id'    => 760,
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/merchant-settlement/merchant-settle-rule-applications']->postAsync([
  'json' => [
    'acquiring_bank_id' => '1356485',
    'channel_id'        => '20001111',
    'sub_mchid'         => '1346578',
    'settle_rule_id'    => 760,
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->merchantSettlement->merchantSettleRuleApplications->post([
  'json' => [
    'acquiring_bank_id' => '1356485',
    'channel_id'        => '20001111',
    'sub_mchid'         => '1346578',
    'settle_rule_id'    => 760,
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/merchant-settlement/merchant-settle-rule-applications')->post([
  'json' => [
    'acquiring_bank_id' => '1356485',
    'channel_id'        => '20001111',
    'sub_mchid'         => '1346578',
    'settle_rule_id'    => 760,
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/merchant-settlement/merchant-settle-rule-applications']->post([
  'json' => [
    'acquiring_bank_id' => '1356485',
    'channel_id'        => '20001111',
    'sub_mchid'         => '1346578',
    'settle_rule_id'    => 760,
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
application_idstring申请单编号
application_process_infostring申请单处理信息
application_statestring申请单状态
update_timestring最后更新时间
acquiring_bank_idstring从业机构号
channel_idstring渠道商户号
sub_mchidstring从业机构特约商户号
settle_rule_idinteger结算规则id

参阅 官方文档

Published on the GitHub by TheNorthMemory