Get attribute translation
Fetch one attribute translation.
Returns stored translated attribute fields for one locale, including whether the translation is out of date. Attribute translations cover name, slug, and description; option labels/values use the Attribute Option translation endpoints.
Path parameters
| Name | Type | Description |
|---|---|---|
id
required
|
integer |
Attribute id. |
locale
required
|
string |
Enabled non-default store locale. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
400STORE_API_INVALID_ATTRIBUTE_IDAttribute id must be an integer.
-
400TRANSLATION_INVALID_LOCALELocale is not enabled or is the default locale.
-
400TRANSLATION_INVALID_FIELDField is not translatable for attributes.
-
404ATTRIBUTE_NOT_FOUNDAttribute does not exist in this store.
Set attribute translation
Set one attribute translation.
Writes translated attribute fields for one locale. Empty values clear the matching field translation.
Path parameters
| Name | Type | Description |
|---|---|---|
id
required
|
integer |
Attribute id. |
locale
required
|
string |
Enabled non-default store locale. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Body parameters
| Name | Type | Description |
|---|---|---|
translations
required
|
object |
Field-keyed translation values. Allowed fields: name, slug, description. |
Errors
-
400STORE_API_INVALID_ATTRIBUTE_IDAttribute id must be an integer.
-
400STORE_API_INVALID_REQUEST_BODYRequest body is not valid JSON or does not match the expected shape.
-
400TRANSLATION_INVALID_LOCALELocale is not enabled or is the default locale.
-
400TRANSLATION_INVALID_FIELDField is not translatable for attributes.
-
404ATTRIBUTE_NOT_FOUNDAttribute does not exist in this store.
Batch get attribute translations
Fetch attribute translations in batch.
Returns translated attribute fields for multiple attribute ids in one locale.
Path parameters
| Name | Type | Description |
|---|---|---|
locale
required
|
string |
Enabled non-default store locale. |
Query parameters
| Name | Type | Description |
|---|---|---|
ids
required
|
string |
Comma-separated attribute ids. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
400TRANSLATION_INVALID_LOCALELocale is not enabled or is the default locale.
-
400TRANSLATION_INVALID_FIELDField is not translatable for attributes.
-
404ATTRIBUTE_NOT_FOUNDAttribute does not exist in this store.
Batch set attribute translations
Set attribute translations in batch.
Writes translated attribute fields for multiple attribute ids in one locale. Either every row is written or, if any row is invalid, none are.
Path parameters
| Name | Type | Description |
|---|---|---|
locale
required
|
string |
Enabled non-default store locale. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Body parameters
| Name | Type | Description |
|---|---|---|
translations
required
|
array<object> |
Rows with |
Errors
-
400STORE_API_INVALID_REQUEST_BODYRequest body is not valid JSON or does not match the expected shape.
-
400TRANSLATION_INVALID_LOCALELocale is not enabled or is the default locale.
-
400TRANSLATION_INVALID_FIELDField is not translatable for attributes.
-
404ATTRIBUTE_NOT_FOUNDAttribute does not exist in this store.
Get attribute option translation
Fetch one attribute option translation.
Returns stored translated option fields for one locale, including whether the translation is out of date. Attribute option translations cover label and value.
Path parameters
| Name | Type | Description |
|---|---|---|
id
required
|
integer |
Attribute option id. |
locale
required
|
string |
Enabled non-default store locale. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
400STORE_API_INVALID_ATTRIBUTE_IDAttribute option id must be an integer.
-
400TRANSLATION_INVALID_LOCALELocale is not enabled or is the default locale.
-
400TRANSLATION_INVALID_FIELDField is not translatable for attribute options.
-
404ATTRIBUTE_NOT_FOUNDAttribute option does not exist in this store.
Set attribute option translation
Set one attribute option translation.
Writes translated option fields for one locale. Empty values clear the matching field translation.
Path parameters
| Name | Type | Description |
|---|---|---|
id
required
|
integer |
Attribute option id. |
locale
required
|
string |
Enabled non-default store locale. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Body parameters
| Name | Type | Description |
|---|---|---|
translations
required
|
object |
Field-keyed translation values. Allowed fields: label, value. |
Errors
-
400STORE_API_INVALID_ATTRIBUTE_IDAttribute option id must be an integer.
-
400STORE_API_INVALID_REQUEST_BODYRequest body is not valid JSON or does not match the expected shape.
-
400TRANSLATION_INVALID_LOCALELocale is not enabled or is the default locale.
-
400TRANSLATION_INVALID_FIELDField is not translatable for attribute options.
-
404ATTRIBUTE_NOT_FOUNDAttribute option does not exist in this store.
Batch get attribute option translations
Fetch attribute option translations in batch.
Returns translated option fields for multiple option ids in one locale.
Path parameters
| Name | Type | Description |
|---|---|---|
locale
required
|
string |
Enabled non-default store locale. |
Query parameters
| Name | Type | Description |
|---|---|---|
ids
required
|
string |
Comma-separated attribute option ids. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
400TRANSLATION_INVALID_LOCALELocale is not enabled or is the default locale.
-
400TRANSLATION_INVALID_FIELDField is not translatable for attribute options.
-
404ATTRIBUTE_NOT_FOUNDAttribute option does not exist in this store.
Batch set attribute option translations
Set attribute option translations in batch.
Writes translated option fields for multiple option ids in one locale. Either every row is written or, if any row is invalid, none are.
Path parameters
| Name | Type | Description |
|---|---|---|
locale
required
|
string |
Enabled non-default store locale. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Body parameters
| Name | Type | Description |
|---|---|---|
translations
required
|
array<object> |
Rows with |
Errors
-
400STORE_API_INVALID_REQUEST_BODYRequest body is not valid JSON or does not match the expected shape.
-
400TRANSLATION_INVALID_LOCALELocale is not enabled or is the default locale.
-
400TRANSLATION_INVALID_FIELDField is not translatable for attribute options.
-
404ATTRIBUTE_NOT_FOUNDAttribute option does not exist in this store.