Skip to main content
Version: 3.x

CheckoutAddPromoCode

Adds a gift card or a voucher to a checkout.

Triggers the following webhook events:

  • CHECKOUT_UPDATED (async): A checkout was updated.
type CheckoutAddPromoCode {
checkout: Checkout
checkoutErrors: [CheckoutError!]! @deprecated
errors: [CheckoutError!]!
}

Fields

CheckoutAddPromoCode.checkout ● Checkout object

The checkout with the added gift card or voucher.

CheckoutAddPromoCode.checkoutErrors ● [CheckoutError!]! deprecated non-null object

DEPRECATED

This field will be removed in Saleor 4.0. Use errors field instead.

CheckoutAddPromoCode.errors ● [CheckoutError!]! non-null object

Returned by

checkoutAddPromoCode mutation


Was this page helpful?