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
Parameter | Type | Example | Required | Description |
---|---|---|---|---|
external_id | string | "1234" | Yes | Category ID |
name | string | "Cell phones and accessories" | Yes | Field name |
parent_external_id | string | "123" | No | Main category ID. Passed if you create a subcategory. |
JSON
- JSON
- XML
[
{
"external_id": "123",
"name": "Test category",
},
{
"external_id": "12345",
"name": "Test subcategory",
"parent_external_id": "123"
}
]
<xml>
<external_id>123</external_id>
<name>Test category</name>
</row>
<row>
<external_id>12345</external_id>
<name>Test subcategory</name>
<parent_external_id>123</parent_external_id>
</xml>