Documentation is still being updated. Some content maybe unfinished.
A valid request URL is required to generate request examples
{ "id": 123, "name": "<string>", "slug": "<string>", "rest_url": "<string>" }
Gets a single product category by ID.
cURL
curl --request GET \ --url {protocol}://{host}/wp-json/cocart/v2/products/categories/{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?