A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
Looking for best practices for this.
The API has changed a lot and it's not well documented what all the fields discount fields are for.
Does anyone have a suggestions?
Solved! Go to the solution
This is an accepted solution.
Hi @Piam!
There is a field on the Order resource called current_total_discounts. It's succinctly described in the docs as:
The current total discounts on the order in the shop currency. The value of this field reflects order edits, returns, and refunds.
Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
This is an accepted solution.
Hi @Piam!
There is a field on the Order resource called current_total_discounts. It's succinctly described in the docs as:
The current total discounts on the order in the shop currency. The value of this field reflects order edits, returns, and refunds.
Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
Thanks for your help!
I had a hard time finding the solution, it turns out the first time you open the page, it only shows a few fields. To access all the fields, you need to click "Show 67 hidden fields" and then it becomes searchable.
That small UX decision caused me some headaches, but I'm glad we found the solution.
Thank you again!