List Product Categories
GET
/store/product-categories
Product Categories
handle
or q
. The product categories can also be paginated. This API Route can also be used to retrieve a product category by its handle.Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.medusa-commerce.com/store/product-categories'
Response Response Example
200 - Example 1
{
"count": 0,
"offset": 0,
"limit": 0,
"product_categories": [
{
"id": "pcat_01G2SG30J8C85S4A5CHM2S1NS2",
"name": "Regular Fit",
"description": "",
"handle": "regular-fit",
"mpath": "pcat_id1.pcat_id2.pcat_id3",
"is_internal": false,
"is_active": false,
"rank": 0,
"parent_category_id": null,
"parent_category": {},
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"category_children": [
{}
],
"products": [
{}
],
"metadata": {
"car": "white"
}
}
]
}
Request
Query Params
q
string
optional
handle
string
optional
parent_category_id
string
optional
include_descendants_tree
string
optional
offset
integer
optional
limit
integer
optional
expand
string
optional
fields
string
optional
Responses
Modified at 2023-11-27 13:05:07