Skip to content

暂停门店营业

将门店状态从“营业中”变更为“停业中”,暂停营业后,门店相关信息将对用户隐藏。

请求参数类型描述
store_idstring品牌门店ID
jsonobject声明请求的JSON数据结构
brand_idstring品牌ID
php
$instance->v3->brand->partner->store->brandstores->_store_id_->close->postAsync([
  'store_id' => '20488000',
  'json' => [
    '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}/close')->postAsync([
  'store_id' => '20488000',
  'json' => [
    '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}/close']->postAsync([
  'store_id' => '20488000',
  'json' => [
    '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_->close->post([
  'store_id' => '20488000',
  'json' => [
    'brand_id' => '123456789',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/brand/partner/store/brandstores/{store_id}/close')->post([
  'store_id' => '20488000',
  'json' => [
    'brand_id' => '123456789',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/brand/partner/store/brandstores/{store_id}/close']->post([
  'store_id' => '20488000',
  'json' => [
    'brand_id' => '123456789',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
brand_idstring品牌ID
store_idstring品牌门店ID
store_statestring门店状态
OPEN | CREATING | CLOSED 枚举值之一

参阅 官方文档

Published on the GitHub by TheNorthMemory