API version: unstable
API version: 2021-04 Release candidate
API version: 2021-01 Latest
API version: 2020-10
API version: 2020-07
API version: 2020-04
API version: 2020-01 Unsupported
API version: 2019-10 Unsupported

SubscriptionDiscountRejectionReason enum

Version unstable

The reason a discount on a subscription draft was rejected.

Values

  • CURRENTLY_INACTIVE

    Discount is inactive.

  • CUSTOMER_NOT_ELIGIBLE

    Given customer does not qualify for the discount.

  • CUSTOMER_USAGE_LIMIT_REACHED

    Customer usage limit has been reached.

  • INCOMPATIBLE_PURCHASE_TYPE

    Purchase type does not qualify for the discount.

  • INTERNAL_ERROR

    Internal error during discount code validation.

  • NOT_FOUND

    Discount code is not found.

  • NO_ENTITLED_LINE_ITEMS

    Discount does not apply to any of the given line items.

  • NO_ENTITLED_SHIPPING_LINES

    No applicable shipping lines.

  • PURCHASE_NOT_IN_RANGE

    Purchase amount of items does not qualify for the discount.

  • QUANTITY_NOT_IN_RANGE

    Quantity of items does not qualify for the discount.

  • USAGE_LIMIT_REACHED

    Discount usage limit has been reached.

Types that return SubscriptionDiscountRejectionReason

Version 2021-04 (Release candidate)

The reason a discount on a subscription draft was rejected.

Values

  • CURRENTLY_INACTIVE

    Discount is inactive.

  • CUSTOMER_NOT_ELIGIBLE

    Given customer does not qualify for the discount.

  • CUSTOMER_USAGE_LIMIT_REACHED

    Customer usage limit has been reached.

  • INCOMPATIBLE_PURCHASE_TYPE

    Purchase type does not qualify for the discount.

  • INTERNAL_ERROR

    Internal error during discount code validation.

  • NOT_FOUND

    Discount code is not found.

  • NO_ENTITLED_LINE_ITEMS

    Discount does not apply to any of the given line items.

  • NO_ENTITLED_SHIPPING_LINES

    No applicable shipping lines.

  • PURCHASE_NOT_IN_RANGE

    Purchase amount of items does not qualify for the discount.

  • QUANTITY_NOT_IN_RANGE

    Quantity of items does not qualify for the discount.

  • USAGE_LIMIT_REACHED

    Discount usage limit has been reached.

Types that return SubscriptionDiscountRejectionReason

Version 2021-01 (Latest)

The reason a discount on a subscription draft was rejected.

Values

  • CURRENTLY_INACTIVE

    Discount is inactive.

  • CUSTOMER_NOT_ELIGIBLE

    Given customer does not qualify for the discount.

  • CUSTOMER_USAGE_LIMIT_REACHED

    Customer usage limit has been reached.

  • INCOMPATIBLE_PURCHASE_TYPE

    Purchase type does not qualify for the discount.

  • INTERNAL_ERROR

    Internal error during discount code validation.

  • NOT_FOUND

    Discount code is not found.

  • NO_ENTITLED_LINE_ITEMS

    Discount does not apply to any of the given line items.

  • NO_ENTITLED_SHIPPING_LINES

    No applicable shipping lines.

  • PURCHASE_NOT_IN_RANGE

    Purchase amount of items does not qualify for the discount.

  • QUANTITY_NOT_IN_RANGE

    Quantity of items does not qualify for the discount.

  • USAGE_LIMIT_REACHED

    Discount usage limit has been reached.

Types that return SubscriptionDiscountRejectionReason