Oder Line Item & Selling Plan

Topic summary

The discussion addresses the absence of a SellingPlan attribute in the OrderLineItem object within Shopify’s Storefront API, which complicates building headless customer account pages that display subscription orders.

Current Workaround:

  • Subscription information can be retrieved through the customAttributes field in OrderLineItem
  • Developers must implement custom server-side logic to parse and display subscription details from these attributes

Open Questions:

  • Whether OrderLineItem and CartLineItem share the same custom attributes
  • If OrderLineItem custom attributes automatically inherit from CartLineItem
  • How to update custom attributes when customers modify subscription frequency (e.g., changing from “every 2 weeks” to “every 4 weeks”)

The conversation remains ongoing with no definitive solution for dynamically managing subscription attribute updates.

Summarized with AI on November 14. AI used: claude-sonnet-4-5-20250929.

Hi,

Does SellingPlan attribute not exist in OrderLineItem in Storefront API? Without it, how do you build a headless customer account page and show an order that’s a subscription?

Thanks.

Hi Araskavakli,

Currently he SellingPlan attribute is not directly available in the OrderLineItem object. However, you can still retrieve information about subscriptions from an order using the customAttributes field in OrderLineItem which may contain details about the subscription.

To build a headless customer account page that shows an order as a subscription, you would have to rely on these customAttributes or on your own server-side logic to track and display subscription information.

Hope this helps!

1 Like

Hi Liam. Thank you for your reply.

Do OrderLineItem and CartLineItem share the same custom attributes? And does that mean the custom attribute of the OrderLineItem gets CartLineItem’s custom attributes automatically? If that is the case, how do we change the custom attribute if the customer let’s say decides to change its delivery frequency from “every 2 weeks” to “every 4 weeks”?