← All Shopify Updates
Shopify Update · Published May 29, 2026 · Source: [Cart AJAX API] Discounts support on `/cart/update.js`

Shopify Adds Discount Support to Cart AJAX API in 2025

What Changed

Shopify has expanded the Cart AJAX API's `/cart/update.js` endpoint to include native support for discount codes. Developers can now add or remove discounts directly through the discount parameter without building custom workarounds. This streamlines cart management and enables more flexible discount handling in custom storefronts and headless implementations.

Why This Matters

Previously, applying discounts programmatically required additional API calls or custom solutions, adding complexity to cart workflows. With this update, developers can now manage discounts as part of standard cart operations, reducing code overhead and improving the customer experience. This is particularly valuable for custom checkout flows, cart recovery tools, and dynamic promotional experiences that need real-time discount application.

What You Should Do

How GetShopifyToken Helps

If you're building custom applications that interact with Shopify's Cart AJAX API, GetShopifyToken can help you manage secure API authentication and token handling. This ensures your discount implementations work reliably within a properly authenticated environment.

← More Shopify Updates