Skip to main content
Required scopes: campaigns_read

Arguments

String
Forward pagination cursor — returns items after it. Pass an edges[].cursor or pageInfo.endCursor from a previous page.
String
Backward pagination cursor — returns items before it. Pass an edges[].cursor or pageInfo.startCursor from a previous page.
String
Only include the discount with this checkout code. Matching is case-insensitive.
Int
Forward pagination: returns the first N items (max 100, default 25). Use with after; mutually exclusive with last/before.
Only include discounts with this code-generation strategy.
Only include amount-off, free-shipping, buy-X-get-Y, or dynamic-range discounts.
Int
Backward pagination: returns the last N items (max 100, default 25). Use with before; mutually exclusive with first/after.
Which key to sort by (defaults to the first key, newest-first). Combine with reverse to flip direction.
Only include discounts hosted on this platform.
String
Case-insensitive substring match on the discount title or checkout code. At most 200 characters.
Boolean
Reverses the sort direction selected by orderBy (or its default).

Returns

A paginated list of DiscountCode items.

Example