Admin API / Types

DiscountCodeTakenError

Object

A 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 Error

Fields

FieldTypeDescription
existingDiscountCodeDiscountCode
The code that has the text, when the caller reads it (Query.discountCode). Null otherwise.
messageString!
A human-readable description of the error.