I’ve updated my atropim/atrocore modules and now, I can’t have the value of a static list in an entity directly from one api call on that entity, I have an “id” (before it was the value).
Where can I find the value for this kind of list now ? Can I send a specific attribute in the GET request to have the value in a language ? Or maybe an API with all id of translation like that I can create a map on my side to translate it ?
Hello Antoine!
You can request to receive all translations in the system for a specific language. To do this, make the following request: https://your_domain/api/v1/I18n?locale=locale_id, where locale_id is the record identifier for the language on the /#Locale page. If you need a translation for a specific field or option, you can make a request for the Translation entity: https://your_domain/api/v1/Translation. In this request, you can apply filters, just like when requesting a list of any entity. As a result, you will receive a similar response containing translations in different languages:
{
“list”: [
{
“id”: “c7d86aae959902c37b367cc88170b1df”,
“name”: “Product.fields.mainImage”,
“code”: “Product.fields.mainImage”,
“module”: “Pim”,
“isCustomized”: true,
“enUs”: “Main Image1”,
“frFr”: “Image principale”,
“deDe”: “Hauptbild”,
“ruRu”: “Основное изображение”,
“ukUa”: “Основне зображення”,
“createdAt”: “2025-08-19 12:39:41”,
“modifiedAt”: “2025-08-19 12:46:21”,
“createdById”: “system”,
“createdByName”: null,
“modifiedById”: “1”,
“modifiedByName”: “Main”
}
]
}
.
Please note that this request requires authorisation!
I would like to add that the code for any option of a static list is {EntityName}.options.{fieldCode}.optionId it can help you filter the Translation appropriately. You can play with that first in the Administrtaion > Labels and copy the generate api request in the console.