Skip to content

修改结算银行卡

通过此接口可以修改小微商户的入驻资料,例如银行卡号、入驻人姓名等。

🚫

本接口服务已于 2023.03.13 (北京时间)下线,文档仅做留存参考。

请求参数类型描述
securitytrue声明加载商户API证书
xmlobject声明请求的XML数据结构
versionstring接口版本号
1.0 枚举值
mch_idstring商户号
sign_typestring签名类型
HMAC-SHA256 枚举值
sub_mch_idstring小微商户号
account_numberstring银行卡号
bank_namestring开户银行全称(含支行)
account_bankstring开户银行
bank_address_codestring开户银行省市编码
cert_snstring平台证书序列号
php
$instance->v2->applyment->micro->modifyarchives->postAsync([
  'security' => true,
  'xml' => [
    'version'           => '1.0',
    'mch_id'            => '1230000109',
    'sign_type'         => 'HMAC-SHA256',
    'sub_mch_id'        => '1230000109',
    'account_number'    => '',
    'bank_name'         => '深圳农村商业银行xxx支行',
    'account_bank'      => '中国银行',
    'bank_address_code' => '110000',
    'cert_sn'           => '5430056GFRJK54YTFF653GDFH09HFGHF',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
})
->wait();
php
$instance->chain('v2/applyment/micro/modifyarchives')->postAsync([
  'security' => true,
  'xml' => [
    'version'           => '1.0',
    'mch_id'            => '1230000109',
    'sign_type'         => 'HMAC-SHA256',
    'sub_mch_id'        => '1230000109',
    'account_number'    => '',
    'bank_name'         => '深圳农村商业银行xxx支行',
    'account_bank'      => '中国银行',
    'bank_address_code' => '110000',
    'cert_sn'           => '5430056GFRJK54YTFF653GDFH09HFGHF',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
})
->wait();
php
$instance['v2/applyment/micro/modifyarchives']->postAsync([
  'security' => true,
  'xml' => [
    'version'           => '1.0',
    'mch_id'            => '1230000109',
    'sign_type'         => 'HMAC-SHA256',
    'sub_mch_id'        => '1230000109',
    'account_number'    => '',
    'bank_name'         => '深圳农村商业银行xxx支行',
    'account_bank'      => '中国银行',
    'bank_address_code' => '110000',
    'cert_sn'           => '5430056GFRJK54YTFF653GDFH09HFGHF',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
})
->wait();
php
$response = $instance->v2->applyment->micro->modifyarchives->post([
  'security' => true,
  'xml' => [
    'version'           => '1.0',
    'mch_id'            => '1230000109',
    'sign_type'         => 'HMAC-SHA256',
    'sub_mch_id'        => '1230000109',
    'account_number'    => '',
    'bank_name'         => '深圳农村商业银行xxx支行',
    'account_bank'      => '中国银行',
    'bank_address_code' => '110000',
    'cert_sn'           => '5430056GFRJK54YTFF653GDFH09HFGHF',
  ],
]);
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
php
$response = $instance->chain('v2/applyment/micro/modifyarchives')->post([
  'security' => true,
  'xml' => [
    'version'           => '1.0',
    'mch_id'            => '1230000109',
    'sign_type'         => 'HMAC-SHA256',
    'sub_mch_id'        => '1230000109',
    'account_number'    => '',
    'bank_name'         => '深圳农村商业银行xxx支行',
    'account_bank'      => '中国银行',
    'bank_address_code' => '110000',
    'cert_sn'           => '5430056GFRJK54YTFF653GDFH09HFGHF',
  ],
]);
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
php
$response = $instance['v2/applyment/micro/modifyarchives']->post([
  'security' => true,
  'xml' => [
    'version'           => '1.0',
    'mch_id'            => '1230000109',
    'sign_type'         => 'HMAC-SHA256',
    'sub_mch_id'        => '1230000109',
    'account_number'    => '',
    'bank_name'         => '深圳农村商业银行xxx支行',
    'account_bank'      => '中国银行',
    'bank_address_code' => '110000',
    'cert_sn'           => '5430056GFRJK54YTFF653GDFH09HFGHF',
  ],
]);
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
返回字典类型描述
return_codestring返回状态码
SUCCESS | FAIL 枚举值之一
return_msgstring返回信息
nonce_strstring随机字符串
signstring签名
result_codestring业务结果
SUCCESS | FAIL 枚举值之一
err_codestring错误代码
err_code_desstring错误代码描述
mch_idstring商户号
sub_mch_idstring小微商户号

参阅 官方文档

Published on the GitHub by TheNorthMemory