Skip to main content

checkoutRemovePromoCode Mutation

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 miscellaneous

The ID of the checkout.

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

checkoutRemovePromoCode.id ● ID scalar miscellaneous

The checkout's ID.

checkoutRemovePromoCode.promoCode ● String scalar miscellaneous

Gift card code or voucher code.

checkoutRemovePromoCode.promoCodeId ● ID scalar miscellaneous

Gift card or voucher ID.

checkoutRemovePromoCode.token ● UUID scalar miscellaneous

Checkout token.

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

Type

CheckoutRemovePromoCode object checkout

Remove a gift card or a voucher from a checkout.

Triggers the following webhook events:

  • CHECKOUT_UPDATED (async): A checkout was updated.