Locale
These are the endpoints that are available under the /locale path, which lists all the different locales that are available on your business account.
Endpoint | Description |
---|---|
GET /locale | Returns a locale object with a list of key-value pairs. |
There are no parameters included with locale calls.
Look at the API response provided above for the full value set, but essentially a GET /locale call returns an object of key value pairs, where the key is the locale code and the value is the display name. Wherever a locale is set on an object - such as the business object - you would want to set it to the key, not the display name. For example, if you wanted to set your business to a locale of English (United States), you would set the locale property on the business object to "en-US", which is the key, and not to "English (United States)", which is the value or display name. The display name only returns so that you have a reference for what each key actually means in layman's terms.