Website

Fixing Incorrect “category_id” errors in Autovit.ro API

Last update: 23.03.2026

One common issue when creating ads via the Autovit.ro API is using an incorrect category_id. For example, a user might send "category_id": 57 when the correct value should be 75.

 

To fix this, you need to properly navigate the category taxonomy and identify the correct category ID.

 

Step 1: Retrieve All CategoriesStart by requesting the full list of categories:

GET http://www.autovit.ro/api/open/categories

In the response, you may notice that "Camioane" (Trucks) has the ID 57.

 

Step 2: Inspect the Parent Category
Next, query the parent category directly:

GET http://www.autovit.ro/api/open/categories/57

Step 3: Explore Subcategories
From here, continue exploring the subcategories by querying their IDs (e.g., 97, 59, 95, 89, 119, etc.) until you find the correct one.

For example:

GET http://www.autovit.ro/api/open/categories/75

This will return:

{
    "id": 75,
    "names": {
        "ro": "Autocare (autobuze)",
        "en": "Buses"
    },
    "parent_id": 57,
    "code": "autobuze",
    "path_url": "camioane/autobuze",
    "depth": 2,
    "parameters": [ ... ]
}

 

Step 4: Use the Correct category_id
Once identified, use the correct category_id (in this case 75) when creating your ad via a POST request.

For more details on how to create ads, please refer to the API documentation:
https://www.autovit.ro/api/doc/


By carefully navigating the category tree, you can ensure that your ads are created in the correct category and avoid validation errors.