Skip to content
Saleor
Esc
↑↓navigate↵open⌘Jpreview

Schema: Saleor 3.23.43Download SDLUpgrade guides

On this page

PromoCodeRejectionDetails Object

Object PromoCodeRejectionDetails in Saleor’s Checkout API. Explore its schema, type relationships, descriptions, and compatibility notes.

Details explaining why a promo code cannot be applied.

Added in Saleor 3.23
type PromoCodeRejectionDetails {
  reason: PromoCodeRejectionReason!
  minSpent: Money
  minCheckoutItemsQuantity: Int
}

Fields

reason

reason · PromoCodeRejectionReason!

The specific reason why the promo code cannot be applied.

minSpent

minSpent · Money

The minimum order value required by the voucher. Set only when reason is MIN_SPENT_NOT_REACHED.

minCheckoutItemsQuantity

minCheckoutItemsQuantity · Int

The minimum number of items required by the voucher. Set only when reason is MIN_QUANTITY_NOT_REACHED.

Used by


Schema: Saleor 3.23.43. Download SDL.

Was this page helpful?