---
title: "checkoutGiftCardsRemove"
description: "Removes an applied gift card from the checkout."
doc_type: graphql
doc_category: storefront
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/storefront-api/member-system/mutations/checkout-gift-cards-remove'
  md: 'https://developer.shopline.com/docs/storefront-api/member-system/mutations/checkout-gift-cards-remove.md'
---
# checkoutGiftCardsRemove

Removes an applied gift card from the checkout.

- **Required Scopes:** `unauthenticated_write_checkouts_info`
- **API Version:** v20270301
- **API Type:** Storefront
- **API Protocol:** GraphQL
- **Operation Type:** Mutation

## Type Signature

`CheckoutGiftCardsRemovePayload`

## Required Permissions

* `unauthenticated_write_checkouts_info`

An access token is required to call this API. Refer to [Authorization](https://developer.shopline.com/docs/apps/api-instructions-for-use/storefront-api/overview.md) for more information about how to obtain the token.

## Arguments

* `appliedGiftCardId`

  [String!](https://developer.shopline.com/docs/storefront-api/common/scalars/string.md)

  The ID of the Applied Gift Card to remove from the Checkout.

* `checkoutId`

  [String!](https://developer.shopline.com/docs/storefront-api/common/scalars/string.md)

  Checkout id

## Returns

* `checkout`

  [Checkout](https://developer.shopline.com/docs/storefront-api/checkouts/objects/checkout.md)

  The updated checkout object.

* `checkoutUserErrors`

  [[CheckoutUserError!]!](https://developer.shopline.com/docs/storefront-api/checkouts/objects/checkout-user-error.md)

  error message

## Code Example

```graphql
mutation checkoutGiftCardsRemove($appliedGiftCardId: String! $checkoutId: String! ) {
	checkoutGiftCardsRemove(appliedGiftCardId: $appliedGiftCardId, checkoutId: $checkoutId ) 
		 {
			# CheckoutGiftCardsRemovePayload fields
		}
		
	}

```

## Variables

```json
{
  "appliedGiftCardId": {},
  "checkoutId": {}
}
```

## Error Handling

For detailed information about common codes, see [Status and error codes](https://developer.shopline.com/docs/apps/api-instructions-for-use/storefront-api/overview.md#status-and-error-codes).

