Skip to content

按区域查询品牌加价购活动

指定服务商可通过该接口报名加价购活动、查询某个区域内的加价购活动列表、锁定加价活动购资格以及解锁加价购活动资格。

请求参数类型描述
queryobject声明请求的查询参数
city_idstring活动所属城市的ID
offsetnumber分页页码
limitnumber最大返回的活动数
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_countnumber小店活动门店总数
dataobject[]小店活动门店集合
activity_idstring活动ID
brand_idstring品牌ID
creator_merchant_idstring活动创建方商户号
activity_infoobject活动信息
activity_namestring活动名称
apply_start_timestring活动报名开始时间
apply_end_timestring活动报名结束时间
activity_start_timestring活动开始时间
activity_end_timestring活动结束时间
activity_descriptionstring活动描述
goods_informationobject活动商品信息
goods_idstring商品ID
goods_namestring商品名称
goods_picture_urlstring商品图片URL
rule_informationobject活动规则
store_subsidystring购买单件商品,补贴给门店的金额
service_provider_subsidystring购买单件商品,补贴给服务商的佣金
store_subsidy_quotastring活动门店补贴商品数上限
user_subsidy_quotastring单用户享受加价购优惠次数上限
areasobject[]活动区域列表
provincestring省名称
citystring市名称
districtstring区名称
offsetnumber分页页码
limitnumber分页大小

参阅 官方文档

Published on the GitHub by TheNorthMemory