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.
ID!
required
The discount code’s id, or its legacyId from an earlier version of the Redo API.
Int
Forward pagination: returns the first N items (max 100, default 25). Use with after; mutually exclusive with last/before.
Int
Backward pagination: returns the last N items (max 100, default 25). Use with before; mutually exclusive with first/after.
String
Only include codes that start with or contain this text, ignoring case. At most 200 characters.
Boolean
Lists the oldest codes first instead of the newest.
Only include codes with this status. Without it, previews are included.

Returns

A paginated list of GeneratedDiscountCode items.

Example