Locale and currency
Understand how to use locale and currency.
Last updated
Understand how to use locale and currency.
Last updated
A locale designator combines the two-letter language code with the country code (for example, en-US). When you set up your store in , you specified a default locale. Your store automatically shows the language and currency of the default locale.
The currency is a designator that uses a to identify the currency.
When creating a shopper through Commerce API, the default locale and currency can be specified in the request body; if the locale and currency are not provided, it will use the default locale and currency for this shopper.
When creating a shopper through Commerce API, the default locale and currency can be specified in the request body; if the locale and currency are not provided, it will use the default locale and currency for this shopper.
After the shopper adds a product to create a shopping cart, the locale and currency of the shopping cart will be the default for the current shopper's cart.
The shopper can update their default locale and currency for their current shopping cart by using the /shoppers/me
endpoint.