This page was printed on Dec 10, 2019. For the current version, visit https://help.shopify.com/en/api/storefront-api/guides/multi-currency-guide.
Merchants who use Shopify Payments can sell products and accept payments in multiple currencies. Prices are displayed in a customer's preferred currency on all storefront and checkout pages.
This guide covers how you can query the Storefront API to return the supported currencies for shops that are using multiple currencies. It also shows how you can query product variants to see their prices in the available currencies, and how to query products to see the maximum and minimum variant prices for a selected currency. The guide also explains how to create a checkout in a specific currency by providing the presentmentCurrencyCode property, and then querying and completing the checkout.
This guide assumes that you have completed our Getting started with the Storefront API guide, and that you are authenticated with the API. The guide also assumes that you've created product variants in your test shop.
Shopify stores have a store currency, which is the default currency that's used to display prices on a storefront. Merchants can enable multiple presentment currencies from their Shopify Payments settings. Presentment currencies are the currencies that can be used to display prices to customers on a storefront and checkout.
You can query a shop's paymentSettings object to return a list of enabled presentment currencies:
You can query specific product variants to return pricing information in different presentment currencies. By default all currencies are returned, or you can use the presentmentCurrencies argument as part of the presentmentPrices object to return a specific currency.
When merchants set sale prices for products, the price is the sales price and original price is the compare at price. The following query returns the compareAtPrice and price for the product variant's Australian (AUD) presentment currency:
You can query products to return the range of variant prices for presentment currencies. To get a price in a specific presentment currency you can query Node for a given product variant.
You can return the presentmentPriceRanges by querying products. By default all currencies are returned, or you can use the presentmentCurrencies argument on presentmentPriceRanges to return a specific currency. The following query returns the presentmentPriceRanges for all of the store's supported currencies:
If the mutation is valid, then the following response is returned including the currencyCode:
Completing the checkout
When you complete a checkout, you can provide the currency code of the created checkout as an input argument on the checkoutCompleteWithCreditCardV2 mutation. This example uses the session ID from the Shopify card vault to complete the mutation. For a detailed guide on how to complete checkouts, see Creating a Checkout.
This guide assumes you've already queried the Shopify card vault to obtain the session ID.
To complete the payment, send the payment information, including the amount, currencyCode and billingAddress fields. Send the payment session ID as the vaultID. The following mutation completes the checkout using Australian currency by sending the AUD currency code as part of the payment object.