Discussing APIs and development related to customers, discounts, and order management.
We are investigating a number of orders using the REST API. The discounts data doesn't always seem to add up and we're wondering why.
What is the relationship between order.total_discount and order.discount_applications?
Here are some example:
Below. Why is the total_discount not equal to the discount_allocations amounts?
Are they both applied simulatenously?
Hi ClementBR,
If you test this out with the GraphQL API (using the GraphiQL app to easily run queries), are you seeing the same results?
Liam | Developer Advocate @ Shopify
- Was my reply helpful? Click Like to let me 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
Aren't the REST and GraphQL API supposed to return the same data?
Correct - but if you're seeing something different then we could narrow what you're seeing down to a possible issue with how you've structured your REST query, or a possible bug on our side.
Liam | Developer Advocate @ Shopify
- Was my reply helpful? Click Like to let me 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