Skip to content

管理品牌门店

删除品牌门店

根据品牌门店ID,删除品牌门店。

请求参数类型描述
store_idstring品牌门店ID
jsonobject声明请求的JSON数据结构
brand_idstring品牌ID
php
$instance->v3->brand->partner->store->brandstores->_store_id_->deleteAsync([
  'store_id' => '20488000',
  'json' => [
    'brand_id' => '123456789',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r($response->getStatusCode() === 204);
})
->wait();
php
$instance->chain('v3/brand/partner/store/brandstores/{store_id}')->deleteAsync([
  'store_id' => '20488000',
  'json' => [
    'brand_id' => '123456789',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r($response->getStatusCode() === 204);
})
->wait();
php
$instance['v3/brand/partner/store/brandstores/{store_id}']->deleteAsync([
  'store_id' => '20488000',
  'json' => [
    'brand_id' => '123456789',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r($response->getStatusCode() === 204);
})
->wait();
php
$response = $instance->v3->brand->partner->store->brandstores->_store_id_->delete([
  'store_id' => '20488000',
  'json' => [
    'brand_id' => '123456789',
  ],
]);
print_r($response->getStatusCode() === 204);
php
$response = $instance->chain('v3/brand/partner/store/brandstores/{store_id}')->delete([
  'store_id' => '20488000',
  'json' => [
    'brand_id' => '123456789',
  ],
]);
print_r($response->getStatusCode() === 204);
php
$response = $instance['v3/brand/partner/store/brandstores/{store_id}']->delete([
  'store_id' => '20488000',
  'json' => [
    'brand_id' => '123456789',
  ],
]);
print_r($response->getStatusCode() === 204);
返回字典类型描述
空字符串(无返回内容)

参阅 官方文档

更新品牌门店

根据品牌门店ID,修改品牌门店资料。

请求参数类型描述
store_idstring品牌门店ID
jsonobject声明请求的JSON数据结构
store_basicsobject门店基础信息
store_reference_idstring商家门店编号
branch_namestring门店名称
store_addressobject门店地址信息
address_codestring门店省市编码
address_detailstring门店地址
address_complementsstring门店地址辅助描述
longitudestring门店经度
latitudestring门店纬度
store_businessobject门店经营信息
service_phonestring门店服务电话
business_hoursstring门店经营时间
php
$instance->v3->brand->partner->store->brandstores->_store_id_->patchAsync([
  'store_id' => '20488000',
  'json' => [
    'store_basics'   => [
      'store_reference_id' => 'MDL001',
      'branch_name'        => '海岸城店',
    ],
    'store_address'  => [
      'address_code'        => '440305',
      'address_detail'      => '深南大道10000号腾讯大厦1楼',
      'address_complements' => '地铁A口右侧100米',
      'longitude'           => '112.63484',
      'latitude'            => '37.75464',
    ],
    'store_business' => [
      'service_phone'  => '0755-86013388',
      'business_hours' => '周一至周五 09:00-20:00|周六至周日 10:00-22:00',
    ],
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/brand/partner/store/brandstores/{store_id}')->patchAsync([
  'store_id' => '20488000',
  'json' => [
    'store_basics'   => [
      'store_reference_id' => 'MDL001',
      'branch_name'        => '海岸城店',
    ],
    'store_address'  => [
      'address_code'        => '440305',
      'address_detail'      => '深南大道10000号腾讯大厦1楼',
      'address_complements' => '地铁A口右侧100米',
      'longitude'           => '112.63484',
      'latitude'            => '37.75464',
    ],
    'store_business' => [
      'service_phone'  => '0755-86013388',
      'business_hours' => '周一至周五 09:00-20:00|周六至周日 10:00-22:00',
    ],
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/brand/partner/store/brandstores/{store_id}']->patchAsync([
  'store_id' => '20488000',
  'json' => [
    'store_basics'   => [
      'store_reference_id' => 'MDL001',
      'branch_name'        => '海岸城店',
    ],
    'store_address'  => [
      'address_code'        => '440305',
      'address_detail'      => '深南大道10000号腾讯大厦1楼',
      'address_complements' => '地铁A口右侧100米',
      'longitude'           => '112.63484',
      'latitude'            => '37.75464',
    ],
    'store_business' => [
      'service_phone'  => '0755-86013388',
      'business_hours' => '周一至周五 09:00-20:00|周六至周日 10:00-22:00',
    ],
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->brand->partner->store->brandstores->_store_id_->patch([
  'store_id' => '20488000',
  'json' => [
    'store_basics'   => [
      'store_reference_id' => 'MDL001',
      'branch_name'        => '海岸城店',
    ],
    'store_address'  => [
      'address_code'        => '440305',
      'address_detail'      => '深南大道10000号腾讯大厦1楼',
      'address_complements' => '地铁A口右侧100米',
      'longitude'           => '112.63484',
      'latitude'            => '37.75464',
    ],
    'store_business' => [
      'service_phone'  => '0755-86013388',
      'business_hours' => '周一至周五 09:00-20:00|周六至周日 10:00-22:00',
    ],
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/brand/partner/store/brandstores/{store_id}')->patch([
  'store_id' => '20488000',
  'json' => [
    'store_basics'   => [
      'store_reference_id' => 'MDL001',
      'branch_name'        => '海岸城店',
    ],
    'store_address'  => [
      'address_code'        => '440305',
      'address_detail'      => '深南大道10000号腾讯大厦1楼',
      'address_complements' => '地铁A口右侧100米',
      'longitude'           => '112.63484',
      'latitude'            => '37.75464',
    ],
    'store_business' => [
      'service_phone'  => '0755-86013388',
      'business_hours' => '周一至周五 09:00-20:00|周六至周日 10:00-22:00',
    ],
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/brand/partner/store/brandstores/{store_id}']->patch([
  'store_id' => '20488000',
  'json' => [
    'store_basics'   => [
      'store_reference_id' => 'MDL001',
      'branch_name'        => '海岸城店',
    ],
    'store_address'  => [
      'address_code'        => '440305',
      'address_detail'      => '深南大道10000号腾讯大厦1楼',
      'address_complements' => '地铁A口右侧100米',
      'longitude'           => '112.63484',
      'latitude'            => '37.75464',
    ],
    'store_business' => [
      'service_phone'  => '0755-86013388',
      'business_hours' => '周一至周五 09:00-20:00|周六至周日 10:00-22:00',
    ],
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
brand_idstring品牌ID
store_idstring品牌门店ID
store_statestring门店状态
OPEN | CREATING | CLOSED 枚举值之一
review_reject_reasonstring审核失败原因
store_basicsobject门店基础信息
store_reference_idstring商家门店编号
branch_namestring门店名称
store_addressobject门店地址信息
address_codestring门店省市编码
address_detailstring门店地址
address_complementsstring门店地址辅助描述
longitudestring门店经度
latitudestring门店纬度
store_businessobject门店经营信息
service_phonestring门店服务电话
business_hoursstring门店经营时间
store_recipientobject[]门店收款信息
mchidstring门店收款商户号
company_namestring门店收款主体
recipient_statestring收款绑定状态
CONFIRMED | ADMIN_REJECTED | CONFIRMING | TIMEOUT_REJECTED 枚举值之一

参阅 官方文档

查询品牌门店

根据品牌门店ID,查询品牌门店。

请求参数类型描述
store_idstring品牌门店ID
queryobject声明请求的查询参数
brand_idstring品牌ID
php
$instance->v3->brand->partner->store->brandstores->_store_id_->getAsync([
  'store_id' => '20488000',
  'query' => [
    'brand_id' => '123456789',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/brand/partner/store/brandstores/{store_id}')->getAsync([
  'store_id' => '20488000',
  'query' => [
    'brand_id' => '123456789',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/brand/partner/store/brandstores/{store_id}']->getAsync([
  'store_id' => '20488000',
  'query' => [
    'brand_id' => '123456789',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->brand->partner->store->brandstores->_store_id_->get([
  'store_id' => '20488000',
  'query' => [
    'brand_id' => '123456789',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/brand/partner/store/brandstores/{store_id}')->get([
  'store_id' => '20488000',
  'query' => [
    'brand_id' => '123456789',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/brand/partner/store/brandstores/{store_id}']->get([
  'store_id' => '20488000',
  'query' => [
    'brand_id' => '123456789',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
brand_idstring品牌ID
store_idstring品牌门店ID
store_statestring门店状态
OPEN | CREATING | CLOSED 枚举值之一
review_reject_reasonstring审核失败原因
store_basicsobject门店基础信息
store_reference_idstring商家门店编号
branch_namestring门店名称
store_addressobject门店地址信息
address_codestring门店省市编码
address_detailstring门店地址
address_complementsstring门店地址辅助描述
longitudestring门店经度
latitudestring门店纬度
store_businessobject门店经营信息
service_phonestring门店服务电话
business_hoursstring门店经营时间
store_recipientobject[]门店收款信息
mchidstring门店收款商户号
company_namestring门店收款主体
recipient_statestring收款绑定状态
CONFIRMED | ADMIN_REJECTED | CONFIRMING | TIMEOUT_REJECTED 枚举值之一

参阅 官方文档

Published on the GitHub by TheNorthMemory