Campaigns collection
List campaigns
scopes:
- admin:discounts
- read:discounts
Authorizations
Bearer authentication (token authentication) should be used for accessing the API.
Use Get Token to get an access token for client credentials. Pass the token in the request header:
where the access_token is JSON Web Tokens (JWT).
Path Parameters
Query Parameters
cursor 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 Response
Campaign collection
The campaign is private and will be excluded from public rules when filtered by campaign_id