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

# checkoutAddPromoCode Mutation

Adds a gift card or a voucher to a checkout.

Triggers the following webhook events:

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

```graphql
checkoutAddPromoCode(
  checkoutId: ID
  id: ID
  promoCode: String!
  token: UUID
): CheckoutAddPromoCode
```

Details

```graphql
type CheckoutAddPromoCode {
  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.

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="checkoutaddpromocode"></a>

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

Adds a gift card or a voucher to a checkout.

Triggers the following webhook events:

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