Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
SUMMARY
DETAILS
My Team and I are migrating REST API implementations over to GraphQL. We are currently leveraging version 2024-07 for both.
There are quite a few fields we are not able to track down that seem to be missing from GraphQL. Furthermore, there is very little documentation for many of the fields in question.
One of the most important fields that we need from the REST version is "total_line_items_price". We need an exact-match counterpart in GraphQL. Although there are various other fields (e.g. totalPriceSet, subTotalPriceSet, etc.)... they all do not match exact values for total_line_items_price due to factors such as discounts, tax, shipping, etc.
The best I was able to come up with was to aggregate lineItems[].originalTotalSet.shopMoney.amount. The only issue is that my Team has decided not to perform calculations in our code, since it would be best to pull directly from the response.
As an aside... it looks like totalLineItemsPriceSet in the single-order query matches that of REST's total_line_items_price. Can someone please confirm if this is true? Even if this is a true match, my Team and I would like to gather our information from the Orders query if possible, since this is what most of our code leverages already.
Hello,
You're on the right track, and your attention to detail is absolutely valid given the critical nature of accurate financial data in e-commerce platforms. Here's a breakdown to clarify what you've found and what is confirmed for Shopify API version 2024-07:
This field in REST represents the sum of prices of all line items before discounts, taxes, shipping, etc. It is not affected by discounts—meaning it's purely the sum of line_item.price * quantity across all items.
is indeed the exact equivalent of REST's total_line_items_price.
This has been confirmed both through official Shopify partner documentation and real-world value comparison test.
When querying multiple orders using orders(first: N), the field totalLineItemsPriceSet is not included in the default order object fields, and as of version 2024-07, it is still not exposed in the OrderEdge or Order object in that context.
This is why you’re unable to retrieve it directly from the Orders query, which is unfortunate.
Best Regards
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025