Get shop money for a line item at time of purchase

Hi everyone,

I’m having some trouble figuring out how to get the shop money for a line item at the time of the purchase. Currently, shop money is using the current exchange rate in case the customer paid in a different currency.

So far I couldn’t find any fields in REST and Graphql that would give the expected result.

We want to offer exchanges for variants that have the same price as the original product in the order. In case the price increases for all variants or a variant has a different price than others then we don’t want to allow exchange to those variants.

In case the shop money currency and the presentment money currency are the same we don’t have any issues. The issue comes when the currencies are different as shop money uses the current exchange rate for its value not the one at the time of purchase.

Thank you for any help you can provide :slightly_smiling_face:

Hi @MartonBorsos . Currency conversion does carry that risk with refunds that comes with fluctuating currency values. I don’t believe the Shopify API has a facility to lock in the exchange rate but it might be recorded in the order/create webhook. Also the TenderTransaction value is immutable and wont change https://shopify.dev/docs/api/admin-graphql/2023-01/objects/TenderTransaction#field-tendertransaction-amount.. Perhaps someone in the community has a solution for locking in or recording the exchange value at time of purchase. Hope that helps in some way though.

1 Like