Listing translatable items
Endpoint: https://api.youcan.shop/translations/{type}
Method: GET
Required Scopes
read-languages
Notes
- You get the items of one type that can be translated.
- For the
theme_types, you get the items of the active theme. Sendthemeto list the items of another theme. - You get a 404 for a type that is not available in the language.
Parameters
| Param Name | Param Type | Description | Required |
|---|---|---|---|
| type | string | A translatable type, for example product | Yes |
| locale | string | The locale of a language from the listing | Yes |
| theme | string | The id of a store theme, for the theme_ types | No |
| q | string | Search by title | No |
| page | integer | Page number | No |
| limit | integer | Items per page | No |
Response
[200] Ok
json
{
"data": [
{ "id": "0b6f1e1e-2f8e-4d7f-9a7d-3f8d3c2a1b00", "title": "Wooden chair" }
],
"pagination": { "current_page": 1, "total_pages": 1, "total": 1 }
}