Skip to main content

checkoutAddPromoCode

Adds a gift card or a voucher to a checkout.

Triggers the following webhook events:

  • CHECKOUT_UPDATED (async): A checkout was updated.
checkoutAddPromoCode(
checkoutId: ID
id: ID
promoCode: String!
token: UUID
): CheckoutAddPromoCode

Arguments

checkoutAddPromoCode.checkoutId ● ID scalar miscellaneous

The ID of the checkout.

DEPRECATED: this field will be removed in Saleor 4.0. Use id instead.

checkoutAddPromoCode.id ● ID scalar miscellaneous

The checkout's ID.

Added in Saleor 3.4

checkoutAddPromoCode.promoCode ● String! non-null scalar miscellaneous

Gift card code or voucher code.

checkoutAddPromoCode.token ● UUID scalar miscellaneous

Checkout token.

DEPRECATED: this field will be removed in Saleor 4.0. Use id instead.

Type

CheckoutAddPromoCode object checkout

Adds a gift card or a voucher to a checkout.

Triggers the following webhook events:

  • CHECKOUT_UPDATED (async): A checkout was updated.