---
title: >-
  [Cart AJAX API] Discounts support on /cart/update.js - 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/posts/cart-ajax-api-discounts-support-on-cartupdatejs
  md: >-
    https://shopify.dev/changelog/posts/cart-ajax-api-discounts-support-on-cartupdatejs.md
metadata:
  effectiveApiVersion: ''
  affectedApi: []
  primaryTag:
    displayName: API
    handle: api
  secondaryTag:
    displayName: New
    handle: new
  indicatesActionRequired: false
  createdAt: '2025-05-12T14:00:30-04:00'
  postedAt: '2025-05-21T08:00:00-04:00'
  updatedAt: '2025-06-24T12:43:19-04:00'
  effectiveAt: '2025-05-15T09:00:00-04:00'
---

May 21, 2025

# \[Cart AJAX API] Discounts support on `/cart/update.js`

DateMay 21, 2025

FlagsNew

SurfacesAPI

We have added support for discounts in the Cart AJAX API's `/cart/update.js` endpoint. You can now [add or remove discounts from your cart](https://shopify.dev/docs/api/ajax/reference/cart#update-discounts-in-the-cart) using the `discount` parameter.

Learn more about cart discount support on [shopify.dev](https://shopify.dev/docs/api/ajax/reference/cart#update-the-cart-discounts).
