Create, read and update the shop's product categories and their names, descriptions and SEO names in each language. Categories can't be deleted through the API.
List categories
Returns the shop's categories, newest first, with their names. Get a category for its other localized fields. The filters match exact values; an empty filter value is ignored. Deleted categories are not listed.
query Parameters
limitThe number of items to return. Must be a decimal integer; any other value returns 400. There is no page size cap, but large pages take longer: follow the next link to read a long list.
offsetThe number of items to skip. Must be a decimal integer; any other value returns 400.
codeReturn the categories with exactly this category code. Case-sensitive.
erp_idReturn the categories with exactly this ERP ID. Case-sensitive.
List categories › Responses
The categories.
Create a category
Creates a category. Localized fields are arrays of {language, <field>} objects; elements for a language the shop doesn't use are skipped, and a request with no used language returns 400. After saving, the shop renumbers all category positions and builds the SEO names and links; the response shows the result.
Create a category › Request Body
The category's name per language. Every language you send in any localized field needs a non-empty name when the category gets that language for the first time.
codenull stores an empty string.
erp_idnull stores an empty string.
group_namenull stores an empty string.
parentThe ID of an existing category to place this one under, or null for a top level category. A category can't be its own parent.
positionOrders the category among its siblings: lower comes first. On create, 0 or no value places it last. The shop then renumbers all positions.
secondary_positionhiddenCan't be null.
visible_in_menuCan't be null.
Used on update only. On create, the shop makes each seo_name from the name.
Overwritten. The shop builds seo_links from the seo_names of the category and its parents.
Create a category › Responses
The created category.
hrefThe URL of the request.
One category.
Get a category
path Parameters
category-idThe category's ID. A value that is not a number returns 400; an unknown or deleted category returns 404.
Get a category › Responses
The category.
hrefThe URL of the request.
One category.
Update a category
Updates the fields you send and keeps the others. In a localized field, a language the category already has gets the values you send and keeps its other values; a new language needs a non-empty name. After saving, the shop renumbers all category positions and rebuilds the SEO links; the response shows the result.
path Parameters
category-idThe category's ID. A value that is not a number returns 400; an unknown or deleted category returns 404.
Update a category › Request Body
The category's name per language. Every language you send in any localized field needs a non-empty name when the category gets that language for the first time.
codenull stores an empty string.
erp_idnull stores an empty string.
group_namenull stores an empty string.
parentThe ID of an existing category to place this one under, or null for a top level category. A category can't be its own parent.
positionOrders the category among its siblings: lower comes first. On create, 0 or no value places it last. The shop then renumbers all positions.
secondary_positionhiddenCan't be null.
visible_in_menuCan't be null.
Used on update only. On create, the shop makes each seo_name from the name.
Overwritten. The shop builds seo_links from the seo_names of the category and its parents.
Update a category › Responses
The updated category.
hrefThe URL of the request.
One category.