You can the Categories and their IDs information from this service to use it on createProduct v2 service
Category ID information should be used at the lowest level ("subCategories": []) to create createProduct. If there are subcategories of the category you select, you cannot transfer products with this category.
We recommend that you get the updated category list weekly, as new categories may be added
https://api.trendyol.com/sapigw-product/product-categories
Sample Response
{
"categories": [
{
"id": 368,
"name": "Aksesuar",
"subCategories": [
{
"id": 1228,
"name": "Altın",
"parentId": 368,
"subCategories": [
{
"id": 1237,
"name": "Ata Altın",
"parentId": 1228,
"subCategories": []
},
{
"id": 1234,
"name": "Cumhuriyet Altını",
"parentId": 1228,
"subCategories": []
},
{
"id": 1231,
"name": "Çeyrek Altın",
"parentId": 1228,
"subCategories": []
}
]
},
...
..
Response Parameters
Parameter | Description |
---|---|
Id | Category's ID in Trendyol platform |
ParentId | Upper-level category ID |
Name | Category Name |
subcategories | Lowest level categories |