Category Detail
Retrieves detailed information about a category with the specified ID.
Request
GET /v2/admin/categories/{categoryID}
Parameters
| Name | Type | In | Description |
|---|---|---|---|
categoryID | string | path | Required. The ID of the category to retrieve details for |
Headers
| Name | Description |
|---|---|
Authorization | Required. Bearer token for authentication |
Example
curl --request GET \
--url '\{\{baseUrl\}\}/v2/admin/categories/123456789' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...'
Response
{
"id": "123456789",
"parent_id": "987654321",
"name": {
"en": "Electronics",
"tr": "Elektronik"
},
"path": "electronics",
"int_id": 1,
"image_svg": "data:image/svg+xml;base64,...",
"is_leaf": false,
"created_at": "2024-03-20T10:00:00Z"
}
Response Fields
| Field | Type | Description |
|---|---|---|
id | string | Unique ID of the category |
parent_id | string | Parent category ID (if exists) |
name | object | Category name translations |
name.en | string | Category name in English |
name.tr | string | Category name in Turkish |
path | string | URL path of the category |
int_id | integer | Numeric ID of the category |
image_svg | string | SVG data of the category icon |
is_leaf | boolean | Whether the category contains subcategories |
created_at | string | Category creation date |
Status Codes
| Status Code | Description |
|---|---|
| 200 | Success - Category details retrieved successfully |
| 400 | Bad Request - Invalid category ID |
| 401 | Unauthorized - Invalid or missing authentication token |
| 404 | Not Found - Category does not exist |
| 500 | Internal Server Error |