Requires read_translation access scope.
For more info, refer to:
GET https://{handle}.myshopline.com/admin/openapi/v20260301/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 string required
    The field must be set to the fixed value application/json; charset=utf-8.
  • Authorization string required
    The access token for the API resource. Refer to App authorization to obtain the access token, and then pass the obtained token in the Bearer format.
    Example:
    Bearer eyJhbGciOiJIUzUxMiJ9.eyJhcHBLZXkiOiJmMjM3OWQyMTYyOGMzM2QxMWRiMWZkYjY5N2EzZjdjMjZlNGMwYTA5Iiwic2VsbGVySWQiOiIyMDAwMjM0ODgwIiwic3RvcmVJZCI6IjE2NzIzNjk3Mjk2MDYiLCJ2ZXJzaW9uIjoiVjIiLCJkb21haW4iOiJodHRwczovL3NsLW9wZW4tc2cubXlzaG9wbGluZS5jb20iLCJ0aW1lc3RhbXAiOjE2NzUzMTk0OTI0MzksImlzcyI6Inlzb3VsIiwiZXhwIjoxNzY5OTI3NDkyfQ.UwQzomM2veGCUaOZ0paUxq5dpc7DXuhHYFvsQ_uIAKduzWcb_j2E4q_36El83sp145D4cKbpcE5KCeeIz-JNQw
Status Codes
For the complete list of codes and messages, see Http status code.

Response Headers
  • traceId
    A globally unique identifier for the request. It is used to track the request flow throughout the system, allowing for easy location and debugging when issues arise.
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/v20260301

ParamOptions

header required

Language

curl --request GET \
--url https://openapiceshidianpu.myshopline.com/admin/openapi/v20260301/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"
},
{
"name": "Arabic",
"iso_code": "ar"
},
{
"iso_code": "el",
"name": "Greek"
},
{
"iso_code": "bg",
"name": "Bulgarian"
},
{
"name": "Romanian",
"iso_code": "ro"
},
{
"iso_code": "hu",
"name": "Hungarian"
},
{
"iso_code": "lt",
"name": "Lithuanian"
},
{
"name": "Vietnamese",
"iso_code": "vi"
},
{
"iso_code": "ms",
"name": "Malay"
},
{
"name": "Swedish",
"iso_code": "sv"
},
{
"name": "Norwegian (Bokmål)",
"iso_code": "nb"
},
{
"iso_code": "cs",
"name": "Czech"
},
{
"iso_code": "fi",
"name": "Finnish"
},
{
"iso_code": "da",
"name": "Danish"
},
{
"name": "Latvian",
"iso_code": "lv"
},
{
"iso_code": "et",
"name": "Estonian"
},
{
"iso_code": "hr",
"name": "Croatian"
},
{
"name": "Hindi",
"iso_code": "hi"
},
{
"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?