添加小店活动门店
该接口为服务商或商户给零售小店活动添加门店专用接口。 使用对象:品牌的品牌主商户号或品牌服务商。
请求参数 | 类型 | 描述 |
---|---|---|
brand_id | string | 品牌ID |
json | object | 声明请求的JSON 数据结构 |
out_request_no | string | 请求业务单据 |
add_time | string | 添加时间 |
stores | object[] | 待新增的小店活动门店列表 |
store_code | string | 门店编码 |
store_name | string | 门店名称 |
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_time | string | 添加时间 |
failed_stores | object[] | 添加失败的小店活动门店列表 |
store_code | string | 门店编码 |
store_name | string | 门店名称 |
参阅 官方文档
删除小店活动门店
该接口为服务商或商户给零售小店活动删除门店专用接口。 使用对象:品牌的品牌主商户号或品牌服务商。
请求参数 | 类型 | 描述 |
---|---|---|
brand_id | string | 品牌ID |
json | object | 声明请求的JSON 数据结构 |
out_request_no | string | 请求业务单据 |
delete_time | string | 删除时间 |
stores | object[] | 待删除的小店活动门店列表 |
store_code | string | 门店编码 |
store_name | string | 门店名称 |
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_time | string | 删除时间 |
failed_stores | object[] | 删除失败的小店活动门店列表 |
store_code | string | 门店编码 |
store_name | string | 门店名称 |
参阅 官方文档
查询小店活动门店列表
该接口为服务商或商户给零售小店活动查询门店列表专用接口。 使用对象:品牌的品牌主商户号或品牌服务商。
请求参数 | 类型 | 描述 |
---|---|---|
brand_id | string | 品牌ID |
query | object | 声明请求的查询参数 |
offset | number | 分页页码 |
limit | number | 分页大小 |
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_count | number | 小店活动门店总数 |
data | object[] | 小店活动门店集合 |
store_code | string | 门店编码 |
store_name | string | 门店名称 |
offset | number | 分页页码 |
limit | number | 分页大小 |
参阅 官方文档