Admin API / Types
DiscountCodeTakenError
ObjectA discount code on District has this text. Codes are unique across all stores and sellers by exact text, letter case included, so an older spring15 does not hold SPRING15. A deactivated code keeps its text. Nothing was written.
type DiscountCodeTakenError implements ErrorFields
| Field | Type | Description |
|---|---|---|
existingDiscountCode | DiscountCode | The code that has the text, when the caller reads it ( Query.discountCode). Null otherwise. |
message | String! | A human-readable description of the error. |