--- 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 --- [Back to Developer changelog](https://shopify.dev/changelog) 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.