DiscountValidationError
Reason why a discount code is not valid for the current cart / customer.
type DiscountValidationError {
code: DiscountErrorCode!
message: String!
}
Fields
DiscountValidationError.code ● DiscountErrorCode! non-null enum
Stable reason code (e.g. EXPIRED, USAGE_LIMIT_REACHED, MINIMUM_ORDER_NOT_MET). Branch on this for UI behaviour.
DiscountValidationError.message ● String! non-null scalar
Human-readable explanation of the validation failure.
Member Of
DiscountValidationResult object