Skip to content

创建门店

连锁品牌方案,是微信支付为「连锁经营品牌商家」定制的行业解决方案。方案基于“品牌-门店”的商业关系,向连锁经营品牌商家提供进件、交易场景配置、流量开放、资金管理、数据管理、营销管理等场景的专项解决方案。服务商/品牌方在门店在创建时,需要经过门店方授权确认,确认后方可建立“品牌-门店”关系。

请求参数类型描述
jsonobject声明请求的JSON数据结构
sub_mchidstring子商户号
store_basicsobject门店基础信息
store_reference_idstring商家门店编号
brand_namestring品牌名称
store_namestring门店名称
branch_namestring分店名称
store_addressobject门店地址信息
address_codestring门店省市编码
address_detailstring门店地址
address_complementsstring门店地址辅助描述
longitudestring门店经度
latitudestring门店纬度
store_businessobject门店经营信息
service_phonestring门店服务电话
business_hoursstring门店经营时间
store_recipientobject[]门店收款信息
mchidstring门店收款商户号
company_namestring门店收款主体
php
$instance->v3->merchantStore->stores->postAsync([
  'json' => [
    'sub_mchid'       => '1900000109',
    'store_basics'    => [
      'store_reference_id' => '',
      'brand_name'         => '',
      'store_name'         => '',
      'branch_name'        => '',
    ],
    'store_address'   => [
      'address_code'        => '440305',
      'address_detail'      => '',
      'address_complements' => '',
      'longitude'           => '',
      'latitude'            => '',
    ],
    'store_business'  => [
      'service_phone'  => '0755-86013388',
      'business_hours' => '周一至周五 09:00-20:00|周六至周日 10:00-22:00',
    ],
    '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')->postAsync([
  'json' => [
    'sub_mchid'       => '1900000109',
    'store_basics'    => [
      'store_reference_id' => '',
      'brand_name'         => '',
      'store_name'         => '',
      'branch_name'        => '',
    ],
    'store_address'   => [
      'address_code'        => '440305',
      'address_detail'      => '',
      'address_complements' => '',
      'longitude'           => '',
      'latitude'            => '',
    ],
    'store_business'  => [
      'service_phone'  => '0755-86013388',
      'business_hours' => '周一至周五 09:00-20:00|周六至周日 10:00-22:00',
    ],
    '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']->postAsync([
  'json' => [
    'sub_mchid'       => '1900000109',
    'store_basics'    => [
      'store_reference_id' => '',
      'brand_name'         => '',
      'store_name'         => '',
      'branch_name'        => '',
    ],
    'store_address'   => [
      'address_code'        => '440305',
      'address_detail'      => '',
      'address_complements' => '',
      'longitude'           => '',
      'latitude'            => '',
    ],
    'store_business'  => [
      'service_phone'  => '0755-86013388',
      'business_hours' => '周一至周五 09:00-20:00|周六至周日 10:00-22:00',
    ],
    '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->post([
  'json' => [
    'sub_mchid'       => '1900000109',
    'store_basics'    => [
      'store_reference_id' => '',
      'brand_name'         => '',
      'store_name'         => '',
      'branch_name'        => '',
    ],
    'store_address'   => [
      'address_code'        => '440305',
      'address_detail'      => '',
      'address_complements' => '',
      'longitude'           => '',
      'latitude'            => '',
    ],
    'store_business'  => [
      'service_phone'  => '0755-86013388',
      'business_hours' => '周一至周五 09:00-20:00|周六至周日 10:00-22:00',
    ],
    'store_recipient' => [[
      'mchid'        => '',
      'company_name' => '',
    ],],
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/merchant-store/stores')->post([
  'json' => [
    'sub_mchid'       => '1900000109',
    'store_basics'    => [
      'store_reference_id' => '',
      'brand_name'         => '',
      'store_name'         => '',
      'branch_name'        => '',
    ],
    'store_address'   => [
      'address_code'        => '440305',
      'address_detail'      => '',
      'address_complements' => '',
      'longitude'           => '',
      'latitude'            => '',
    ],
    'store_business'  => [
      'service_phone'  => '0755-86013388',
      'business_hours' => '周一至周五 09:00-20:00|周六至周日 10:00-22:00',
    ],
    'store_recipient' => [[
      'mchid'        => '',
      'company_name' => '',
    ],],
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/merchant-store/stores']->post([
  'json' => [
    'sub_mchid'       => '1900000109',
    'store_basics'    => [
      'store_reference_id' => '',
      'brand_name'         => '',
      'store_name'         => '',
      'branch_name'        => '',
    ],
    'store_address'   => [
      'address_code'        => '440305',
      'address_detail'      => '',
      'address_complements' => '',
      'longitude'           => '',
      'latitude'            => '',
    ],
    'store_business'  => [
      'service_phone'  => '0755-86013388',
      'business_hours' => '周一至周五 09:00-20:00|周六至周日 10:00-22:00',
    ],
    'store_recipient' => [[
      'mchid'        => '',
      'company_name' => '',
    ],],
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
store_idinteger微信支付商户门店ID

参阅 官方文档

Published on the GitHub by TheNorthMemory