Docs
Dashboard

DiscountCodeError

Enum

Outcomes that explain whether and why a discount code could not be applied.

#

Possible enum values


EXCLUDED_BY_DISCOUNT_POLICY

The discount was eligible but excluded by the cart’s discount-combination policy.

MAX_APPLICATIONS_PER_CUSTOMER_REACHED

The current customer has reached their usage limit for the discount.

MAX_APPLICATIONS_REACHED

The discount has reached its overall usage limit.

NONE

The discount code is valid and no error occurred.

NOT_FOUND

The referenced discount code is no longer available.

NO_MATCH

No applicable discount matches the supplied code and cart.

UNKNOWN

The discount code could not be applied for an unspecified reason.