Skip to content

添加小店活动门店

该接口为服务商或商户给零售小店活动添加门店专用接口。 使用对象:品牌的品牌主商户号或品牌服务商。

请求参数类型描述
brand_idstring品牌ID
jsonobject声明请求的JSON数据结构
out_request_nostring请求业务单据
add_timestring添加时间
storesobject[]待新增的小店活动门店列表
store_codestring门店编码
store_namestring门店名称
php
$instance->v3->marketing->goodsSubsidyActivity->retailStoreAct->_brand_id_->stores->postAsync([
  'brand_id' => '1001',
  'json' => [
    'out_request_no' => '1002600620019090123143254436',
    'add_time'       => '2015-05-20T13:29:35+08:00',
    'stores'         => [[
      'store_code' => 'abc_001',
      'store_name' => '幸福小店',
    ],],
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/marketing/goods-subsidy-activity/retail-store-act/{brand_id}/stores')->postAsync([
  'brand_id' => '1001',
  'json' => [
    'out_request_no' => '1002600620019090123143254436',
    'add_time'       => '2015-05-20T13:29:35+08:00',
    'stores'         => [[
      'store_code' => 'abc_001',
      'store_name' => '幸福小店',
    ],],
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/marketing/goods-subsidy-activity/retail-store-act/{brand_id}/stores']->postAsync([
  'brand_id' => '1001',
  'json' => [
    'out_request_no' => '1002600620019090123143254436',
    'add_time'       => '2015-05-20T13:29:35+08:00',
    'stores'         => [[
      'store_code' => 'abc_001',
      'store_name' => '幸福小店',
    ],],
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->marketing->goodsSubsidyActivity->retailStoreAct->_brand_id_->stores->post([
  'brand_id' => '1001',
  'json' => [
    'out_request_no' => '1002600620019090123143254436',
    'add_time'       => '2015-05-20T13:29:35+08:00',
    'stores'         => [[
      'store_code' => 'abc_001',
      'store_name' => '幸福小店',
    ],],
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/marketing/goods-subsidy-activity/retail-store-act/{brand_id}/stores')->post([
  'brand_id' => '1001',
  'json' => [
    'out_request_no' => '1002600620019090123143254436',
    'add_time'       => '2015-05-20T13:29:35+08:00',
    'stores'         => [[
      'store_code' => 'abc_001',
      'store_name' => '幸福小店',
    ],],
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/marketing/goods-subsidy-activity/retail-store-act/{brand_id}/stores']->post([
  'brand_id' => '1001',
  'json' => [
    'out_request_no' => '1002600620019090123143254436',
    'add_time'       => '2015-05-20T13:29:35+08:00',
    'stores'         => [[
      'store_code' => 'abc_001',
      'store_name' => '幸福小店',
    ],],
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
add_timestring添加时间
failed_storesobject[]添加失败的小店活动门店列表
store_codestring门店编码
store_namestring门店名称

参阅 官方文档

删除小店活动门店

该接口为服务商或商户给零售小店活动删除门店专用接口。 使用对象:品牌的品牌主商户号或品牌服务商。

请求参数类型描述
brand_idstring品牌ID
jsonobject声明请求的JSON数据结构
out_request_nostring请求业务单据
delete_timestring删除时间
storesobject[]待删除的小店活动门店列表
store_codestring门店编码
store_namestring门店名称
php
$instance->v3->marketing->goodsSubsidyActivity->retailStoreAct->_brand_id_->stores->deleteAsync([
  'brand_id' => '1001',
  'json' => [
    'out_request_no' => '1002600620019090123143254436',
    'delete_time'    => '2015-05-20T13:29:35+08:00',
    'stores'         => [[
      'store_code' => 'abc_001',
      'store_name' => '幸福小店',
    ],],
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/marketing/goods-subsidy-activity/retail-store-act/{brand_id}/stores')->deleteAsync([
  'brand_id' => '1001',
  'json' => [
    'out_request_no' => '1002600620019090123143254436',
    'delete_time'    => '2015-05-20T13:29:35+08:00',
    'stores'         => [[
      'store_code' => 'abc_001',
      'store_name' => '幸福小店',
    ],],
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/marketing/goods-subsidy-activity/retail-store-act/{brand_id}/stores']->deleteAsync([
  'brand_id' => '1001',
  'json' => [
    'out_request_no' => '1002600620019090123143254436',
    'delete_time'    => '2015-05-20T13:29:35+08:00',
    'stores'         => [[
      'store_code' => 'abc_001',
      'store_name' => '幸福小店',
    ],],
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->marketing->goodsSubsidyActivity->retailStoreAct->_brand_id_->stores->delete([
  'brand_id' => '1001',
  'json' => [
    'out_request_no' => '1002600620019090123143254436',
    'delete_time'    => '2015-05-20T13:29:35+08:00',
    'stores'         => [[
      'store_code' => 'abc_001',
      'store_name' => '幸福小店',
    ],],
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/marketing/goods-subsidy-activity/retail-store-act/{brand_id}/stores')->delete([
  'brand_id' => '1001',
  'json' => [
    'out_request_no' => '1002600620019090123143254436',
    'delete_time'    => '2015-05-20T13:29:35+08:00',
    'stores'         => [[
      'store_code' => 'abc_001',
      'store_name' => '幸福小店',
    ],],
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/marketing/goods-subsidy-activity/retail-store-act/{brand_id}/stores']->delete([
  'brand_id' => '1001',
  'json' => [
    'out_request_no' => '1002600620019090123143254436',
    'delete_time'    => '2015-05-20T13:29:35+08:00',
    'stores'         => [[
      'store_code' => 'abc_001',
      'store_name' => '幸福小店',
    ],],
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
delete_timestring删除时间
failed_storesobject[]删除失败的小店活动门店列表
store_codestring门店编码
store_namestring门店名称

参阅 官方文档

查询小店活动门店列表

该接口为服务商或商户给零售小店活动查询门店列表专用接口。 使用对象:品牌的品牌主商户号或品牌服务商。

请求参数类型描述
brand_idstring品牌ID
queryobject声明请求的查询参数
offsetnumber分页页码
limitnumber分页大小
php
$instance->v3->marketing->goodsSubsidyActivity->retailStoreAct->_brand_id_->stores->getAsync([
  'brand_id' => '1001',
  'query' => [
    'offset' => 0,
    'limit'  => 10,
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/marketing/goods-subsidy-activity/retail-store-act/{brand_id}/stores')->getAsync([
  'brand_id' => '1001',
  'query' => [
    'offset' => 0,
    'limit'  => 10,
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/marketing/goods-subsidy-activity/retail-store-act/{brand_id}/stores']->getAsync([
  'brand_id' => '1001',
  'query' => [
    'offset' => 0,
    'limit'  => 10,
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->marketing->goodsSubsidyActivity->retailStoreAct->_brand_id_->stores->get([
  'brand_id' => '1001',
  'query' => [
    'offset' => 0,
    'limit'  => 10,
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/marketing/goods-subsidy-activity/retail-store-act/{brand_id}/stores')->get([
  'brand_id' => '1001',
  'query' => [
    'offset' => 0,
    'limit'  => 10,
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/marketing/goods-subsidy-activity/retail-store-act/{brand_id}/stores']->get([
  'brand_id' => '1001',
  'query' => [
    'offset' => 0,
    'limit'  => 10,
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
total_countnumber小店活动门店总数
dataobject[]小店活动门店集合
store_codestring门店编码
store_namestring门店名称
offsetnumber分页页码
limitnumber分页大小

参阅 官方文档

Published on the GitHub by TheNorthMemory