修改结算帐号
修改结算帐号API
请求参数 | 类型 | 描述 |
---|---|---|
sub_mchid | string | 特约商户号 |
json | object | 声明请求的JSON 数据结构 |
modify_mode | string | 修改模式 |
account_type | string | 账户类型 |
account_bank | string | 开户银行 |
bank_address_code | string | 开户银行省市编码 |
bank_name | string | 开户银行全称(含支行) |
bank_branch_id | string | 开户银行联行号 |
account_number | string | 银行账号 |
account_name | string | 开户名称 |
headers | object | 声明请求的头参数 |
Wechatpay-Serial | string | 平台公钥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_no | string | 修改结算账户申请单号 |