I’m assuming they’re in the shop currency, but I’m not able to test this because enabling multi-currency in a developer store is complicated.
total_discounts
total_line_items_price
total_tip_received
total_price
total_tax
I’m asking because I’m working on migrating from REST to GraphQL, and I want to figure out the exact GraphQL equivalents for these.
Hi Jonathon,
I can confirm that the fields total_price
and total_discounts
in the Shopify REST API are represented in the shop’s currency, not the presentment currency.
Let us know if you have any other questions on this migration.
Thank you!
I’m also curious about the Amount and Currency fields on the Transaction resource. Looking at them individually:
- The convention is for amount-like decimal fields to be in the shop currency.
- The Currency field would make sense to be the presentment currency, since the shop currency is static and can be queried via other endpoints.
But that would lead to the amount and currency on transactions to mismatch, which doesn’t seem correct. I’m guessing that amount is actually the presentment amount in this scenario, but I’m not sure.