Skip to main content

Categories array

The categories array is used to create categories and subcategories in the market. Each object creates one category. Passed in the following requests:

Request parameters

ParameterTypeExampleRequiredDescription
external_idstring"1234"YesCategory ID
namestring"Cell phones and accessories"YesField name
parent_external_idstring"123"NoMain category ID. Passed if you create a subcategory.

JSON

[
{
"external_id": "123",
"name": "Test category",
},
{
"external_id": "12345",
"name": "Test subcategory",
"parent_external_id": "123"
}
]