Get policy translation
Fetch one policy translation.
Returns stored translated Policy fields for one locale, including whether the translation is out of date. Translation routes use the policy UUID returned by list/get, while policy CRUD routes use the fixed policy type. 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
|
uuid |
Policy id. |
locale
required
|
string |
Enabled non-default store locale. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_INVALID_POLICY_IDThe policy id is not a valid UUID.
-
400TRANSLATION_LOCALE_REQUIREDLocale is required.
-
400TRANSLATION_LOCALE_NOT_ENABLEDLocale is not enabled for this store.
-
400TRANSLATION_DEFAULT_LOCALE_FORBIDDENTranslations cannot target the store's default locale.
-
400TRANSLATION_RESOURCE_ID_NOT_IN_STOREThe policy does not exist in this store.
-
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Set policy translation
Set one policy translation.
Writes translated Policy fields for one locale. Empty values, and content with no text and no media, clear the matching field translation. The {id} value is the policy UUID returned by list/get, not the policy type. Rich-text content is cleaned the same way as the source: when unsafe markup is removed, the response lists a warning in data.content_warnings (shown in the example); otherwise the response has no data. Unknown or wrongly typed body properties are refused. A translated slug must be unique among the URLs of this type in that language (a translated slug, or the source slug where there is none). 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
|
uuid |
Policy 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 |
Translated values keyed by field. Allowed fields: |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_INVALID_REQUEST_BODYThe body is not valid JSON or not a JSON object.
-
400STORE_API_INVALID_POLICY_IDThe policy id is not a valid UUID.
-
400TRANSLATION_LOCALE_REQUIREDLocale is required.
-
400TRANSLATION_LOCALE_NOT_ENABLEDLocale is not enabled for this store.
-
400TRANSLATION_DEFAULT_LOCALE_FORBIDDENTranslations cannot target the store's default locale.
-
400TRANSLATION_RESOURCE_ID_NOT_IN_STOREThe policy does not exist in this store.
-
400TRANSLATION_FIELD_NOT_TRANSLATABLEField is not translatable for Policies.
-
400TRANSLATION_FIELDS_REQUIREDAt least one translated field is required.
-
400TRANSLATION_STAGING_INVALID_CONTROL_CHARSA translated value contains an unsupported control character.
error.details.fieldnames the field. -
400TRANSLATION_FIELD_EXCEEDS_BYTE_LIMITA translated value is longer than its field's limit (the same max length as the source field in
/policies/limits). The message names the field and its limit. -
400TRANSLATION_FIELD_VALUE_TOO_LONGA translated value is larger than the store-wide translation value size limit.
-
400TRANSLATION_NO_SOURCE_TEXTA non-empty translation requires source text for that field.
-
409POLICY_SLUG_DUPLICATETranslated slug is already the URL another policy shows in this language.
error.details.existing_idis the policy that holds it. -
400POLICY_SLUG_INVALID_FORMATTranslated slug is not valid for policy URLs.
-
400POLICY_TITLE_INVALID_CHARSThe translated title contains a line break or another unsupported control character.
-
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. -
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Batch get policy translations
Fetch policy translations in batch.
Returns translated Policy fields for up to 100 policy ids in one locale. ids is required: send 1 to 100 comma-separated ids; duplicates count once. 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 Policy ids, 1 to 100. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400TRANSLATION_LOCALE_REQUIREDLocale is required.
-
400TRANSLATION_LOCALE_NOT_ENABLEDLocale is not enabled for this store.
-
400TRANSLATION_DEFAULT_LOCALE_FORBIDDENTranslations cannot target the store's default locale.
-
400TRANSLATION_RESOURCE_ID_NOT_IN_STOREThe policy does not exist in this store.
-
400TRANSLATION_RESOURCE_ID_REQUIREDidsis missing or names no policy. -
400TRANSLATION_TOO_MANY_RESOURCESidsnames more than 100 policy ids. -
400STORE_API_INVALID_POLICY_IDOne policy id is not a valid UUID.
-
400STORE_API_QUERY_PARAMETER_UNKNOWNThe query string has a parameter this request does not accept. The message and
error.details.allowed_parameterslist the ones it does. -
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Batch set policy translations
Set policy translations for any languages in one call.
Each row is one policy 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 policy in one locale) and at most one row per policy 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 translated slug must be unique among the URLs of this type in that language (a translated slug, or the source slug where there is none). Of two rows of one call that would share a value in one language, the earlier row keeps it and the later row fails with the duplicate code and details.existing_id, the earlier row's id. Rows are saved independently, each checked against the values stored when it is saved, so two rows that swap values (one row takes the value another row's resource holds, and that row takes a different one) fail: the row that takes a held value is refused with the duplicate code. To swap them, import a translation CSV with both rows (POST /imports, type translations): an import checks consecutive rows together, so a swap is accepted when its two rows sit next to each other in the file. 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}. Allowed fields: |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_INVALID_REQUEST_BODYThe body is not valid JSON or not a JSON object.
-
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. -
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Webhook events#
Subscribe to these events when your integration mirrors localized policies. Update and clear events identify the locale and changed fields. One write can emit both events when it sets some fields and clears others. No event announces that translations became outdated. A translation is outdated (is_outdated: true) once its source field changes, and the policy update event reports that change, so after an update that changes a translated field, treat that field's stored translations in every locale as outdated until they are updated or cleared.
Policy translations updated
Fired when a policy's translations are added or updated for a locale. Payload carries only the fields that changed. It and policies/update can arrive in any order.
Payload fields
| Field | Type | Description |
|---|---|---|
policy |
object |
Always present |
policy.id |
string |
Always present |
policy.type |
string |
Always present |
policy.title |
string |
Always present |
policy.slug |
string |
Always present |
policy.content |
string | null |
Always present
The policy's sanitized HTML, or null when it has none. Always present. |
policy.status |
string |
Always present |
policy.seo_title |
string | null |
Always present
The policy's SEO title, or null when it has none (the storefront then uses the title). Always present. |
policy.seo_description |
string | null |
Always present
The policy's SEO description, or null when it has none. Always present. |
policy.robots |
string |
Always present
The policy's search visibility: index, or noindex to keep it out of search results and the sitemap. |
policy.social_image_id |
string | null |
Always present
The Media library image shown when the policy is shared, or null when none is set (the store's share image, then its logo, is used). Deleting the image from the Media library sets it to null and sends policies/update with changed_fields social_image_id. Always present. |
policy.created_at |
string |
Always present |
policy.updated_at |
string |
Always present |
locale |
string |
Always present |
translation |
object |
Always present |
translation.title |
string | null |
Selectable in the Payload builder |
translation.slug |
string | null |
Selectable in the Payload builder |
translation.content |
string | null |
Selectable in the Payload builder |
translation.seo_title |
string | null |
Selectable in the Payload builder |
translation.seo_description |
string | null |
Selectable in the Payload builder |
updated_at |
string |
Always present
When the translations were saved, in the store's time zone with its offset (RFC 3339). |
Policy translations deleted
Fired when a policy's translations are cleared for one or more fields in a locale. It and policies/update can arrive in any order.
Payload fields
| Field | Type | Description |
|---|---|---|
policy |
object |
Always present |
policy.id |
string |
Always present |
policy.type |
string |
Always present |
policy.title |
string |
Always present |
policy.slug |
string |
Always present |
policy.content |
string | null |
Always present
The policy's sanitized HTML, or null when it has none. Always present. |
policy.status |
string |
Always present |
policy.seo_title |
string | null |
Always present
The policy's SEO title, or null when it has none (the storefront then uses the title). Always present. |
policy.seo_description |
string | null |
Always present
The policy's SEO description, or null when it has none. Always present. |
policy.robots |
string |
Always present
The policy's search visibility: index, or noindex to keep it out of search results and the sitemap. |
policy.social_image_id |
string | null |
Always present
The Media library image shown when the policy is shared, or null when none is set (the store's share image, then its logo, is used). Deleting the image from the Media library sets it to null and sends policies/update with changed_fields social_image_id. Always present. |
policy.created_at |
string |
Always present |
policy.updated_at |
string |
Always present |
locale |
string |
Always present |
translation |
object |
Always present |
translation.title |
string | null |
Selectable in the Payload builder |
translation.slug |
string | null |
Selectable in the Payload builder |
translation.content |
string | null |
Selectable in the Payload builder |
translation.seo_title |
string | null |
Selectable in the Payload builder |
translation.seo_description |
string | null |
Selectable in the Payload builder |
updated_at |
string |
Always present
When the translations were deleted, in the store's time zone with its offset (RFC 3339). |