Get a list of all coupon codes
Retrieves a paginated list of all coupon codes.
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.
"{\"date\": \"2023-01-01T00:00:00.000Z\", \"channel\": 12, \"account\": \"1234abcd5678efgh9ijklmno\",\"stage\":\"production\"}"
Query Parameters
Records the number returned by the endpoint.
1 <= x <= 100
10
Record pointer to get items after that record
"641cf986ca5b2c3180787e09"
Filter records by the user ID.
"user0001"
Filter records by the promotion ID.
"641cf986ca5b2c3180787e09"
Filter records by coupon code.
"SUMMER"
Filter records by status.
ACTIVE
, INACTIVE
, REDEEMED
"ACTIVE"
Filter records from a specific start date.
"2023-03-24T01:14:50.967Z"
Filter records until a specific start date.
"2023-03-24T01:14:50.967Z"
Filter the records since a specific end date
"2023-03-24T01:14:50.967Z"
Filter records until a specific end date.
"2023-03-24T01:14:50.967Z"
Filter by the coupon code's additional attributes. This filter needs to be a valid JSON array to be able to make the search.
"[{key:'type',value:'My Birthday'}]"
Filter by the related promotion or coupon's additional attributes. This filter needs to be a valid JSON array to be able to make the search.
"[{key:'type',value:'Holiday'}]"
Filter coupon codes by the related promotion title.
"Summer promotion"
Response
Represents the conditions based on which the promotions apply. For example, consider the type
is USER_SEGMENT
with multiple values. To target all the specified segments, use the AND
operator and to target any one of the segments, use the OR
operator.
Was this page helpful?