Get Category
Get Category — vendor REST API endpoint.
/vendor/categories/:idVendor bearer token requiredGet Category
Retrieve a single G-Commerce category by ID for your vendor.
Returns category details including parent and direct children when the category belongs to the G-Commerce storefront and your vendor has access. Categories are read-only — vendors cannot create or modify the taxonomy.
When to use this
- Verifying a category UUID before assigning it to a product.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | string (UUID) | Yes | Category ID. |
Request example
curl -X GET 'https://api.next.gcommerce.glass/api/v1/vendor/categories/a0000000-0000-4000-8000-000000000041'Response examples
{
"id": "550e8400-e29b-41d4-a716-446655440070",
"name": "Industrial Supplies",
"slug": "industrial-supplies",
"description": "Industrial and MRO supplies",
"pageTitle": "Industrial Supplies",
"pageDescription": "Browse industrial supplies",
"image": "https://api.next.gcommerce.glass/assets/categories/industrial-supplies.jpg",
"icon": "factory",
"parentId": null,
"isActive": true,
"isHidden": false,
"isPopular": true,
"sortOrder": 0,
"createdAt": "2025-06-01T10:00:00.000Z",
"updatedAt": "2025-06-01T10:00:00.000Z",
"children": [
{
"id": "550e8400-e29b-41d4-a716-446655440071",
"name": "Hand Tools",
"slug": "hand-tools",
"description": null,
"pageTitle": null,
"pageDescription": null,
"image": null,
"icon": null,
"parentId": "550e8400-e29b-41d4-a716-446655440070",
"isActive": true,
"isHidden": false,
"isPopular": false,
"sortOrder": 1,
"createdAt": "2025-06-01T10:00:00.000Z",
"updatedAt": "2025-06-01T10:00:00.000Z",
"children": []
}
]
}Status codes
OK
Request succeeded.
Unauthorized
Missing or invalid bearer token.
Forbidden
Insufficient permissions for this action.
Bad Request
Validation failed or invalid parameters.
Not Found
Resource not found.
Too Many Requests
Global rate limit exceeded (10,000 requests per 10 minutes per IP).
Internal Server Error
Unexpected server error.
Forbidden
No vendor membership, or insufficient vendor role (requires OWNER, ADMIN, or EDITOR for write operations).
Try it
Uses your saved session from login. Edit values and send a live request, or copy the cURL command.