Is it possible to create product via the API with a price that is NOT the shop currency?

allymenan
Tourist
21 0 2

Is it possible to create a product via the API with a price that is NOT the shop currency?

For example, Shop Currency is CAD. We are creating product via API, but only have the USD price of the item. Is it possible to set just the presentment price for USD, and have Shopify set the CAD price?

 
 
 
 
0 Likes
Kevin_A
Shopify Staff
Shopify Staff
213 27 39

Hey @allymenan 

I believe if you were to submit a presentment price but not a price for the variant, we would just default it to 0 for the primary currency.

Kevin_A | Developer Support @ 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

0 Likes
SustainableAdam
Shopify Partner
31 0 11

Hi @Kevin_A - I have this same question, so I want to make sure I understand your reply.

If we only submit a presentment price but not a price in the store's currency for a variant, the variant's price will default to 0 (in the store's currency)?

If that's accurate, I will need another way to convert a price from the presentment currency to the store's currency. Are there other methods to do this?

0 Likes
allymenan
Tourist
21 0 2

Hey Adam,

 

yeah that’s correct I wasn’t able to set the presentment currency.

The solution we went with was converting the currency via Currency Layer API.

Feel free time email me if you need more insight 

Menan@joinally.co

menan

0 Likes
Kevin_A
Shopify Staff
Shopify Staff
213 27 39

Hey @SustainableAdam 

I recall testing this, and I believe the result was that the price attribute would always default to 0. You can confirm by creating a new variant and not providing a price attribute, but provide a presentment price attribute and should see the same results. 

Kevin_A | Developer Support @ 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

0 Likes
SustainableAdam
Shopify Partner
31 0 11

Thank you both so much for your quick response! I'll look into CurrencyLayer now.

0 Likes