Campaigns collection
List campaigns
scopes:
- admin:discounts
- read:discounts
Authorizations
Path Parameters
An id that uniquely identifies the account.
9Query Parameters
A limit on the number of objects to be returned. Limit can range between 1 and 100 items, and the default is 10 items.
1 <= x <= 100cursor for use in pagination. starting_after is an object ID
that defines your place in the list. For instance, if you make
a list request and receive 100 objects, end the result contains
paging_token=pt1, your subsequent call can include
starting_after=pt1 in order to fetch the next page of the list.
Indicate the state of the campaign to return.
active, scheduled and completed are based on the campaign's
rules that are not deleted: active when the earliest
requirement.purchase_from is in the past and the latest
requirement.purchase_to is in the future, scheduled when the
earliest requirement.purchase_from is in the future, and
completed when the latest requirement.purchase_to is in the past.
Campaigns without rules are only returned by all, public,
private and deleted.
all, public, private, deleted, active, scheduled, completed Only campaigns where name, description or campaign_id
contains this text (case-insensitive)
Additional fields to include for each campaign
statistics Response
Campaign collection
An UUID that uniquely identifies the resource
The date-time when the resource was created
The ID of the user/client created the resource
"1c92f7e1-2897-4d46-bdcc-c127a914fb4e"
The date-time when the resource was last updated
The ID of the user/client created the resource
"1c92f7e1-2897-4d46-bdcc-c127a914fb4e"
255The campaign is private and will be excluded from public rules when filtered by campaign_id
Additional metadata about the campaign
Only included when include=statistics. Aggregated over the campaign's rules that are not deleted.