Multicurrency and Cart Discount with Line Discount

AlexandraM
New Member
4 0 0

Hi SH API Developer Community,

 

we setup multi-currency feature in SH and now we would to connect it via middleware into our ERP system. We actually encountered an issue with combination of Cart Discount and Line level item discount. Basically, when there is a combination of cart discount and line level discount, we are not able to get a Cart discount amount in foreign currency ("discount_Codes").

The Json contains it only in Base Currency of Shopify Store. Could you let me know which field should be used for  Cart Discount in Foreign currency? The exchange rate cannot be used as well because the exchange rate differs in the Json that it is used in the front-end of the order so the amounts are then different. 

Any ideas would be appreciated here. 

Thank you in advance.

Alex

0 Likes
Greg_Kujawa
Shopify Partner
1016 83 238

If you utilize the GraphQL API, then there are two fields --- shop money (the default currency type for the shop) and presentment money (the currency type used for the payment). Maybe this can help?

https://shopify.dev/tutorials/migrate-your-app-to-support-multi-currency

 

0 Likes
AlexandraM
New Member
4 0 0

Hello Greg,

yes, we are already using the presentment money, but it does not work for Cart Discounts. 

The cart discounts are basically automatically converted into default currency unfortunately. 

0 Likes