---
title: >-
  The Order resource now validates the quantity of line items - 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/the-order-resource-now-validates-the-quantity-of-line-items
  md: >-
    https://shopify.dev/changelog/the-order-resource-now-validates-the-quantity-of-line-items.md
metadata:
  effectiveApiVersion: ''
  affectedApi: []
  primaryTag:
    displayName: API
    handle: api
  secondaryTag:
    displayName: Update
    handle: update
  indicatesActionRequired: false
  createdAt: '2018-11-21T11:16:47-05:00'
  postedAt: '2018-10-25T00:00:00-04:00'
  updatedAt: '2024-02-02T10:04:52-05:00'
  effectiveAt: '2018-10-25T00:00:00-04:00'
---

October 25, 2018

Tags:

* API

# The Order resource now validates the quantity of line items

We're adding validation for line item quantities, which prevents the creation of line items with a quantity of 0. This means that orders created via the Order resource must have a line item quantity greater than or equal to 1.

***

If an app attempts to create a line item with a quantity of 0, then the Order resource returns a status of **422** with the error message **Quantity must be greater than or equal to 1**.

We're making this change to ensure consistent behaviour across the platform, since line items with a quantity of 0 can't be fulfilled within Shopify.

To learn more, see [*Order*](https://help.shopify.com/en/api/reference/orders/order#create).
