---
title: >-
  Enhanced handling of large quantities in the Carts API update endpoint -
  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/enhanced-handling-of-large-quantities-in-the-carts-api-update-endpoint
  md: >-
    https://shopify.dev/changelog/enhanced-handling-of-large-quantities-in-the-carts-api-update-endpoint.md
metadata:
  effectiveApiVersion: ''
  affectedApi:
    - displayName: Liquid
      handle: liquid
  primaryTag:
    displayName: API
    handle: api
  secondaryTag:
    displayName: Update
    handle: update
  indicatesActionRequired: false
  createdAt: '2024-05-09T13:30:51-04:00'
  postedAt: '2024-05-09T14:53:00-04:00'
  updatedAt: '2024-05-09T15:38:17-04:00'
  effectiveAt: '2024-05-09T14:53:00-04:00'
---

May 9, 2024

Tags:

* Liquid

# Enhanced handling of large quantities in the Carts API update endpoint

When handling requests with exceptionally large quantities (exceeding 1,000,000), the `update` endpoint of the Carts API previously capped the value to 1,000,000 and returned a `200/OK` status without notifying the user.

We have now modified this behavior. While the `update` endpoint will continue to limit the quantity to 1,000,000, it will also issue a `422/Unprocessable Entity` status alerting the API users to the adjustment.

The endpoint will not perform any additional quantity checks against inventory levels; this aspect remains consistent with previous functionality.
