Retrieve a list of campaigns in a project.
The campaigns are returned sorted by creation date, with the most recent campaigns appearing first.
When you get a list of campaigns, you can optionally specify query parameters to customize the amount of campaigns returned per call using limit, which page of campaigns to return using page, sort the campaigns using the order query parameter and filter the results by the campaign_type.
This method will return an error when trying to return a limit of more than 100 campaigns.
The access token received from the authorization server in the OAuth 2.0 flow.
Limits the number of objects to be returned. The limit can range between 1 and 100 items. If no limit is set, it returns 10 items.
1 <= x <= 100Which page of results to return. The lowest value is 1.
1 <= x <= 100This attribute allows filtering by campaign type.
PROMOTION, GIFT_VOUCHERS, REFERRAL_PROGRAM, DISCOUNT_COUPONS, LOYALTY_PROGRAM Includes an expanded categories object in the response. If the Areas and Stores Enterprise feature is enabled, add access_settings_assignments to return assigned areas and stores.
category, access_settings_assignments Sorts the results by the status of the campaign.
Status of the campaign. Allowed values:
DONE,
IN_PROGRESS,
DRAFT,
FAILED
MODIFYING
DONE, IN_PROGRESS, FAILED, DRAFT, MODIFYING Sorts the results that are or are not referral campaigns. Lists campaigns that have or do not have referral codes.
Sorts the results using one of the filtering options, where the dash - preceding a sorting option means sorting in a descending order.
created_at, -created_at, updated_at, -updated_at Filters the results by various campaign properties.
Filter by areas and stores IDs to return campaigns that are assigned to areas, stores, and all stores in an area.
Returns a dictionary with a campaign property that contains an array of campaigns. The maximum number of campaigns returned is determined by the limit query parameter. Each entry in the array is a separate campaign object. If no more campaigns are available, the resulting array on a given page will be empty.
Schema model for GET v1/campaigns.
The type of the object represented by JSON. This object stores information about campaigns in a dictionary.
Identifies the name of the attribute that contains the array of campaign objects.
Contains array of campaign objects.
Total number of campaigns.