Translate the content of an SMS or WhatsApp template (one message type and channel, addressed by the id that List message templates returns) for an enabled non-default store locale. Reads require read_marketing and read_translations; writes require write_marketing and write_translations. A customer whose language has a translation receives it; every other customer receives the template's own text.
A translation keeps the original's values and tags exactly ({{ order.number }}, {% if ... %}): only the words around them change. One that changes, adds or drops a value or tag is refused with MARKETING_TRANSLATION_VARIABLES_MISMATCH, and details.variables lists what to keep. Blank text is refused with MESSAGE_TEMPLATE_CONTENT_REQUIRED and text over the template's max_content_length with MESSAGE_TEMPLATE_CONTENT_TOO_LONG. An empty string clears a translation. Editing or resetting the original reports its translations outdated (is_outdated: true) until they are updated. Store Admin, the Tringify mobile app, translation CSV (message_template), AI translation and MCP write the same translations, and each change sends message_templates/translations/update, or message_templates/translations/delete when a translation is cleared, like every translatable resource. message_templates/update is sent only when the template's own text is edited or reset.
Batch get message template translations
Fetch message template translations in batch.
A message template is one SMS or WhatsApp text: one message type and channel, addressed here by the id that List message templates and Get a message template return. Its content translates per store language; a customer whose language has a translation receives it, every other customer the template's own text. A translation keeps the original's values and tags exactly ({{ ... }} and {% ... %}, in any order within the same block): only the text around them changes, and one that does not is refused with MARKETING_TRANSLATION_VARIABLES_MISMATCH and details.variables listing what to keep. It must not be blank (MESSAGE_TEMPLATE_CONTENT_REQUIRED) and holds at most the template's max_content_length characters (MESSAGE_TEMPLATE_CONTENT_TOO_LONG). A translation written against an earlier original is reported outdated. Store Admin, the Tringify mobile app, translation CSV (resource message_template), AI translation and MCP translate the same texts. Each change sends message_templates/translations/update, or message_templates/translations/delete when a translation is cleared. Returns a resources entry keyed by message_template:{id} for each requested template (at most 100 per call); a template without a translation has an empty object. Fields without a translation in this locale are omitted from the response. An omitted field is not empty: shoppers see the store's base-language value, which the resource's own GET endpoint returns.
Path parameters
| Name | Type | Description |
|---|---|---|
locale
required
|
string |
Enabled non-default store locale. |
Query parameters
| Name | Type | Description |
|---|---|---|
ids
required
|
string |
Comma-separated message template IDs. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
400TRANSLATION_LOCALE_NOT_ENABLEDLocale is not enabled for this store.
-
400TRANSLATION_DEFAULT_LOCALE_FORBIDDENTranslations cannot target the store's default locale, the language of the template's own text.
-
400TRANSLATION_RESOURCE_ID_REQUIREDAt least one template ID is required.
-
400TRANSLATION_INVALID_RESOURCE_IDA template ID is not a UUID.
-
400TRANSLATION_RESOURCE_ID_NOT_IN_STOREA template does not exist in this store.
-
400TRANSLATION_TOO_MANY_RESOURCESThe request exceeds the translation batch resource limit.
Batch set message template translations
Set template translations for any languages in one call.
A message template is one SMS or WhatsApp text: one message type and channel, addressed here by the id that List message templates and Get a message template return. Its content translates per store language; a customer whose language has a translation receives it, every other customer the template's own text. A translation keeps the original's values and tags exactly ({{ ... }} and {% ... %}, in any order within the same block): only the text around them changes, and one that does not is refused with MARKETING_TRANSLATION_VARIABLES_MISMATCH and details.variables listing what to keep. It must not be blank (MESSAGE_TEMPLATE_CONTENT_REQUIRED) and holds at most the template's max_content_length characters (MESSAGE_TEMPLATE_CONTENT_TOO_LONG). A translation written against an earlier original is reported outdated. Store Admin, the Tringify mobile app, translation CSV (resource message_template), AI translation and MCP translate the same texts. Each change sends message_templates/translations/update, or message_templates/translations/delete when a translation is cleared. Each row is one template in one language: id, locale (any enabled non-default store locale) and fields. Rows for several languages can be mixed in one call; send at most 100 rows (one row = one template in one locale) and at most one row per template and locale. Each row is saved on its own: a failing row never stops the others. Empty values clear the matching field translation; omitted fields keep their translation. Every row is validated exactly like the single translation endpoint. The response has totals (rows, saved, failed) and one results entry per row in request order: {id, locale, status} with status saved or failed. A failed row carries the full error (code, message, details); its codes are the single endpoint's codes plus TRANSLATION_ROW_DUPLICATE. A saved rich-text row whose unsafe markup was removed lists warnings. A top-level code and message give the outcome: TRANSLATIONS_SAVED (200, every row saved), TRANSLATIONS_PARTIALLY_SAVED (200, success: true; the message counts saved and failed rows and names the failure reasons, e.g. "2 saved, 1 failed. No source text found for the requested fields (description).") TRANSLATIONS_NOT_SAVED_RETRY (503 with a Retry-After header, success: false; no row saved because every row failed only with TRANSLATION_WRITE_BUSY, so the same call can be sent again after error.details.retry_after_seconds) or TRANSLATIONS_NOT_SAVED (422, success: false; no row saved and at least one row failed for another reason). Both carry the same totals and results in error.details. With an Idempotency-Key, repeating the same request re-applies nothing that already saved and retries the failed rows. A write waits at most 2 seconds for other translation writes of the same item or of a clashing name or slug (for example a translation CSV import writing the same language); writes of other items, types and languages never wait. A row or call that fails with TRANSLATION_WRITE_BUSY (HTTP 503) saved nothing: send it again after error.details.retry_after_seconds (the call's Retry-After header says the same). Every row or call either saved or reports an error; none is left in an unknown state.
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Idempotency-Key
|
string |
Optional key for this translation write. Reuse it only with the same payload when repeating the request. |
Body parameters
| Name | Type | Description |
|---|---|---|
translations
required
|
array<object> |
Up to 100 rows shaped as {id, locale, fields}. The only allowed field key is |
Errors
-
401UNAUTHORIZEDAuthorization header missing, malformed, or token invalid/expired.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403STORE_API_SCOPE_REQUIREDToken is valid but lacks the required scope for this call.
-
429RATE_LIMITEDThe token's request allowance is exhausted. Retry after the Retry-After header.
-
400STORE_API_INVALID_REQUEST_BODYThe body is not valid JSON or a row has an unknown key or a wrongly typed value.
-
400TRANSLATION_NO_WRITES_PROVIDEDtranslations is empty.
-
400TRANSLATION_TOO_MANY_ROWSMore than 100 rows; nothing is written.
-
503TRANSLATIONS_NOT_SAVED_RETRYNo row saved and every row failed only with
TRANSLATION_WRITE_BUSY: send the same request again aftererror.details.retry_after_seconds(also theRetry-Afterheader).error.detailsalso hastotalsand oneresultsentry per row with its error. -
422TRANSLATIONS_NOT_SAVEDNo row saved and at least one row failed with an error that sending again will not fix;
error.detailshastotalsand oneresultsentry per row with its error. -
400STORE_API_BODY_PROPERTY_UNKNOWNThe body has a property this request does not accept. The message and
error.details.propertieslist the allowed and required properties (nestedfor each object or list of objects). -
400STORE_API_BODY_PROPERTY_INVALIDA body property has the wrong type (
error.details.expected_type). The message anderror.details.propertieslist the allowed and required properties.
Get a message template translation
Fetch one message template's text in another store language.
A message template is one SMS or WhatsApp text: one message type and channel, addressed here by the id that List message templates and Get a message template return. Its content translates per store language; a customer whose language has a translation receives it, every other customer the template's own text. A translation keeps the original's values and tags exactly ({{ ... }} and {% ... %}, in any order within the same block): only the text around them changes, and one that does not is refused with MARKETING_TRANSLATION_VARIABLES_MISMATCH and details.variables listing what to keep. It must not be blank (MESSAGE_TEMPLATE_CONTENT_REQUIRED) and holds at most the template's max_content_length characters (MESSAGE_TEMPLATE_CONTENT_TOO_LONG). A translation written against an earlier original is reported outdated. Store Admin, the Tringify mobile app, translation CSV (resource message_template), AI translation and MCP translate the same texts. Each change sends message_templates/translations/update, or message_templates/translations/delete when a translation is cleared. Returns the stored content translation in the selected locale with is_outdated; a template without a translation in this locale returns an empty fields object. Fields without a translation in this locale are omitted from the response. An omitted field is not empty: shoppers see the store's base-language value, which the resource's own GET endpoint returns.
Path parameters
| Name | Type | Description |
|---|---|---|
id
required
|
integer |
Message template ID. |
locale
required
|
string |
Enabled non-default store locale. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
400TRANSLATION_LOCALE_NOT_ENABLEDLocale is not enabled for this store.
-
400TRANSLATION_DEFAULT_LOCALE_FORBIDDENTranslations cannot target the store's default locale, the language of the template's own text.
-
400TRANSLATION_INVALID_RESOURCE_IDThe template ID is not a UUID.
-
400TRANSLATION_RESOURCE_ID_NOT_IN_STOREThe template does not exist in this store.
Set a message template translation
Set or clear one message template's text in another store language.
A message template is one SMS or WhatsApp text: one message type and channel, addressed here by the id that List message templates and Get a message template return. Its content translates per store language; a customer whose language has a translation receives it, every other customer the template's own text. A translation keeps the original's values and tags exactly ({{ ... }} and {% ... %}, in any order within the same block): only the text around them changes, and one that does not is refused with MARKETING_TRANSLATION_VARIABLES_MISMATCH and details.variables listing what to keep. It must not be blank (MESSAGE_TEMPLATE_CONTENT_REQUIRED) and holds at most the template's max_content_length characters (MESSAGE_TEMPLATE_CONTENT_TOO_LONG). A translation written against an earlier original is reported outdated. Store Admin, the Tringify mobile app, translation CSV (resource message_template), AI translation and MCP translate the same texts. Each change sends message_templates/translations/update, or message_templates/translations/delete when a translation is cleared. Only content is translatable. Send an empty string to clear the translation; customers in that language then receive the template's own text. A write waits at most 2 seconds for other translation writes of the same item or of a clashing name or slug (for example a translation CSV import writing the same language); writes of other items, types and languages never wait. A row or call that fails with TRANSLATION_WRITE_BUSY (HTTP 503) saved nothing: send it again after error.details.retry_after_seconds (the call's Retry-After header says the same). Every row or call either saved or reports an error; none is left in an unknown state.
Path parameters
| Name | Type | Description |
|---|---|---|
id
required
|
integer |
Message template ID. |
locale
required
|
string |
Enabled non-default store locale. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Idempotency-Key
|
string |
Optional key for this translation write. Reuse it only with the same payload when repeating the request. |
Body parameters
| Name | Type | Description |
|---|---|---|
translations
required
|
object |
Field-keyed translation values. The only allowed field is |
Errors
-
400TRANSLATION_LOCALE_NOT_ENABLEDLocale is not enabled for this store.
-
400TRANSLATION_DEFAULT_LOCALE_FORBIDDENTranslations cannot target the store's default locale, the language of the template's own text.
-
400TRANSLATION_INVALID_RESOURCE_IDThe template ID is not a UUID.
-
400TRANSLATION_RESOURCE_ID_NOT_IN_STOREThe template does not exist in this store.
-
400STORE_API_INVALID_REQUEST_BODYRequest body must be a JSON object containing only documented fields; error.details.field identifies an unknown field.
-
400TRANSLATION_FIELDS_REQUIREDtranslationsmust containcontent. -
400TRANSLATION_FIELD_NOT_TRANSLATABLEA field other than
contentwas sent. -
400MESSAGE_TEMPLATE_CONTENT_REQUIREDThe translation is blank (only spaces). Send an empty string to clear it.
-
400MESSAGE_TEMPLATE_CONTENT_TOO_LONGThe translation is longer than the template content limit;
details.maxis the limit. -
400MARKETING_TRANSLATION_VARIABLES_MISMATCHThe translation does not keep the original's values and tags;
details.variableslists them. -
400TRANSLATION_NO_SOURCE_TEXTThe template has no text to translate.
-
503TRANSLATION_WRITE_BUSYOther translation writes held the item or a clashing name or slug for more than 2 seconds; nothing was saved. Send the request again after
error.details.retry_after_seconds(also theRetry-Afterheader). -
400STORE_API_BODY_PROPERTY_UNKNOWNThe body has a property this request does not accept. The message and
error.details.propertieslist the allowed and required properties (nestedfor each object or list of objects). -
400STORE_API_BODY_PROPERTY_INVALIDA body property has the wrong type (
error.details.expected_type). The message anderror.details.propertieslist the allowed and required properties.