Shop Metafield translations

Read and write localized shop metafield fields through the Store API.

Get a shop metafield translation

GET read_storefront + read_translations

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 : in app namespaces such as app:<slug>.

Example: details
key required string

Metafield definition key.

Example: subtitle
locale required string

Enabled non-default store locale.

Example: fr

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 400 METAFIELD_NAMESPACE_INVALID

    The namespace or key path segment is not valid URL encoding.

  • 400 METAFIELD_KEY_NOT_FOUND

    The namespace and key do not identify a translatable definition visible to this token.

  • 400 TRANSLATION_LOCALE_REQUIRED

    Locale is missing.

  • 400 TRANSLATION_LOCALE_NOT_ENABLED

    Locale is not enabled for this store.

  • 400 TRANSLATION_DEFAULT_LOCALE_FORBIDDEN

    The default locale cannot be a translation target.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

Set a shop metafield translation

PUT write_storefront + write_translations

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 : in app namespaces such as app:<slug>.

Example: details
key required string

Metafield definition key.

Example: subtitle
locale required string

Enabled non-default store locale.

Example: fr

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.

Example: Fait main à Lisbonne

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 400 METAFIELD_NAMESPACE_INVALID

    The namespace or key path segment is not valid URL encoding.

  • 400 METAFIELD_KEY_NOT_FOUND

    The namespace and key do not identify a translatable definition visible to this token.

  • 400 TRANSLATION_LOCALE_REQUIRED

    Locale is missing.

  • 400 TRANSLATION_LOCALE_NOT_ENABLED

    Locale is not enabled for this store.

  • 400 TRANSLATION_DEFAULT_LOCALE_FORBIDDEN

    The default locale cannot be a translation target.

  • 403 METAFIELD_WRITE_APP_OWN_ONLY

    An app token can translate only definitions its app owns. Visible merchant-owned and shared definitions of other apps return this code.

  • 403 METAFIELD_WRITE_MERCHANT_READ_ONLY

    A non-app token addressed an app-owned definition whose merchant_access is not read_write.

  • 400 STORE_API_INVALID_REQUEST_BODY

    The body is not one JSON object with only a value field.

  • 400 INVALID_INPUT

    value is missing or null; send an empty string to clear the translation.

  • 400 TRANSLATION_LIST_LENGTH_MISMATCH

    The translated list must have the same number of items as the source list.

  • 400 STORE_API_BODY_PROPERTY_UNKNOWN

    The body has a property this request does not accept. The message and error.details.properties list the allowed and required properties (nested for each object or list of objects).

  • 400 STORE_API_BODY_PROPERTY_INVALID

    A body property has the wrong type (error.details.expected_type). The message and error.details.properties list the allowed and required properties.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 429 RATE_LIMITED

    The 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

EVENT store_metafields/translations/update App scope: read_storefront, read_translations Staff permission: settings.metafield_definitions:write

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

EVENT store_metafields/translations/delete App scope: read_storefront, read_translations Staff permission: settings.metafield_definitions:write

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