Docs
Dashboard

DiscountCode

Object

Fields returned for discount code.

#

Fields


code
String!

The discount code applied to the cart.

error
DiscountCodeError

An error state describing why the discount code could not be applied, if applicable.

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.