Beta
Not authenticated — log in first
VendorCategories

Get Category

Get Category — vendor REST API endpoint.

GET/vendor/categories/:idVendor bearer token required

Get Category

Retrieve a single G-Commerce category by ID for your vendor.

What this means in plain English

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

NameTypeRequiredDescription
idstring (UUID)YesCategory ID.

Request example

curl -X GET 'https://api.next.gcommerce.glass/api/v1/vendor/categories/a0000000-0000-4000-8000-000000000041'

Response examples

200Success
{
  "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

200

OK

Request succeeded.

401

Unauthorized

Missing or invalid bearer token.

403

Forbidden

Insufficient permissions for this action.

400

Bad Request

Validation failed or invalid parameters.

404

Not Found

Resource not found.

429

Too Many Requests

Global rate limit exceeded (10,000 requests per 10 minutes per IP).

500

Internal Server Error

Unexpected server error.

403

Forbidden

No vendor membership, or insufficient vendor role (requires OWNER, ADMIN, or EDITOR for write operations).

Categories are read-only for vendors. Use the returned `id` in product `categoryIds` when creating or updating products.

Try it

Uses your saved session from login. Edit values and send a live request, or copy the cURL command.