Use this API to get all product category
curl --request GET \
--url https://api.sandbox.hit-pay.com/v1/product-category \
--header 'X-BUSINESS-API-KEY: <x-business-api-key>'{
"data": [
{
"id": "9d8cbab5-13fe-4102-8bf5-3b13668ab811",
"name": "mens hat example",
"description": "mens hat example",
"is_active": true,
"order": 1,
"children": [],
"is_parent": true,
"image": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"caption": "<string>",
"alt_text": "<string>",
"group": "<string>",
"order": 123,
"extension": "<string>",
"status": "<string>",
"disk": "<string>",
"url": "<string>",
"other_dimensions": [
{
"size": "<string>",
"path": "<string>"
}
],
"urls": {
"icon": "<string>",
"large": "<string>",
"small": "<string>",
"medium": "<string>",
"thumbnail": "<string>"
}
},
"emoji": "?",
"pos_color": "#4C689C"
}
],
"links": {
"first": "https://api.sandbox.hit-pay.com/v1/product-category?page=1",
"last": "https://api.sandbox.hit-pay.com/v1/product-category?page=4",
"prev": null,
"next": "https://api.sandbox.hit-pay.com/v1/product-category?page=2"
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 4,
"links": [
{
"url": "<string>",
"label": "<string>",
"active": true
}
],
"path": "https://api.sandbox.hit-pay.com/v1/product-category",
"per_page": 20,
"to": 20,
"total": 66
}
}"b286daabf9921b5a01a4621f026c111e046f8911feba212996c92159b98427d"
20
1
Filter by active status
true
The parent category id, to list all subcategories of a parent category
"9a12fab0-d282-4437-9460-c3d26662d11a"
Filter by keywords, name
"Beanie"
Successful response
Show child attributes
"9d8cbab5-13fe-4102-8bf5-3b13668ab811"
"mens hat example"
"mens hat example"
true
1
[]true
Show child attributes
"?"
"#4C689C"
Show child attributes
Show child attributes
1
1
4
"https://api.sandbox.hit-pay.com/v1/product-category"
20
20
66
Was this page helpful?
curl --request GET \
--url https://api.sandbox.hit-pay.com/v1/product-category \
--header 'X-BUSINESS-API-KEY: <x-business-api-key>'{
"data": [
{
"id": "9d8cbab5-13fe-4102-8bf5-3b13668ab811",
"name": "mens hat example",
"description": "mens hat example",
"is_active": true,
"order": 1,
"children": [],
"is_parent": true,
"image": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"caption": "<string>",
"alt_text": "<string>",
"group": "<string>",
"order": 123,
"extension": "<string>",
"status": "<string>",
"disk": "<string>",
"url": "<string>",
"other_dimensions": [
{
"size": "<string>",
"path": "<string>"
}
],
"urls": {
"icon": "<string>",
"large": "<string>",
"small": "<string>",
"medium": "<string>",
"thumbnail": "<string>"
}
},
"emoji": "?",
"pos_color": "#4C689C"
}
],
"links": {
"first": "https://api.sandbox.hit-pay.com/v1/product-category?page=1",
"last": "https://api.sandbox.hit-pay.com/v1/product-category?page=4",
"prev": null,
"next": "https://api.sandbox.hit-pay.com/v1/product-category?page=2"
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 4,
"links": [
{
"url": "<string>",
"label": "<string>",
"active": true
}
],
"path": "https://api.sandbox.hit-pay.com/v1/product-category",
"per_page": 20,
"to": 20,
"total": 66
}
}