查询周周惠活动列表
查询周周惠活动列表
请求参数 | 类型 | 描述 |
---|---|---|
query | object | 声明请求的查询参数 |
limit | integer | 最大资源条数 |
offset | integer | 请求资源起始位置 |
applying_merchant_id | integer | 报名商户号 |
store_id | integer | 报名商户门店号 |
activity_area_code | integer | 活动投放区域编码 |
activity_scene | string | 投放场景 |
php
$instance->v3->marketing->weeklyDiscount->activities->getAsync([
'query' => [
'limit' => 5,
'offset' => 10,
'applying_merchant_id' => 10000098,
'store_id' => 1111111,
'activity_area_code' => 110000,
'activity_scene' => 'SCAN_CODE_TO_ORDER',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/marketing/weekly-discount/activities')->getAsync([
'query' => [
'limit' => 5,
'offset' => 10,
'applying_merchant_id' => 10000098,
'store_id' => 1111111,
'activity_area_code' => 110000,
'activity_scene' => 'SCAN_CODE_TO_ORDER',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/marketing/weekly-discount/activities']->getAsync([
'query' => [
'limit' => 5,
'offset' => 10,
'applying_merchant_id' => 10000098,
'store_id' => 1111111,
'activity_area_code' => 110000,
'activity_scene' => 'SCAN_CODE_TO_ORDER',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->marketing->weeklyDiscount->activities->get([
'query' => [
'limit' => 5,
'offset' => 10,
'applying_merchant_id' => 10000098,
'store_id' => 1111111,
'activity_area_code' => 110000,
'activity_scene' => 'SCAN_CODE_TO_ORDER',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/marketing/weekly-discount/activities')->get([
'query' => [
'limit' => 5,
'offset' => 10,
'applying_merchant_id' => 10000098,
'store_id' => 1111111,
'activity_area_code' => 110000,
'activity_scene' => 'SCAN_CODE_TO_ORDER',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/marketing/weekly-discount/activities']->get([
'query' => [
'limit' => 5,
'offset' => 10,
'applying_merchant_id' => 10000098,
'store_id' => 1111111,
'activity_area_code' => 110000,
'activity_scene' => 'SCAN_CODE_TO_ORDER',
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
data | object[] | 周周惠活动详情 |
activity_id | string | 活动ID |
activity_name | string | 活动名称 |
activity_scene | string | 活动投放场景 |
activity_area_code | string[] | 活动投放区域编码 |
activity_limit_pay | string | 活动指定付款方式 |
activity_transaction_minimum_amount | integer | 活动优惠门槛 |
activity_coupon_amount | integer | 活动优惠金额 |
activity_available_week | string[] | 活动可使用周期 |
activity_max_amount | integer | 活动预算 |
activity_max_amount_per_day | integer | 活动单天预算 |
activity_available_begin_time | string | 活动开始时间 |
activity_available_end_time | string | 活动结束时间 |
activity_state | string | 活动状态 |
activity_remark | string | 活动备注 |
activity_logo | string | 活动logo |
offset | integer | 请求资源起始位置 |
limit | integer | 最大资源条数 |
total_count | integer | 资源总条数 |
参阅 官方文档