---
title: >-
  Line item component information now available for draft orders on the Customer
  Account API - 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-components-draft-orders-customer-account-api
  md: >-
    https://shopify.dev/changelog/line-item-components-draft-orders-customer-account-api.md
metadata:
  effectiveApiVersion: 2026-04
  affectedApi:
    - displayName: Customer Account API
      handle: customer-account-graphql
  primaryTag:
    displayName: API
    handle: api
  secondaryTag:
    displayName: New
    handle: new
  indicatesActionRequired: false
  createdAt: '2026-02-26T21:03:06-05:00'
  postedAt: '2026-04-01T12:00:00-04:00'
  updatedAt: '2026-04-01T09:22:58-04:00'
  effectiveAt: '2026-04-01T12:00:00-04:00'
---

April 1, 2026

Tags:

* Customer Account API
* 2026-04

# Line item component information now available for draft orders on the Customer Account API

As of Customer Account API version 2026-04, the `DraftOrderLineItem` object includes a new [`components`](https://shopify.dev/docs/api/customer/2026-04/objects/DraftOrderLineItem#field-DraftOrderLineItem.fields.components) field. This field returns the individual component line items associated with a parent line item.

Additionally, a new optional argument, [`flattenComponents`](https://shopify.dev/docs/api/customer/2026-04/objects/DraftOrder#field-DraftOrder.fields.lineItems.arguments.flattenComponents), has been introduced to the [`DraftOrder.lineItems`](https://shopify.dev/docs/api/customer/latest/connections/DraftOrderLineItemConnection#reference-DraftOrder.lineItems) connection. For API versions 2026-04 and later, `flattenComponents` defaults to `false`, meaning only top-level line items are returned as nodes, with their components accessible via the `DraftOrderLineItem.components` field. If set to `true`, both parent and component line items are returned as top-level nodes, aligning with the behavior of earlier API versions. For versions prior to 2026-04, `flattenComponents` defaults to `true` to ensure backward compatibility.

### Example

```graphql
query {
  draftOrder(id: "gid://shopify/DraftOrder/1") {
    lineItems(first: 10) {
      nodes {
        name
        quantity
        components {
          name
          quantity
        }
      }
    }
  }
}
```
