Get Locale Settings
GET /stores/{store_hash}/v3/settings/store/locale
Request
Returns global locale settings.
Authentication
- X-Auth-Token in header - required
Parameters
- store_hash in path - string
- Accept in header with default of application/json - string - required
The MIME type of the response body.
example
curl --request GET \ --url 'https://api.bigcommerce.com/stores/[store_hash]/v3/settings/store/locale' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --header 'X-Auth-Token: xxxxxxxxxxxxxxxxx'
Response
Body
dataobject
The basic locale settings for a store, used to give shopper information about languages, countries, etc.
metaobject
Response metadata.
Example
{ "data": { "default_shopper_language": "en", "shopper_language_selection_method": "default_shopper_language", "store_country": "United States" }, "meta": {} }
Update Locale Settings
PUT /stores/{store_hash}/v3/settings/store/locale
Request
Updates global locale settings.
Authentication
- X-Auth-Token in header - required
Parameters
- store_hash in path - string
- Content-Type in header with default of application/json - string - required
The MIME type of the request body.
Body
The basic locale settings for a store, used to give shopper information about languages, countries, etc.
default_shopper_languagestring
requiredExample: en, en-us
Default: en
shopper_language_selection_methodstring
Determines whether to display the storefront content in the shopper's browser language or the shopper's selected default language.
Available values:
browser
- language updates automatically based on the shopper browser language. Multiple languages are supported.default_shopper_language
- content is displayed in a single language based on the setdefault_shopper_language
. Only the selected language is supported.
Allowed: browser | default_shopper_language
Example: default_shopper_language
Default: default_shopper_language
store_countrystring
Default: United States
Example
{ "default_shopper_language": "en", "shopper_language_selection_method": "default_shopper_language", "store_country": "United States" }
Response
Body
dataobject
The basic locale settings for a store, used to give shopper information about languages, countries, etc.
metaobject
Response metadata.
Example
{ "data": { "default_shopper_language": "en", "shopper_language_selection_method": "default_shopper_language", "store_country": "United States" }, "meta": {} }