获取支付有礼活动列表
商户根据一定过滤条件,查询已创建的支付有礼活动。
| 请求参数 | 类型 | 描述 |
|---|---|---|
| query | object | 声明请求的查询参数 |
| offset | integer | 分页页码 |
| limit | integer | 分页大小 |
| activity_name | string | 活动名称 |
| activity_status | string | 活动状态CREATE_ACT_STATUS | ONGOING_ACT_STATUS | TERMINATE_ACT_STATUS | STOP_ACT_STATUS | OVER_TIME_ACT_STATUS | CREATE_ACT_FAILED 枚举值之一 |
| award_type | string | 奖品类型BUSIFAVOR 枚举值 |
php
$instance->v3->marketing->paygiftactivity->activities->getAsync([
'query' => [
'offset' => 0,
'limit' => 0,
'activity_name' => '',
'activity_status' => 'CREATE_ACT_STATUS',
'award_type' => 'BUSIFAVOR',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$instance->chain('v3/marketing/paygiftactivity/activities')->getAsync([
'query' => [
'offset' => 0,
'limit' => 0,
'activity_name' => '',
'activity_status' => 'CREATE_ACT_STATUS',
'award_type' => 'BUSIFAVOR',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$instance['v3/marketing/paygiftactivity/activities']->getAsync([
'query' => [
'offset' => 0,
'limit' => 0,
'activity_name' => '',
'activity_status' => 'CREATE_ACT_STATUS',
'award_type' => 'BUSIFAVOR',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$response = $instance->v3->marketing->paygiftactivity->activities->get([
'query' => [
'offset' => 0,
'limit' => 0,
'activity_name' => '',
'activity_status' => 'CREATE_ACT_STATUS',
'award_type' => 'BUSIFAVOR',
],
]);
print_r(json_decode((string) $response->getBody(), true));php
$response = $instance->chain('v3/marketing/paygiftactivity/activities')->get([
'query' => [
'offset' => 0,
'limit' => 0,
'activity_name' => '',
'activity_status' => 'CREATE_ACT_STATUS',
'award_type' => 'BUSIFAVOR',
],
]);
print_r(json_decode((string) $response->getBody(), true));php
$response = $instance['v3/marketing/paygiftactivity/activities']->get([
'query' => [
'offset' => 0,
'limit' => 0,
'activity_name' => '',
'activity_status' => 'CREATE_ACT_STATUS',
'award_type' => 'BUSIFAVOR',
],
]);
print_r(json_decode((string) $response->getBody(), true));| 返回字典 | 类型 | 描述 |
|---|---|---|
| offset | integer | 分页页码 |
| limit | integer | 分页大小 |
| total_count | integer | 总数 |