Skip to content

绑定门店收款信息

请求参数类型描述
store_idinteger微信支付商户门店ID
jsonobject声明请求的JSON数据结构
sub_mchidstring子商户号
store_recipientobject[]门店收款信息
mchidstring门店收款商户号
company_namestring门店收款主体
php
$instance->v3->merchantStore->stores->_store_id_->recipients->bind->postAsync([
  'store_id' => '20488000',
  'json' => [
    'sub_mchid' => '1900000109',
    'store_recipient' => [[
      'mchid' => '',
      'company_name' => '',
    ],],
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/merchant-store/stores/{store_id}/recipients/bind')->postAsync([
  'store_id' => '20488000',
  'json' => [
    'sub_mchid' => '1900000109',
    'store_recipient' => [[
      'mchid' => '',
      'company_name' => '',
    ],],
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/merchant-store/stores/{store_id}/recipients/bind']->postAsync([
  'store_id' => '20488000',
  'json' => [
    'sub_mchid' => '1900000109',
    'store_recipient' => [[
      'mchid' => '',
      'company_name' => '',
    ],],
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->merchantStore->stores->_store_id_->recipients->bind->post([
  'store_id' => '20488000',
  'json' => [
    'sub_mchid' => '1900000109',
    'store_recipient' => [[
      'mchid' => '',
      'company_name' => '',
    ],],
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/merchant-store/stores/{store_id}/recipients/bind')->post([
  'store_id' => '20488000',
  'json' => [
    'sub_mchid' => '1900000109',
    'store_recipient' => [[
      'mchid' => '',
      'company_name' => '',
    ],],
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/merchant-store/stores/{store_id}/recipients/bind']->post([
  'store_id' => '20488000',
  'json' => [
    'sub_mchid' => '1900000109',
    'store_recipient' => [[
      'mchid' => '',
      'company_name' => '',
    ],],
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
failed_store_recipientobject[]
mchidstring门店收款商户号
failed_reasonstring绑定当前收款信息失败的原因

参阅 。

Published on the GitHub by TheNorthMemory