Skip to content

修改结算帐号

修改结算帐号API

请求参数类型描述
sub_mchidstring特约商户号
jsonobject声明请求的JSON数据结构
modify_modestring修改模式
account_typestring账户类型
account_bankstring开户银行
bank_address_codestring开户银行省市编码
bank_namestring开户银行全称(含支行)
bank_branch_idstring开户银行联行号
account_numberstring银行账号
account_namestring开户名称
headersobject声明请求的头参数
Wechatpay-Serialstring平台公钥ID/平台公钥证书序列号
php
$instance->v3->apply4sub->sub_merchants->_sub_mchid_->modifySettlement->postAsync([
  'sub_mchid' => '1900006491',
  'json' => [
    'modify_mode'       => 'MODIFY_MODE_ASYNC',
    'account_type'      => 'ACCOUNT_TYPE_BUSINESS',
    'account_bank'      => '工商银行',
    'bank_address_code' => '110000',
    'bank_name'         => '中国工商银行股份有限公司北京市分行营业部',
    'bank_branch_id'    => '402713354941',
    'account_number'    => 'ciphertext',
    'account_name'      => 'ciphertext',
  ],
  'headers' => [
    'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/apply4sub/sub_merchants/{sub_mchid}/modify-settlement')->postAsync([
  'sub_mchid' => '1900006491',
  'json' => [
    'modify_mode'       => 'MODIFY_MODE_ASYNC',
    'account_type'      => 'ACCOUNT_TYPE_BUSINESS',
    'account_bank'      => '工商银行',
    'bank_address_code' => '110000',
    'bank_name'         => '中国工商银行股份有限公司北京市分行营业部',
    'bank_branch_id'    => '402713354941',
    'account_number'    => 'ciphertext',
    'account_name'      => 'ciphertext',
  ],
  'headers' => [
    'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/apply4sub/sub_merchants/{sub_mchid}/modify-settlement']->postAsync([
  'sub_mchid' => '1900006491',
  'json' => [
    'modify_mode'       => 'MODIFY_MODE_ASYNC',
    'account_type'      => 'ACCOUNT_TYPE_BUSINESS',
    'account_bank'      => '工商银行',
    'bank_address_code' => '110000',
    'bank_name'         => '中国工商银行股份有限公司北京市分行营业部',
    'bank_branch_id'    => '402713354941',
    'account_number'    => 'ciphertext',
    'account_name'      => 'ciphertext',
  ],
  'headers' => [
    'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->apply4sub->sub_merchants->_sub_mchid_->modifySettlement->post([
  'sub_mchid' => '1900006491',
  'json' => [
    'modify_mode'       => 'MODIFY_MODE_ASYNC',
    'account_type'      => 'ACCOUNT_TYPE_BUSINESS',
    'account_bank'      => '工商银行',
    'bank_address_code' => '110000',
    'bank_name'         => '中国工商银行股份有限公司北京市分行营业部',
    'bank_branch_id'    => '402713354941',
    'account_number'    => 'ciphertext',
    'account_name'      => 'ciphertext',
  ],
  'headers' => [
    'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/apply4sub/sub_merchants/{sub_mchid}/modify-settlement')->post([
  'sub_mchid' => '1900006491',
  'json' => [
    'modify_mode'       => 'MODIFY_MODE_ASYNC',
    'account_type'      => 'ACCOUNT_TYPE_BUSINESS',
    'account_bank'      => '工商银行',
    'bank_address_code' => '110000',
    'bank_name'         => '中国工商银行股份有限公司北京市分行营业部',
    'bank_branch_id'    => '402713354941',
    'account_number'    => 'ciphertext',
    'account_name'      => 'ciphertext',
  ],
  'headers' => [
    'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/apply4sub/sub_merchants/{sub_mchid}/modify-settlement']->post([
  'sub_mchid' => '1900006491',
  'json' => [
    'modify_mode'       => 'MODIFY_MODE_ASYNC',
    'account_type'      => 'ACCOUNT_TYPE_BUSINESS',
    'account_bank'      => '工商银行',
    'bank_address_code' => '110000',
    'bank_name'         => '中国工商银行股份有限公司北京市分行营业部',
    'bank_branch_id'    => '402713354941',
    'account_number'    => 'ciphertext',
    'account_name'      => 'ciphertext',
  ],
  'headers' => [
    'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
application_nostring修改结算账户申请单号

参阅 官方文档 官方文档

Published on the GitHub by TheNorthMemory