List Promotion Stacks
This method enables you to list promotion stacks irrespective of the campaign they are associated with.
You can use filters in the query parameters to specify the stacks to be returned in the response.
Advanced filters for fetching promotion stacks
| Filters | Examples |
|---|---|
| Created Before | - [created_at][before]=2021-12-30T13:52:18.227Z<br />- [filters][created_at][conditions][$before][0]=2021-12-30T13:52:18.227Z |
| Created After | - [created_at][after]=2021-12-30T13:52:18.227Z<br />- [filters][created_at][conditions][$after][0]=2021-12-30T13:52:18.227Z |
| Updated Before | - [updated_at][before]=2021-12-30T13:52:18.227Z<br />- [filters][updated_at][conditions][$before][0]=2021-12-30T13:52:18.227Z |
| Updated After | - [updated_at][after]=2021-12-30T13:52:18.227Z<br />- [filters][updated_at][conditions][$after][0]=2021-12-30T13:52:18.227Z |
Query parameters
Limits the number of objects to be returned. The limit can range between 1 and 100 items.
Which page of results to return. The lowest value is 1.
Sorts the results using one of the filtering options, where the dash - preceding a sorting option means sorting in a descending order.
A filter on the list based on the object created_at field. The value is a dictionary with the following options: before, after. A date value must be presented in ISO 8601 format (2016-11-16T14:14:31Z or 2016-11-16). An example: [created_at][before]=2017-09-08T13:52:18.227Z
{
"before": "2021-12-22T10:13:06.487Z",
"after": "2021-12-22T10:13:06.487Z"
}A filter on the list based on the object updated_at field. The value is a dictionary with the following options: before, after. A date value must be presented in ISO 8601 format (2016-11-16T14:14:31Z or 2016-11-16). An example: [updated_at][before]=2017-09-08T13:52:18.227Z
{
"before": "2021-12-22T10:13:06.487Z",
"after": "2021-12-22T10:13:06.487Z"
}Response
Returns a dictionary with a data property that contains an array of promotion stacks across all your campaigns.
Example response
{
"data": [
{
"categories": [
{
"created_at": "2022-07-14T10:45:13.156Z",
"updated_at": "2022-08-16T10:52:08.094Z"
}
]
}
]
}