<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/add-selling-plans-to-draft-order-line-items-with-the-admin-graphql-api-5jz3twwpu" -->

---
title: Add selling plans to draft order line items with the...
description: Shopify's Admin GraphQL API version 2027-01 adds selling plan support to draft orders. Apps can now apply a selling plan to a draft order line item and read...
canonical: https://daily.dev/posts/add-selling-plans-to-draft-order-line-items-with-the-admin-graphql-api-5jz3twwpu
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Add selling plans to draft order line items with the Admin GraphQL API | daily.dev
og:description: Shopify's Admin GraphQL API version 2027-01 adds selling plan support to draft orders. Apps can now apply a selling plan to a draft order line item and read...
og:url: https://daily.dev/posts/add-selling-plans-to-draft-order-line-items-with-the-admin-graphql-api-5jz3twwpu
og:image: https://api.daily.dev/og/posts/5jz3twWpU.png
og:image:alt: Add selling plans to draft order line items with the Admin GraphQL API
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Add selling plans to draft order line items with the Admin GraphQL API

**[Shopify Developer changelog](https://daily.dev/sources/shopifychangelog)** · 2 min read · 0 upvotes · 0 comments

## Summary

Shopify's Admin GraphQL API version 2027-01 adds selling plan support to draft orders. Apps can now apply a selling plan to a draft order line item and read back the applied plan via three new fields: sellingPlanId on DraftOrderLineItemInput, and sellingPlanApplication on both DraftOrderLineItem and CalculatedDraftOrderLineItem. These fields are additive, so existing apps keep working without changes. Only recurring and prepaid subscription plans are supported, not fixed-billing plans like pre-orders. Selling plans can only attach to product variant line items, not custom line items or B2B draft orders, and draftOrderInvoiceSend doesn't yet support draft orders with selling plan line items.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://shopify.dev/changelog/add-selling-plans-to-draft-order-line-items-with-the-admin-graphql-api>

## Questions this post answers

### How do I apply a selling plan to a draft order line item in Shopify's Admin GraphQL API?

Set the sellingPlanId field on DraftOrderLineItemInput when calling draftOrderCreate, draftOrderUpdate, or draftOrderCalculate, available in Admin GraphQL API version 2027-01. You can only attach selling plans to product variant line items, not custom line items. Read back the applied plan via sellingPlanApplication on DraftOrderLineItem or CalculatedDraftOrderLineItem.

_Teams wiring subscriptions into Shopify checkouts can track API changes like this via daily.dev._

### Can I use a pre-order or try-before-you-buy plan on a Shopify draft order?

No, Shopify's draft order selling plan support only covers recurring and prepaid subscription plans. Fixed-billing plans such as pre-orders and try-before-you-buy are not supported on draft order line items as of Admin GraphQL API version 2027-01.

_Developers scoping subscription features against platform limits often follow API updates like this on daily.dev._

### Does draftOrderInvoiceSend work with draft orders that have a selling plan line item in Shopify?

No, calling draftOrderInvoiceSend on a draft order that has a selling plan line item returns a user error and creates no order. Instead, send the draft order invoice to checkout via draftOrderInvoiceSend only once that limitation is resolved, or route the order through checkout directly for now.

_Developers avoiding breaking changes in checkout flows can keep tabs on API gaps like this through daily.dev._

## Similar posts on daily.dev

- [Orders webhooks now include selling\_plan\_id on line items](https://daily.dev/posts/orders-webhooks-now-include-selling-plan-id-on-line-items-xpahvnfhe) · Shopify Developer changelog · 0 upvotes · 0 comments
- [Draft order deposit fields are now available in the GraphQL Admin API and Customer Account API](https://daily.dev/posts/draft-order-deposit-fields-are-now-available-in-the-graphql-admin-api-and-customer-account-api-p4bbot1u8) · Shopify Developer changelog · 0 upvotes · 0 comments
- [Set product categories on custom line items in draft orders and order edits](https://daily.dev/posts/set-product-categories-on-custom-line-items-in-draft-orders-and-order-edits-or53dmyg8) · Shopify Developer changelog · 0 upvotes · 0 comments
- [Manage packed product dimensions with the Admin GraphQL API](https://daily.dev/posts/manage-packed-product-dimensions-with-the-admin-graphql-api-czpaqpkie) · Shopify Developer changelog · 0 upvotes · 0 comments
- [Discount application information now available for draft orders on the Customer Account API](https://daily.dev/posts/discount-application-information-now-available-for-draft-orders-on-the-customer-account-api-9aixlo74c) · Shopify Developer changelog · 0 upvotes · 0 comments

---

Tags: [#architecture](https://daily.dev/tags/architecture), [#ecommerce](https://daily.dev/tags/ecommerce), [#graphql](https://daily.dev/tags/graphql), [#shopify](https://daily.dev/tags/shopify)

[View this post on daily.dev](https://daily.dev/posts/add-selling-plans-to-draft-order-line-items-with-the-admin-graphql-api-5jz3twwpu)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Add selling plans to draft order line items with the Admin GraphQL API","url":"https://daily.dev/posts/add-selling-plans-to-draft-order-line-items-with-the-admin-graphql-api-5jz3twwpu","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/add-selling-plans-to-draft-order-line-items-with-the-admin-graphql-api-5jz3twwpu"},"datePublished":"2026-10-28T15:53:54.407Z","dateModified":"2026-10-28T15:57:34.363Z","description":"Shopify's Admin GraphQL API version 2027-01 adds selling plan support to draft orders. Apps can now apply a selling plan to a draft order line item and read...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/a5b9f0de82c011d79696b4f6b99b7364?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/a5b9f0de82c011d79696b4f6b99b7364?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Shopify Developer changelog","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Shopify Developer changelog","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/aefcb5d2c1ca4b45b5d2256b9e2a9cc3","url":"https://daily.dev/sources/shopifychangelog"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/add-selling-plans-to-draft-order-line-items-with-the-admin-graphql-api-5jz3twwpu","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"architecture,ecommerce,graphql,shopify","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Shopify Developer changelog","item":"https://daily.dev/sources/shopifychangelog"},{"@type":"ListItem","position":3,"name":"Add selling plans to draft order line items with the Admin GraphQL API"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/add-selling-plans-to-draft-order-line-items-with-the-admin-graphql-api-5jz3twwpu#faq","mainEntity":[{"@type":"Question","name":"How do I apply a selling plan to a draft order line item in Shopify's Admin GraphQL API?","acceptedAnswer":{"@type":"Answer","text":"Set the sellingPlanId field on DraftOrderLineItemInput when calling draftOrderCreate, draftOrderUpdate, or draftOrderCalculate, available in Admin GraphQL API version 2027-01. You can only attach selling plans to product variant line items, not custom line items. Read back the applied plan via sellingPlanApplication on DraftOrderLineItem or CalculatedDraftOrderLineItem. Teams wiring subscriptions into Shopify checkouts can track API changes like this via daily.dev."}},{"@type":"Question","name":"Can I use a pre-order or try-before-you-buy plan on a Shopify draft order?","acceptedAnswer":{"@type":"Answer","text":"No, Shopify's draft order selling plan support only covers recurring and prepaid subscription plans. Fixed-billing plans such as pre-orders and try-before-you-buy are not supported on draft order line items as of Admin GraphQL API version 2027-01. Developers scoping subscription features against platform limits often follow API updates like this on daily.dev."}},{"@type":"Question","name":"Does draftOrderInvoiceSend work with draft orders that have a selling plan line item in Shopify?","acceptedAnswer":{"@type":"Answer","text":"No, calling draftOrderInvoiceSend on a draft order that has a selling plan line item returns a user error and creates no order. Instead, send the draft order invoice to checkout via draftOrderInvoiceSend only once that limitation is resolved, or route the order through checkout directly for now. Developers avoiding breaking changes in checkout flows can keep tabs on API gaps like this through daily.dev."}}]}
```

