Documentation is still being updated. Some content maybe unfinished.
cURL
curl --request GET \ --url {protocol}://{host}/wp-json/cocart/v2/products/categories/{id}
{ "id": 123, "name": "<string>", "slug": "<string>", "rest_url": "<string>" }
Gets a single product category by ID.
Unique identifier for the category.
Product category retrieved successfully.
CoCart v2 Product Category
Category ID
Category name
Category slug
REST URL for this category
Was this page helpful?