Skip to main content
Version: Canary 🚧

checkoutRemovePromoCode

Remove a gift card or a voucher from a checkout.

Triggers the following webhook events:

  • CHECKOUT_UPDATED (async): A checkout was updated.
checkoutRemovePromoCode(
checkoutId: ID
id: ID
promoCode: String
promoCodeId: ID
token: UUID
): CheckoutRemovePromoCode

Arguments

checkoutRemovePromoCode.checkoutId ● ID scalar

The ID of the checkout.

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

checkoutRemovePromoCode.id ● ID scalar

The checkout's ID.

Added in Saleor 3.4

checkoutRemovePromoCode.promoCode ● String scalar

Gift card code or voucher code.

checkoutRemovePromoCode.promoCodeId ● ID scalar

Gift card or voucher ID.

checkoutRemovePromoCode.token ● UUID scalar

Checkout token.

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

Type

CheckoutRemovePromoCode object

Remove a gift card or a voucher from a checkout.

Triggers the following webhook events:

  • CHECKOUT_UPDATED (async): A checkout was updated.

Was this page helpful?