> Documentation index: [Saleor](/llms.txt) · [This section](/api-reference/checkout/llms.txt)
> Source: https://docs.saleor.io/api-reference/checkout/mutations/checkout-remove-promo-code

# checkoutRemovePromoCode Mutation

Remove a gift card or a voucher from a checkout.

Triggers the following webhook events:

-   CHECKOUT\_UPDATED (async): A checkout was updated.

```graphql
checkoutRemovePromoCode(
  checkoutId: ID
  id: ID
  promoCode: String
  promoCodeId: ID
  token: UUID
): CheckoutRemovePromoCode
```

Details

```graphql
type CheckoutRemovePromoCode {
  checkout: Checkout
  checkoutErrors: [CheckoutError!]! @deprecated
  errors: [CheckoutError!]!
}
```

<a id="arguments"></a>

### Arguments

<a id="id"></a>

#### [`id`](#id) ● [`ID`](/api-reference/miscellaneous/scalars/id.md)

The checkout's ID.

<a id="promo-code"></a>

#### [`promoCode`](#promo-code) ● [`String`](/api-reference/miscellaneous/scalars/string.md)

Gift card code or voucher code.

<a id="promo-code-id"></a>

#### [`promoCodeId`](#promo-code-id) ● [`ID`](/api-reference/miscellaneous/scalars/id.md)

Gift card or voucher ID.

Show deprecatedHide deprecated

<a id="checkout-id"></a>

#### [`checkoutId`](#checkout-id) ● [`ID`](/api-reference/miscellaneous/scalars/id.md)

DEPRECATED

Use `id` instead.

The ID of the checkout.

<a id="token"></a>

#### [`token`](#token) ● [`UUID`](/api-reference/miscellaneous/scalars/uuid.md)

DEPRECATED

Use `id` instead.

Checkout token.

<a id="type"></a>

### Type

<a id="checkoutremovepromocode"></a>

#### [`CheckoutRemovePromoCode`](/api-reference/checkout/objects/checkout-remove-promo-code.md)

Remove a gift card or a voucher from a checkout.

Triggers the following webhook events:

-   CHECKOUT\_UPDATED (async): A checkout was updated.
