---
title: Add Metafields to Cart API - 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/add-metafields-to-cart-api'
  md: 'https://shopify.dev/changelog/add-metafields-to-cart-api.md'
metadata:
  effectiveApiVersion: 2023-04
  affectedApi: []
  primaryTag:
    displayName: API
    handle: api
  secondaryTag:
    displayName: Update
    handle: update
  indicatesActionRequired: false
  createdAt: '2023-03-27T13:03:15-04:00'
  postedAt: '2023-04-01T00:00:00-04:00'
  updatedAt: '2024-12-13T17:24:37-05:00'
  effectiveAt: '2023-04-01T00:00:00-04:00'
---

April 1, 2023

Tags:

* API
* 2023-04

# Add Metafields to Cart API

As of GraphQL Storefront API Version `2023-04` you can use Metafields with Carts! Metafields can be added during Cart creation, they can be queried, updated, and deleted.

Learn more:

* [Create Cart Metafields](https://shopify.dev/docs/api/storefront/2023-04/mutations/cartCreate#field-cartinput-metafields)
* [Query Cart Metafields](https://shopify.dev/docs/api/storefront/2023-04/objects/Cart#field-cart-metafields)
* [Update Cart Metafields](https://shopify.dev/docs/api/storefront/2023-04/mutations/cartMetafieldsSet)
* [Delete Cart Metafields](https://shopify.dev/docs/api/storefront/2023-04/mutations/cartMetafieldDelete)
