Skip to content

Translations

Languages and translated content. Every example sets SOOQUNA_TOKEN from the environment; see authentication. Responses are from a test store, cut to two items per list.

Endpoint Method Path
List the store’s published languages GET /locales
Get a resource’s translations GET /translations
List resources and their translation status GET /translations/resources
Save translations PUT /translations

GET /locales · Scope: read_translations

Terminal window
curl -X GET "https://api.sooquna.com/admin/api/2026-10/locales" \
-H "X-Sooquna-Access-Token: $SOOQUNA_TOKEN"
Response 200
{
"available": [
{"code": "ur", "dir": "rtl", "endonym": "اردو", "name": "Urdu"},
{"code": "fa", "dir": "rtl", "endonym": "فارسی", "name": "Persian"}
],
"limit": 5,
"locales": [
{
"code": "en",
"dir": "ltr",
"endonym": "English",
"name": "English",
"primary": true,
"published": true
},
{
"code": "ar",
"dir": "rtl",
"endonym": "العربية",
"name": "Arabic",
"primary": false,
"published": true
}
],
"settings": {
"arabic_digits": false,
"hijri_dates": false,
"money_formats": {},
"translate_handles": false
}
}

GET /translations · Scope: read_translations

Parameter In Description
resource_type query For example product.
resource_id query An ID, as in the example.
locale query For example ar.
Terminal window
curl -X GET "https://api.sooquna.com/admin/api/2026-10/translations?resource_type=product&resource_id=0193a1b2-c3d4-7e5f-8a6b-000000000005&locale=ar" \
-H "X-Sooquna-Access-Token: $SOOQUNA_TOKEN"
Response 200
{
"fields": [
{
"key": "title",
"kind": "text",
"outdated": false,
"source": "Embroidered linen abaya",
"value": ""
},
{
"key": "handle",
"kind": "handle",
"outdated": false,
"source": "embroidered-linen-abaya",
"value": ""
}
],
"id": "0193a1b2-c3d4-7e5f-8a6b-000000000005",
"locale": "ar",
"type": "product"
}

List resources and their translation status

Section titled “List resources and their translation status”

GET /translations/resources · Scope: read_translations

Parameter In Description
type query For example product.
locale query For example ar.
Terminal window
curl -X GET "https://api.sooquna.com/admin/api/2026-10/translations/resources?type=product&locale=ar" \
-H "X-Sooquna-Access-Token: $SOOQUNA_TOKEN"
Response 200
{
"data": [
{
"fields": 6,
"id": "0193a1b2-c3d4-7e5f-8a6b-000000000005",
"outdated": 0,
"title": "Embroidered linen abaya",
"translated": 0,
"type": "product"
}
],
"types": ["product", "collection"]
}

PUT /translations · Scope: write_translations

Terminal window
curl -X PUT "https://api.sooquna.com/admin/api/2026-10/translations" \
-H "X-Sooquna-Access-Token: $SOOQUNA_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"resource_type": "product",
"resource_id": "0193a1b2-c3d4-7e5f-8a6b-000000000005",
"locale": "ar",
"values": {
"title": "عباية كتان مطرزة",
"body_html": "<p>كتان ناعم مطرز يدوياً في الدوحة.</p>"
}
}'
Response 200
{
"fields": [
{
"key": "title",
"kind": "text",
"outdated": false,
"source": "Embroidered linen abaya",
"value": "عباية كتان مطرزة"
},
{
"key": "body_html",
"kind": "html",
"outdated": false,
"source": "",
"value": "<p>كتان ناعم مطرز يدوياً في الدوحة.</p>"
}
],
"id": "0193a1b2-c3d4-7e5f-8a6b-000000000005",
"locale": "ar",
"type": "product"
}

Was this page helpful?