Przejdź do głównej zawartości

CartDiscountCode

A discount code that the buyer has attached to the cart.

type CartDiscountCode {
code: String!
isApplicable: Boolean!
}

Fields

CartDiscountCode.code ● String! non-null scalar

The code string as entered by the buyer (case is preserved as stored).

CartDiscountCode.isApplicable ● Boolean! non-null scalar

Whether this code currently produces a discount on the cart. False when the code is recognised but its conditions are not met (e.g. minimum-order, customer-eligibility, or product-set restrictions) — keep the chip visible and surface the reason.

Member Of

Cart object