2
votes

I want to get the discount amount from the REST Admin API on Shopify the way they report it in their finances summary. But their API just returns some amounts that doesn't match with what they report.

enter image description here

Here you can see how they report $17.01 for an item in the order, while they return $17.86 in the API. And the same goes for the second item. That gives us a difference of $1.47 between their report and what they return in the API.

Can someone help with that matter? Thanks

1

1 Answers

0
votes

Chances are, it's being rounded at some point (see here). If you ask how that's possible if they seem less rounded, it's probably because there are multiple items in one order