# Blog Category translations

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

## Get blog category translation

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

Returns stored translated Blog Category 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/categories/5ff7d4ea-3250-4a4d-9d26-07f64d917d31/translations/fr' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN"
```

Response:

```json
{
  "data": {
    "fields": {
      "name": {
        "is_outdated": false,
        "value": "Entreprise",
        "word_count": 1
      },
      "slug": {
        "is_outdated": false,
        "value": "entreprise",
        "word_count": 1
      }
    }
  },
  "success": true
}
```

## Set blog category translation

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

Writes translated Blog Category fields for one locale. Empty values clear the matching field translation. A translated slug is saved in lowercase, like the source slug. Unknown or wrongly typed body properties are refused. A translated name and a translated slug must each be unique among the names and slugs of this type shown in that language (a translation, or the source value 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/categories/5ff7d4ea-3250-4a4d-9d26-07f64d917d31/translations/fr' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "translations": {
    "name": "Entreprise",
    "slug": "entreprise"
  }
}'
```

Response:

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

## Batch get blog category translations

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

Returns translated Blog Category fields for up to 100 blog category 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/categories/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_category:5ff7d4ea-3250-4a4d-9d26-07f64d917d31": {
        "name": {
          "is_outdated": false,
          "value": "Entreprise",
          "word_count": 1
        },
        "slug": {
          "is_outdated": false,
          "value": "entreprise",
          "word_count": 1
        }
      }
    }
  },
  "success": true
}
```

## Batch set blog category translations

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

Each row is one blog category 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 category in one locale) and at most one row per blog category 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 name and a translated slug must each be unique among the names and slugs of this type shown in that language (a translation, or the source value 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/categories/translations' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "translations": [
    {
      "fields": {
        "name": "Entreprise"
      },
      "id": "5ff7d4ea-3250-4a4d-9d26-07f64d917d31",
      "locale": "fr"
    },
    {
      "fields": {
        "name": "Unternehmen"
      },
      "id": "5ff7d4ea-3250-4a4d-9d26-07f64d917d31",
      "locale": "de"
    },
    {
      "fields": {
        "name": "Empresa"
      },
      "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 category metafield translation

`GET /api/2025-01/blog/categories/{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/categories/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 category metafield translation

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

Send an empty value to clear the locale's translation. Unknown or wrongly typed body properties are refused. 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/categories/5ff7d4ea-3250-4a4d-9d26-07f64d917d31/metafields/details/subtitle/translations/fr' \
  -H "Authorization: Bearer YOUR_STORE_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "value": "Entreprise"
}'
```

Response:

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

## Webhook events

Subscribe to these events when your integration mirrors localized blog categories. 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 category 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 category translations updated

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

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

```json
{
  "blog_category": {
    "created_at": "2026-06-09T12:00:00-04:00",
    "description": "Updates and announcements from the company.",
    "id": "5ff7d4ea-3250-4a4d-9d26-07f64d917d31",
    "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"
  },
  "locale": "fr",
  "translation": {
    "description": "Actualités et annonces de l’entreprise.",
    "name": "Actualités de l’entreprise",
    "seo_description": "Lisez les actualités et annonces de l’entreprise.",
    "seo_title": "Actualités de l’entreprise",
    "slug": "actualites-entreprise"
  },
  "updated_at": "2026-06-09T12:00:00-04:00"
}
```

## Blog category translations deleted

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

Fired when a blog category's translations are cleared for one or more fields in a locale, and for every translated locale when the category is deleted.

```json
{
  "blog_category": {
    "created_at": "2026-06-09T12:00:00-04:00",
    "description": "Updates and announcements from the company.",
    "id": "5ff7d4ea-3250-4a4d-9d26-07f64d917d31",
    "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"
  },
  "locale": "fr",
  "translation": {
    "description": "",
    "name": "",
    "seo_description": "",
    "seo_title": "",
    "slug": ""
  },
  "updated_at": "2026-06-09T12:00:00-04:00"
}
```

## Blog category metafield translations updated

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

Fired when a blog category 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": "private",
    "app_id": null,
    "blog_category_id": "5ff7d4ea-3250-4a4d-9d26-07f64d917d31",
    "blog_category_name": "Company News",
    "blog_category_slug": "company-news",
    "definition_id": "91ac33ac-1e56-43f9-9280-a541ff762f74",
    "key": "subtitle",
    "merchant_access": "read_write",
    "name": "Subtitle",
    "namespace": "details",
    "type": "string"
  },
  "translation": {
    "value": "Dernières nouvelles"
  },
  "updated_at": "2026-06-09T12:00:00-04:00"
}
```

## Blog category metafield translations deleted

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

Fired when a blog category metafield's translation is cleared for a locale, including when its blog category 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": "private",
    "app_id": null,
    "blog_category_id": "5ff7d4ea-3250-4a4d-9d26-07f64d917d31",
    "blog_category_name": "Company News",
    "blog_category_slug": "company-news",
    "definition_id": "91ac33ac-1e56-43f9-9280-a541ff762f74",
    "key": "subtitle",
    "merchant_access": "read_write",
    "name": "Subtitle",
    "namespace": "details",
    "type": "string"
  },
  "translation": {
    "value": null
  },
  "updated_at": "2026-06-09T12:00:00-04:00"
}
```

