Skip to main content
GET
/
products
/
categories
/
{id}
Get single product category
curl --request GET \
  --url {protocol}://{host}/wp-json/cocart/v2/products/categories/{id}
{
  "id": 123,
  "name": "<string>",
  "slug": "<string>",
  "rest_url": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.cocartapi.com/llms.txt

Use this file to discover all available pages before exploring further.

Path Parameters

id
integer
required

Unique identifier for the category.

Response

Product category retrieved successfully.

CoCart v2 Product Category

id
integer

Category ID

name
string

Category name

slug
string

Category slug

rest_url
string

REST URL for this category