按区域查询品牌加价购活动
指定服务商可通过该接口报名加价购活动、查询某个区域内的加价购活动列表、锁定加价活动购资格以及解锁加价购活动资格。
请求参数 | 类型 | 描述 |
---|---|---|
query | object | 声明请求的查询参数 |
city_id | string | 活动所属城市的ID |
offset | number | 分页页码 |
limit | number | 最大返回的活动数 |
php
$instance->v3->marketing->goodsSubsidyActivity->activities->getAsync([
'query' => [
'city_id' => '',
'offset' => 0,
'limit' => 0,
],
])
->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/activities')->getAsync([
'query' => [
'city_id' => '',
'offset' => 0,
'limit' => 0,
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/marketing/goods-subsidy-activity/activities']->getAsync([
'query' => [
'city_id' => '',
'offset' => 0,
'limit' => 0,
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->marketing->goodsSubsidyActivity->activities->get([
'query' => [
'city_id' => '',
'offset' => 0,
'limit' => 0,
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/marketing/goods-subsidy-activity/activities')->get([
'query' => [
'city_id' => '',
'offset' => 0,
'limit' => 0,
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/marketing/goods-subsidy-activity/activities']->get([
'query' => [
'city_id' => '',
'offset' => 0,
'limit' => 0,
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
total_count | number | 小店活动门店总数 |
data | object[] | 小店活动门店集合 |
activity_id | string | 活动ID |
brand_id | string | 品牌ID |
creator_merchant_id | string | 活动创建方商户号 |
activity_info | object | 活动信息 |
activity_name | string | 活动名称 |
apply_start_time | string | 活动报名开始时间 |
apply_end_time | string | 活动报名结束时间 |
activity_start_time | string | 活动开始时间 |
activity_end_time | string | 活动结束时间 |
activity_description | string | 活动描述 |
goods_information | object | 活动商品信息 |
goods_id | string | 商品ID |
goods_name | string | 商品名称 |
goods_picture_url | string | 商品图片URL |
rule_information | object | 活动规则 |
store_subsidy | string | 购买单件商品,补贴给门店的金额 |
service_provider_subsidy | string | 购买单件商品,补贴给服务商的佣金 |
store_subsidy_quota | string | 活动门店补贴商品数上限 |
user_subsidy_quota | string | 单用户享受加价购优惠次数上限 |
areas | object[] | 活动区域列表 |
province | string | 省名称 |
city | string | 市名称 |
district | string | 区名称 |
offset | number | 分页页码 |
limit | number | 分页大小 |
参阅 官方文档