# Blog Post translations

Read and write localized blog post fields through the Store API.

## Get blog post translation

`GET /api/2025-01/blog/posts/{id}/translations/{locale}`

Returns stored translated Blog Post fields for one locale, including whether the translation is out of date. 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.

Scope: `read_blog + read_translations`

```curl
curl 'https://api-store.tringify.com/api/2025-01/blog/posts/5ff7d4ea-3250-4a4d-9d26-07f64d917d31/translations/fr' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN"
```

Response:

```json
{
  "data": {
    "fields": {
      "slug": {
        "is_outdated": false,
        "value": "notes-lancement",
        "word_count": 1
      },
      "title": {
        "is_outdated": false,
        "value": "Notes de lancement",
        "word_count": 2
      }
    }
  },
  "success": true
}
```

## Set blog post translation

`PUT /api/2025-01/blog/posts/{id}/translations/{locale}`

Writes translated Blog Post fields for one locale. Empty values clear the matching field translation. 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`. 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.

Scope: `write_blog + write_translations`

```curl
curl -X PUT 'https://api-store.tringify.com/api/2025-01/blog/posts/5ff7d4ea-3250-4a4d-9d26-07f64d917d31/translations/fr' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "translations": {
    "slug": "notes-lancement",
    "title": "Notes de lancement"
  }
}'
```

Response:

```json
{
  "code": "TRANSLATION_SAVED",
  "message": "Translation saved.",
  "success": true
}
```

## Batch get blog post translations

`GET /api/2025-01/blog/posts/translations/{locale}`

Returns translated Blog Post fields for up to 100 blog post 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.

Scope: `read_blog + read_translations`

```curl
curl 'https://api-store.tringify.com/api/2025-01/blog/posts/translations/fr?ids=5ff7d4ea-3250-4a4d-9d26-07f64d917d31,3a588f80-fd8c-4d46-af1b-00a1c4a7f85a' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN"
```

Response:

```json
{
  "data": {
    "resources": {
      "blog_post:5ff7d4ea-3250-4a4d-9d26-07f64d917d31": {
        "title": {
          "is_outdated": false,
          "value": "Notes de lancement",
          "word_count": 2
        }
      }
    }
  },
  "success": true
}
```

## Batch set blog post translations

`PUT /api/2025-01/blog/posts/translations`

Each row is one blog post 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 blog post in one locale) and at most one row per blog post 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.

Scope: `write_blog + write_translations`

```curl
curl -X PUT 'https://api-store.tringify.com/api/2025-01/blog/posts/translations' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "translations": [
    {
      "fields": {
        "title": "Notes de lancement"
      },
      "id": "5ff7d4ea-3250-4a4d-9d26-07f64d917d31",
      "locale": "fr"
    },
    {
      "fields": {
        "title": "Versionshinweise"
      },
      "id": "5ff7d4ea-3250-4a4d-9d26-07f64d917d31",
      "locale": "de"
    },
    {
      "fields": {
        "title": "Notas de lançamento"
      },
      "id": "5ff7d4ea-3250-4a4d-9d26-07f64d917d31",
      "locale": "pt-BR"
    }
  ]
}'
```

Response:

```json
{
  "code": "TRANSLATIONS_PARTIALLY_SAVED",
  "data": {
    "results": [
      {
        "id": "5ff7d4ea-3250-4a4d-9d26-07f64d917d31",
        "locale": "fr",
        "status": "saved"
      },
      {
        "id": "5ff7d4ea-3250-4a4d-9d26-07f64d917d31",
        "locale": "de",
        "status": "saved"
      },
      {
        "error": {
          "code": "TRANSLATION_LOCALE_NOT_ENABLED",
          "message": "Locale pt-BR is not enabled for this store."
        },
        "id": "5ff7d4ea-3250-4a4d-9d26-07f64d917d31",
        "locale": "pt-BR",
        "status": "failed"
      }
    ],
    "totals": {
      "failed": 1,
      "rows": 3,
      "saved": 2
    }
  },
  "message": "2 saved, 1 failed. Locale pt-BR is not enabled for this store.",
  "success": true
}
```

## Get a blog post metafield translation

`GET /api/2025-01/blog/posts/{id}/metafields/{namespace}/{key}/translations/{locale}`

The definition must be visible 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.

Scope: `read_blog + read_translations`

```curl
curl 'https://api-store.tringify.com/api/2025-01/blog/posts/5ff7d4ea-3250-4a4d-9d26-07f64d917d31/metafields/details/subtitle/translations/fr' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN"
```

Response:

```json
{
  "data": {
    "fields": {
      "value": {
        "is_outdated": false,
        "value": "Été",
        "word_count": 1
      }
    }
  },
  "success": true
}
```

## Set a blog post metafield translation

`PUT /api/2025-01/blog/posts/{id}/metafields/{namespace}/{key}/translations/{locale}`

Send an empty value to clear the locale's translation. 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.

Scope: `write_blog + write_translations`

```curl
curl -X PUT 'https://api-store.tringify.com/api/2025-01/blog/posts/5ff7d4ea-3250-4a4d-9d26-07f64d917d31/metafields/details/subtitle/translations/fr' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "value": "Lancement"
}'
```

Response:

```json
{
  "code": "TRANSLATION_SAVED",
  "message": "Translation saved.",
  "success": true
}
```

## Webhook events

Subscribe to these events when your integration mirrors localized blog posts. 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 blog post 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.

## Blog post translations updated

Event: `blog_posts/translations/update` · App scope: `read_blog, read_translations` · Staff permission: `blog:write`

Fired when a blog post's translations are added or updated for a locale. Payload carries only the fields that changed.

```json
{
  "blog_post": {
    "author": {
      "avatar_url": "https://assets.tringify.com/74e634ea-84ec-43b8-b66b-986214c2c5a3/upload/8f2a1c2b-9d4e-4a56-b789-0123456789ab.jpg",
      "bio": "Writes product and company updates.",
      "created_at": "2026-06-09T12:00:00-04:00",
      "id": "44bf70b7-88e2-4770-a30e-d7a1db522499",
      "name": "Avery Stone",
      "slug": "avery-stone",
      "social_image_id": null,
      "updated_at": "2026-06-09T12:00:00-04:00"
    },
    "author_ref": "44bf70b7-88e2-4770-a30e-d7a1db522499",
    "categories": [
      {
        "created_at": "2026-06-09T12:00:00-04:00",
        "description": "Updates and announcements from the company.",
        "id": "3a588f80-fd8c-4d46-af1b-00a1c4a7f85a",
        "name": "Company News",
        "post_count": 8,
        "robots": "index",
        "seo_description": "Read company updates, product notes, and announcements.",
        "seo_title": "Company News",
        "slug": "company-news",
        "social_image_id": null,
        "template_handle": "default_blog_category",
        "updated_at": "2026-06-09T12:00:00-04:00"
      }
    ],
    "comment_count": 4,
    "content": "\u003cp\u003eWe took the Trailblazer Tee on a 30km ridge hike.\u003c/p\u003e",
    "created_at": "2026-06-09T12:00:00-04:00",
    "excerpt": "We took the Trailblazer Tee on a 30km ridge hike.",
    "featured_image_cdn_url": null,
    "featured_image_id": null,
    "featured_image_url": null,
    "id": "5ff7d4ea-3250-4a4d-9d26-07f64d917d31",
    "publish_at": null,
    "published_at": "2026-06-09T12:00:00-04:00",
    "robots": "index",
    "seo_description": "Trail notes from 30km in our organic cotton tee.",
    "seo_title": "Field-Testing the Trailblazer Tee",
    "slug": "launch-notes",
    "social_image_id": null,
    "status": "published",
    "tags": [
      {
        "created_at": "2026-06-09T12:00:00-04:00",
        "id": "6e8b7dd1-7ad5-453d-8a87-67daf4ca9f93",
        "name": "Launch",
        "post_count": 3,
        "slug": "launch",
        "updated_at": "2026-06-09T12:00:00-04:00"
      }
    ],
    "template_handle": "default_blog",
    "title": "Launch notes",
    "updated_at": "2026-06-09T12:00:00-04:00"
  },
  "locale": "fr",
  "translation": {
    "content": "\u003cp\u003eDécouvrez les changements de cette version.\u003c/p\u003e",
    "excerpt": "Découvrez les changements de cette version.",
    "seo_description": "Découvrez les dernières notes de lancement.",
    "seo_title": "Notes de lancement",
    "slug": "notes-lancement",
    "title": "Notes de lancement"
  },
  "updated_at": "2026-06-09T12:00:00-04:00"
}
```

## Blog post translations deleted

Event: `blog_posts/translations/delete` · App scope: `read_blog, read_translations` · Staff permission: `blog:write`

Fired when a blog post's translations are cleared for one or more fields in a locale, including for every translated locale when the post is deleted. Events of different topics (for example a post's translations/delete and its delete) can arrive in any order.

```json
{
  "blog_post": {
    "author": {
      "avatar_url": "https://assets.tringify.com/74e634ea-84ec-43b8-b66b-986214c2c5a3/upload/8f2a1c2b-9d4e-4a56-b789-0123456789ab.jpg",
      "bio": "Writes product and company updates.",
      "created_at": "2026-06-09T12:00:00-04:00",
      "id": "44bf70b7-88e2-4770-a30e-d7a1db522499",
      "name": "Avery Stone",
      "slug": "avery-stone",
      "social_image_id": null,
      "updated_at": "2026-06-09T12:00:00-04:00"
    },
    "author_ref": "44bf70b7-88e2-4770-a30e-d7a1db522499",
    "categories": [
      {
        "created_at": "2026-06-09T12:00:00-04:00",
        "description": "Updates and announcements from the company.",
        "id": "3a588f80-fd8c-4d46-af1b-00a1c4a7f85a",
        "name": "Company News",
        "post_count": 8,
        "robots": "index",
        "seo_description": "Read company updates, product notes, and announcements.",
        "seo_title": "Company News",
        "slug": "company-news",
        "social_image_id": null,
        "template_handle": "default_blog_category",
        "updated_at": "2026-06-09T12:00:00-04:00"
      }
    ],
    "comment_count": 4,
    "content": "\u003cp\u003eWe took the Trailblazer Tee on a 30km ridge hike.\u003c/p\u003e",
    "created_at": "2026-06-09T12:00:00-04:00",
    "excerpt": "We took the Trailblazer Tee on a 30km ridge hike.",
    "featured_image_cdn_url": null,
    "featured_image_id": null,
    "featured_image_url": null,
    "id": "5ff7d4ea-3250-4a4d-9d26-07f64d917d31",
    "publish_at": null,
    "published_at": "2026-06-09T12:00:00-04:00",
    "robots": "index",
    "seo_description": "Trail notes from 30km in our organic cotton tee.",
    "seo_title": "Field-Testing the Trailblazer Tee",
    "slug": "launch-notes",
    "social_image_id": null,
    "status": "published",
    "tags": [
      {
        "created_at": "2026-06-09T12:00:00-04:00",
        "id": "6e8b7dd1-7ad5-453d-8a87-67daf4ca9f93",
        "name": "Launch",
        "post_count": 3,
        "slug": "launch",
        "updated_at": "2026-06-09T12:00:00-04:00"
      }
    ],
    "template_handle": "default_blog",
    "title": "Launch notes",
    "updated_at": "2026-06-09T12:00:00-04:00"
  },
  "locale": "fr",
  "translation": {
    "content": "",
    "excerpt": "",
    "seo_description": "",
    "seo_title": "",
    "slug": "",
    "title": ""
  },
  "updated_at": "2026-06-09T12:00:00-04:00"
}
```

## Blog post metafield translations updated

Event: `blog_post_metafields/translations/update` · App scope: `read_blog, read_translations` · Staff permission: `blog:write`

Fired when a blog post 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.

```json
{
  "locale": "fr",
  "metafield": {
    "app_access": "shared",
    "app_id": null,
    "blog_post_id": "fedbd72e-1812-4c04-874d-ac1faa45274d",
    "blog_post_slug": "summer-dress",
    "blog_post_title": "Example",
    "definition_id": "53dd03be-9356-492a-8b24-ea3cd78feb24",
    "key": "care_guide",
    "merchant_access": "read_write",
    "name": "Example",
    "namespace": "custom",
    "type": "string"
  },
  "translation": {
    "value": "5 minutes"
  },
  "updated_at": "2026-06-09T12:00:00-04:00"
}
```

## Blog post metafield translations deleted

Event: `blog_post_metafields/translations/delete` · App scope: `read_blog, read_translations` · Staff permission: `blog:write`

Fired when a blog post metafield's translation is cleared for a locale, including when its blog post is deleted. `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.

```json
{
  "locale": "fr",
  "metafield": {
    "app_access": "shared",
    "app_id": null,
    "blog_post_id": "fedbd72e-1812-4c04-874d-ac1faa45274d",
    "blog_post_slug": "summer-dress",
    "blog_post_title": "Example",
    "definition_id": "53dd03be-9356-492a-8b24-ea3cd78feb24",
    "key": "care_guide",
    "merchant_access": "read_write",
    "name": "Example",
    "namespace": "custom",
    "type": "string"
  },
  "translation": {
    "value": ""
  },
  "updated_at": "2026-06-09T12:00:00-04:00"
}
```

