---
title: '[Cart AJAX API] Inventory error message updates - 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/cart-ajax-api-inventory-error-message-updates'
  md: >-
    https://shopify.dev/changelog/cart-ajax-api-inventory-error-message-updates.md
metadata:
  effectiveApiVersion: ''
  affectedApi: []
  primaryTag:
    displayName: API
    handle: api
  secondaryTag:
    displayName: New
    handle: new
  indicatesActionRequired: false
  createdAt: '2025-03-04T10:21:29-05:00'
  postedAt: '2025-03-04T12:00:00-05:00'
  updatedAt: '2025-03-04T11:11:38-05:00'
  effectiveAt: '2025-03-04T12:00:00-05:00'
---

March 4, 2025

Tags:

* API

# \[Cart AJAX API] Inventory error message updates

We are updating the error messages in the AJAX API for cases where a client requests more inventory than is available.

* If no inventory of a variant is in the cart and the client requests more than is available, the error message will be: "Only *available quantity* items were added to your cart."
* If all available inventory of a variant is already in the cart and the client requests more, the error message will be: "The maximum quantity of this item is already in your cart."

These changes will affect the `add.js`, `change.js`, and `update.js` endpoints.
