Skip to main content

PromoCodeRejectionDetails Object

Details explaining why a promo code cannot be applied.

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

Fields​

reason ● PromoCodeRejectionReason!​

The specific reason why the promo code cannot be applied.

minSpent ● Money​

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

minCheckoutItemsQuantity ● Int​

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

Member Of​

CheckoutError object ● OrderCreateFromCheckoutError object ● OrderError object