Get a shop metafield translation
Fetch one translated shop-level custom-data value.
The definition must be visible to the token and translatable. Reading a value translation requires both the owner read scope and read_translations. Setting or clearing it requires both the owner write scope and write_translations; an empty value does not bypass either scope. Staff permissions and hosted MCP grants likewise require owner access plus settings.languages access at the matching read/write level. 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. Staff-created merchant API tokens also require the creator's current settings.metafield_definitions:read permission. Store owners are permitted; installed apps keep their scope and ownership checks.
Path parameters
| Name | Type | Description |
|---|---|---|
namespace
required
|
string |
Metafield definition namespace. URL-encode |
key
required
|
string |
Metafield definition key. |
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.
-
400METAFIELD_NAMESPACE_INVALIDThe namespace or key path segment is not valid URL encoding.
-
400METAFIELD_KEY_NOT_FOUNDThe namespace and key do not identify a translatable definition visible to this token.
-
400TRANSLATION_LOCALE_REQUIREDLocale is missing.
-
400TRANSLATION_LOCALE_NOT_ENABLEDLocale is not enabled for this store.
-
400TRANSLATION_DEFAULT_LOCALE_FORBIDDENThe default locale cannot be a translation target.
-
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 a shop metafield translation
Set or clear one translated shop-level custom-data value.
Sets this value's translation in an enabled non-default locale without changing the source value. App tokens can translate only definitions their app owns. Reading a value translation requires both the owner read scope and read_translations. Setting or clearing it requires both the owner write scope and write_translations; an empty value does not bypass either scope. Staff permissions and hosted MCP grants likewise require owner access plus settings.languages access at the matching read/write level. Send an explicit string in value; omit neither the field nor its value, and do not send null. An empty string clears the translation. For list.string, send a JSON-encoded string array with one translated item for each source item, in the same order. Staff-created merchant API tokens also require the creator's current settings.metafield_definitions:write permission. Store owners are permitted; installed apps keep their scope and ownership checks.
Path parameters
| Name | Type | Description |
|---|---|---|
namespace
required
|
string |
Metafield definition namespace. URL-encode |
key
required
|
string |
Metafield definition key. |
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 |
|---|---|---|
value
required
|
string |
Translated value; an empty string clears it. |
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.
-
400METAFIELD_NAMESPACE_INVALIDThe namespace or key path segment is not valid URL encoding.
-
400METAFIELD_KEY_NOT_FOUNDThe namespace and key do not identify a translatable definition visible to this token.
-
400TRANSLATION_LOCALE_REQUIREDLocale is missing.
-
400TRANSLATION_LOCALE_NOT_ENABLEDLocale is not enabled for this store.
-
400TRANSLATION_DEFAULT_LOCALE_FORBIDDENThe default locale cannot be a translation target.
-
403METAFIELD_WRITE_APP_OWN_ONLYAn app token can translate only definitions its app owns. Visible merchant-owned and shared definitions of other apps return this code.
-
403METAFIELD_WRITE_MERCHANT_READ_ONLYA non-app token addressed an app-owned definition whose merchant_access is not read_write.
-
400STORE_API_INVALID_REQUEST_BODYThe body is not one JSON object with only a value field.
-
400INVALID_INPUTvalue is missing or null; send an empty string to clear the translation.
-
400TRANSLATION_LIST_LENGTH_MISMATCHThe translated list must have the same number of items as the source list.
-
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 shop metafields. 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 shop metafield 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.
Store metafield translations updated
Fired when a store metafield's translation is added or updated for a locale. metafield identifies the metafield by its owner and definition (ids, namespace, key, name, type); it is not the full metafield or its owner. Read them from the Store API for other fields.
Payload fields
| Field | Type | Description |
|---|---|---|
metafield |
object |
Always present |
metafield.store_name |
string |
Always present |
metafield.definition_id |
string |
Always present |
metafield.namespace |
string |
Always present |
metafield.key |
string |
Always present |
metafield.name |
string |
Always present |
metafield.type |
string |
Always present |
metafield.app_id |
string | null |
Selectable in the Payload builder |
metafield.app_access |
string |
Selectable in the Payload builder |
metafield.merchant_access |
string |
Selectable in the Payload builder |
locale |
string |
Always present |
translation |
object |
Always present |
translation.value |
string | null |
Always present |
updated_at |
string |
Always present |
Store metafield translations deleted
Fired when a store metafield's translation is cleared for a locale. metafield identifies the metafield by its owner and definition (ids, namespace, key, name, type); it is not the full metafield or its owner. Read them from the Store API for other fields.
Payload fields
| Field | Type | Description |
|---|---|---|
metafield |
object |
Always present |
metafield.store_name |
string |
Always present |
metafield.definition_id |
string |
Always present |
metafield.namespace |
string |
Always present |
metafield.key |
string |
Always present |
metafield.name |
string |
Always present |
metafield.type |
string |
Always present |
metafield.app_id |
string | null |
Selectable in the Payload builder |
metafield.app_access |
string |
Selectable in the Payload builder |
metafield.merchant_access |
string |
Selectable in the Payload builder |
locale |
string |
Always present |
translation |
object |
Always present |
translation.value |
string | null |
Always present |
updated_at |
string |
Always present |