Skip to main content

Get Product Category

Retrieve a single product category by its ID.

Endpointโ€‹

GET /v1/product-categories/{id}

Authenticationโ€‹

Requires an API key with the products:read scope.

Parametersโ€‹

ParameterTypeLocationDescription
idintegerpathThe category ID

Responseโ€‹

Success (200 OK)โ€‹

{
"data": {
"id": 1,
"name": "Bikes",
"description": "All types of bikes for rent",
"image": "https://equipdash.com/storage/categories/bikes.jpg",
"parent_id": null,
"parent": null,
"children": [
{
"id": 3,
"name": "Mountain Bikes",
"description": "Full suspension and hardtail",
"image": null,
"parent_id": 1,
"product_count": 8,
"created_at": "2025-01-15T00:00:00+00:00",
"updated_at": "2025-01-15T00:00:00+00:00"
},
{
"id": 4,
"name": "Road Bikes",
"description": "Racing and touring bikes",
"image": null,
"parent_id": 1,
"product_count": 7,
"created_at": "2025-01-15T00:00:00+00:00",
"updated_at": "2025-01-15T00:00:00+00:00"
}
],
"product_count": 15,
"linked_types": ["experiences", "store"],
"created_at": "2025-01-01T00:00:00+00:00",
"updated_at": "2025-01-01T00:00:00+00:00"
},
"meta": {
"request_id": "req_abc123",
"timestamp": "2026-01-15T12:00:00+00:00"
}
}

Response Fieldsโ€‹

FieldTypeDescription
idintegerUnique category identifier
namestringCategory name
descriptionstring|nullCategory description
imagestring|nullCategory image URL
parent_idinteger|nullParent category ID
parentobject|nullParent category summary (id, name)
childrenarrayChild categories
product_countintegerNumber of products in this category, including products for which this is a secondary category.
linked_typesarrayOther booking types this category is linked to (experiences, store); empty when not linked
created_atstringISO 8601 datetime
updated_atstringISO 8601 datetime

Errorsโ€‹

StatusCodeDescription
401authentication_requiredNo API key provided
401invalid_api_keyInvalid API key
403insufficient_scopeAPI key lacks products:read scope
404resource_not_foundCategory does not exist

Example Requestโ€‹

curl -X GET "https://app.equipdash.com/api/v1/product-categories/1" \
-H "Authorization: Bearer eqd_live_abc123xyz789..."