Requires read_translation access scope.
For more info , refer to:
GET https://{handle}.myshopline.com/admin/openapi/v20250601/store/available_locales.json
handle : The store's unique identifier, which is the prefix of the store's domain name. For example, if a store's domain name is open001.myshopline.com , the store handle is open001 .
Query the list of available languages for customers in the store. You can use this API to query all available languages for the store, including both currently active and inactive languages.
Request Headers
  • Content-Type required
    The value of this field is fixed to application/json; charset=utf-8
  • Authorization string required
    The access token for the API. Please refer to App authorization to obtain the access token, and then put the obtained access token into the API request header in Bearer Token.
    Example:
    Bearer eyJhbGciOiJIUzUxMiJ9.eyJhcHBLZXkiOiJmMjM3OWQyMTYyOGMzM2QxMWRiMWZkYjY5N2EzZjdjMjZlNGMwYTA5Iiwic2VsbGVySWQiOiIyMDAwMjM0ODgwIiwic3RvcmVJZCI6IjE2NzIzNjk3Mjk2MDYiLCJ2ZXJzaW9uIjoiVjIiLCJkb21haW4iOiJodHRwczovL3NsLW9wZW4tc2cubXlzaG9wbGluZS5jb20iLCJ0aW1lc3RhbXAiOjE2NzUzMTk0OTI0MzksImlzcyI6Inlzb3VsIiwiZXhwIjoxNzY5OTI3NDkyfQ.UwQzomM2veGCUaOZ0paUxq5dpc7DXuhHYFvsQ_uIAKduzWcb_j2E4q_36El83sp145D4cKbpcE5KCeeIz-JNQw
Response
For more information about status codes, see Http status code.

Response Headers
  • traceId
    traceId
Response Body
  • dataobject
    Response
  • available_localesobject[]
    List of the store's available languages.
  • iso_code string
    Language code that follows the IETF BCP 47 standard. Example: en
    Example: en
  • name string
    Language name. Example: English
    Example: English
API Explorer
https://openapiceshidianpu.myshopline.com/admin/openapi/v20250601

ParamOptions

header required

Language

curl --request GET \
--url https://openapiceshidianpu.myshopline.com/admin/openapi/v20250601/store/available_locales.json \
--header 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJhcHBLZXkiOiJmMjM3OWQyMTYyOGMzM2QxMWRiMWZkYjY5N2EzZjdjMjZlNGMwYTA5Iiwic2VsbGVySWQiOiIyMDAwMjM0ODgwIiwic3RvcmVJZCI6IjE2NzIzNjk3Mjk2MDYiLCJ2ZXJzaW9uIjoiVjIiLCJkb21haW4iOiJodHRwczovL3NsLW9wZW4tc2cubXlzaG9wbGluZS5jb20iLCJ0aW1lc3RhbXAiOjE2NzUzMTk0OTI0MzksImlzcyI6Inlzb3VsIiwiZXhwIjoxNzY5OTI3NDkyfQ.UwQzomM2veGCUaOZ0paUxq5dpc7DXuhHYFvsQ_uIAKduzWcb_j2E4q_36El83sp145D4cKbpcE5KCeeIz-JNQw' \
--header 'Content-Type: application/json; charset=utf-8' \
--header 'accept: application/json'
Examples
Query all available languages of the store
Response
{
"data": {
"available_locales": [
{
"iso_code": "en",
"name": "English"
},
{
"iso_code": "zh-hans-cn",
"name": "Chinese (Simplified)"
},
{
"iso_code": "zh-hant-tw",
"name": "Chinese (Traditional)"
},
{
"iso_code": "de",
"name": "German"
},
{
"iso_code": "ja",
"name": "Japanese"
},
{
"iso_code": "fr",
"name": "French"
},
{
"iso_code": "th",
"name": "Thai"
},
{
"iso_code": "es",
"name": "Spanish"
},
{
"iso_code": "ru",
"name": "Russian"
},
{
"iso_code": "pt",
"name": "Portuguese (Brazil)"
},
{
"iso_code": "it",
"name": "Italian"
},
{
"iso_code": "nl",
"name": "Dutch"
},
{
"iso_code": "pl",
"name": "Polish"
},
{
"iso_code": "ko",
"name": "Korean"
},
{
"iso_code": "id",
"name": "Indonesian"
},
{
"iso_code": "ar",
"name": "Arabic"
},
{
"iso_code": "el",
"name": "Greek"
},
{
"iso_code": "bg",
"name": "Bulgarian"
},
{
"iso_code": "ro",
"name": "Romanian"
},
{
"iso_code": "hu",
"name": "Hungarian"
},
{
"iso_code": "lt",
"name": "Lithuanian"
},
{
"iso_code": "vi",
"name": "Vietnamese"
},
{
"iso_code": "ms",
"name": "Malay"
},
{
"iso_code": "sv",
"name": "Swedish"
},
{
"iso_code": "nb",
"name": "Norwegian (Bokmål)"
},
{
"iso_code": "cs",
"name": "Czech"
},
{
"iso_code": "fi",
"name": "Finnish"
},
{
"iso_code": "da",
"name": "Danish"
},
{
"iso_code": "lv",
"name": "Latvian"
},
{
"iso_code": "et",
"name": "Estonian"
},
{
"iso_code": "hr",
"name": "Croatian"
},
{
"iso_code": "hi",
"name": "Hindi"
},
{
"iso_code": "tr",
"name": "Turkish"
},
{
"iso_code": "sk",
"name": "Slovak"
},
{
"iso_code": "sl",
"name": "Slovenian"
},
{
"iso_code": "pt-pt",
"name": "Portuguese (Portugal)"
}
]
}
}
Was this article helpful to you?