Skip to main content
Required scopes: campaigns_read
String!
required
The code a customer enters at checkout.
When the code was generated.
The customer the code was generated for. Null when it was not generated for a customer, or the customer has since been deleted.Requires: customers_read
When the code stops working. Null if it never expires.
ID!
required
The id of this generated discount code.
When the code was last used. Null if it never was.
String!
required
The generated code’s legacy Mongo ObjectId (24-char hex) from before the CockroachDB migration.
Which Redo feature generated the code.
Whether the code is active, expired, or a preview. Usage does not change it: see usageCount.
Int!
required
How many times the code was used on an order. A code used before usage records were kept counts as 1.