---
title: Line item weight input for orderCreate mutation - 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/line-item-weight-input-for-ordercreate-mutation
  md: >-
    https://shopify.dev/changelog/line-item-weight-input-for-ordercreate-mutation.md
metadata:
  effectiveApiVersion: 2025-04
  affectedApi:
    - displayName: Admin GraphQL API
      handle: admin-graphql
  primaryTag:
    displayName: API
    handle: api
  secondaryTag:
    displayName: New
    handle: new
  indicatesActionRequired: false
  createdAt: '2025-01-14T14:47:15-05:00'
  postedAt: '2025-01-15T12:00:00-05:00'
  updatedAt: '2025-01-14T15:16:26-05:00'
  effectiveAt: '2025-01-15T12:00:00-05:00'
---

January 15, 2025

Tags:

* Admin GraphQL API
* 2025-04

# Line item weight input for `orderCreate` mutation

We have enhanced the `orderCreate` mutation by adding an optional field, `OrderCreateLineItemInput.weight`, which allows you to specify the weight of each line item using the `WeightInput` object.

For line items linked to a product variant:

* Specifying a weight will override the variant's default weight.
* If no weight is specified, the variant's weight will be used by default.

For line items not linked to a product variant, such as custom items:

* Specifying a weight will apply that weight to the line item.
* If no weight is specified, the line item's weight will default to 0.

This is an improved version of the `line_items.grams` field that exists in the [REST API](https://shopify.dev/docs/api/admin-rest/unstable/resources/order#post-orders).
