listLocales

get

/ccadmin/v1/locales

Get the list of all application supported locales including the default locale.

Request

Supported Media Types
Query Parameters
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : listLocales_response
Type: object
Show Source
Nested Schema : defaultLocale
Type: object
The default locale object.
Show Source
Nested Schema : items
Type: array
The list of valid locales from the server.
Show Source
Nested Schema : items
Type: object
Show Source
Example Response (application/json)
{
    "defaultLocale":{
        "displayName":"English (United States)",
        "name":"en",
        "repositoryId":"1",
        "localeId":"1"
    },
    "items":[
        {
            "displayName":"Chinese (Simplified)",
            "name":"zh_CN",
            "repositoryId":"24",
            "localeId":"24"
        },
        {
            "displayName":"Chinese (Traditional)",
            "name":"zh_TW",
            "repositoryId":"14",
            "localeId":"14"
        },
        {
            "displayName":"Czech",
            "name":"cs",
            "repositoryId":"16",
            "localeId":"16"
        },
        {
            "displayName":"Turkish",
            "name":"tr",
            "repositoryId":"12",
            "localeId":"12"
        },
        {
            "displayName":"Vietnamese",
            "name":"vi",
            "repositoryId":"27",
            "localeId":"27"
        }
    ]
}

Default Response

The error response. The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud: |Error Code|Description| |------------------|------------------| |27000|Default locale for site it not set.| |27002|Unable to retrieve the locale list.|
Body ()
Root Schema : errorModel
Type: object
Show Source
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top