campaigns_read, campaigns_write
String!
required
The code customers enter at checkout.
String!
required
A short human-readable summary of what the code does.
required
When this code stops working.
String!
required
The platform’s id for this discount (a Shopify GID or a BigCommerce promotion id).
required
Whether this is one fixed code or a unique code per customer.
ID!
required
The id of this discount code.
How the discount reduces the order. Null when the config has no settings type.
String!
required
The discount’s legacy Mongo ObjectId (24-char hex) from before the CockroachDB migration.
required
The commerce platform that hosts this code.
How the discount reduces the order.
String!
required
The merchant-facing name of the discount.