---
title: >-
  Storefront API Cart now supports applying Gift Cards - Shopify developer
  changelog
description: >-
  Shopify’s developer changelog documents all changes to Shopify’s platform.
  Find the latest news and learn about new platform opportunities.
source_url:
  html: >-
    https://shopify.dev/changelog/storefront-api-cart-now-supports-applying-gift-cards
  md: >-
    https://shopify.dev/changelog/storefront-api-cart-now-supports-applying-gift-cards.md
metadata:
  effectiveApiVersion: 2024-07
  affectedApi:
    - displayName: Storefront GraphQL API
      handle: storefront-graphql
  primaryTag:
    displayName: API
    handle: api
  secondaryTag:
    displayName: New
    handle: new
  indicatesActionRequired: false
  createdAt: '2024-04-04T04:27:40-04:00'
  postedAt: '2024-04-09T09:01:00-04:00'
  updatedAt: '2024-04-09T12:12:30-04:00'
  effectiveAt: '2024-04-09T09:01:00-04:00'
---

April 9, 2024

Tags:

* Storefront GraphQL API
* 2024-07

# Storefront API Cart now supports applying Gift Cards

As of version 2024-07 of the GraphQL Storefront API, Cart supports adding and querying for Gift Cards.

Updating Gift Cards can be achieved in two ways:

* When creating a cart - adding the [`CartInput`](https://shopify.dev/docs/api/storefront/2024-07/input-objects/cartinput) `giftCardCodes` property.
* After a cart is created - performing the [`cartUpdateGiftCardCodes`](https://shopify.dev/docs/api/storefront/2024-07/mutations/cartGiftCardCodesUpdate) mutation.

You can also query the cart for applied Gift Cards using the [`appliedGiftCards`](https://shopify.dev/docs/api/storefront/2024-07/objects/Cart#field-cart-appliedgiftcards) property.
