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

Schema: Saleor 3.23.43Download SDLUpgrade guides

On this page

checkoutAddPromoCode Mutation

Adds a gift card or a voucher to a checkout.

Triggers the following webhook events:

  • CHECKOUT_UPDATED (async): A checkout was updated.

Applied directives

@webhookEventsInfo(asyncEvents: [CHECKOUT_UPDATED], syncEvents: [])
checkoutAddPromoCode(checkoutId: ID, id: ID, promoCode: String!, token: UUID): CheckoutAddPromoCode

Returns

CheckoutAddPromoCode

Show return type
type CheckoutAddPromoCode {
  checkout: Checkout
  checkoutErrors: [CheckoutError!]! @deprecated(reason: "Use `errors` field instead.")
  errors: [CheckoutError!]!
}

Arguments

checkoutId

checkoutId · ID

The ID of the checkout.

id

id · ID

The checkout’s ID.

promoCode

promoCode · String!

Gift card code or voucher code.

token

token · UUID

Checkout token.


Schema: Saleor 3.23.43. Download SDL.

Last updated on April 13, 2026

Was this page helpful?