---
title: >-
  Discount application 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/discount-application-information-now-available-for-draft-orders-on-the-customer-account-api
  md: >-
    https://shopify.dev/changelog/discount-application-information-now-available-for-draft-orders-on-the-customer-account-api.md
metadata:
  effectiveApiVersion: 2026-07
  affectedApi:
    - displayName: Customer Account API
      handle: customer-account-graphql
  primaryTag:
    displayName: API
    handle: api
  secondaryTag:
    displayName: New
    handle: new
  indicatesActionRequired: false
  createdAt: '2026-03-31T22:09:03-04:00'
  postedAt: '2026-07-01T12:00:00-04:00'
  updatedAt: '2026-06-30T13:55:41-04:00'
  effectiveAt: '2026-07-01T12:00:00-04:00'
---

July 1, 2026

Tags:

* Customer Account API
* 2026-07

# Discount application information now available for draft orders on the Customer Account API

As of GraphQL Customer Account API version 2026-07, draft orders now expose discount applications.

You can use the new [`discountApplications`](https://shopify.dev/docs/api/customer/2026-07/objects/DraftOrder#field-DraftOrder.fields.discountApplications) field on DraftOrder to query discounts applied to a draft order, and the new [`discountAllocations`](https://shopify.dev/docs/api/customer/2026-07/objects/DraftOrderLineItem#field-DraftOrderLineItem.fields.discountAllocations) field on `DraftOrderLineItem` to query how discounts are allocated across line items.

For example:

```graphql
  query DraftOrderDiscounts($id: ID!) {
    draftOrder(id: $id) {
      discountApplications(first: 10) {
        nodes {
          __typename
          ... on DiscountCodeApplication {
            code
          }
          ... on ManualDiscountApplication {
            title
          }
          allocationMethod
          targetSelection
          targetType
          value {
            ... on MoneyV2 {
              amount
              currencyCode
            }
            ... on PricingPercentageValue {
              percentage
            }
          }
        }
      }
      lineItems(first: 10) {
        nodes {
          title
          discountAllocations {
            allocatedAmount {
              amount
              currencyCode
            }
            discountApplication {
              __typename
            }
          }
        }
      }
    }
  }
```

Use these fields to understand which discounts apply to a draft order and how those discounts affect individual draft order line items.
