DiscountCodeError
EnumOutcomes that explain whether and why a discount code could not be applied.
#
Possible enum values
EXCLUDED_BY_DISCOUNT_POLICYThe discount was eligible but excluded by the cart’s discount-combination policy.
MAX_APPLICATIONS_PER_CUSTOMER_REACHEDThe current customer has reached their usage limit for the discount.
MAX_APPLICATIONS_REACHEDThe discount has reached its overall usage limit.
NONEThe discount code is valid and no error occurred.
NOT_FOUNDThe referenced discount code is no longer available.
NO_MATCHNo applicable discount matches the supplied code and cart.
UNKNOWNThe discount code could not be applied for an unspecified reason.