Skip to main content
Retrieves a cursor-paginated list of all discount codes in your store with optional filtering and search capabilities.

Query Parameters

per_page
integer
default:"15"
Number of discounts to return per page (max 100)
cursor
string
Cursor for pagination. Use the next_cursor from the previous response.
status
string
Filter by status (active, expired)
Search by discount code, name, or public ID
start_date
string
Filter discounts created from this date (Y-m-d format, e.g., 2025-01-01)
end_date
string
Filter discounts created until this date (Y-m-d format, e.g., 2025-01-31)

Response

data
object