Skip to main content
Retrieves a cursor-paginated list of all discount codes in your store, newest first, with optional filtering and search capabilities.
Required scope: discounts.read. A key without it receives a 403 error. See Authentication.

Query Parameters

integer
default:"10"
Number of discounts to return per page (max 100)
string
Cursor for pagination. Use the next_cursor from the previous response.
string
Filter by status (active, expired)
Search by discount code, name, or public ID
string
Only discounts created on or after this date (Y-m-d, e.g., 2025-01-01). Send it together with to.
string
Only discounts created on or before this date (Y-m-d, e.g., 2025-01-31). Send it together with from.
string
Preset creation date range, used instead of from and to: today, yesterday, last7days, last30days, thisWeek, lastWeek, thisMonth, lastMonth, thisYear, lastYear

Response

The list is returned at the top level of the body, without the message and errors fields used by error responses.
array
Array of discount objects, newest first
object
Cursor pagination metadata