Search for coupons
Use this endpoint to search for coupons based on filter conditions.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Headers
The x-site-context
header is a JSON object that contains information about the source you wish to pull from. The mandatory account
is the 24 character identifier found in Copilot. The channel
(Sales channel ID), stage
(environment name), and date
attributes can be used to further narrow the scope of your data source.
Body
A sample request to search for promotions or coupons.
The number of records to skip before returning records. For example, when offset is 20 and limit is 10, this endpoint returns records from 21 to 30.
x > 0
The maximum number of records per page.
1 < x < 100
The criteria to sort the results. Use the format {sort order}{field name}, where -
refers to a descending order and +
refers to an ascending order.
+updatedAt
, +title
, +startDate
, +endDate
, +level
, -updatedAt
, -title
, -startDate
, -endDate
, -level
Response
The pagination data.
The promotion details.
Was this page helpful?