Product Category
Get All Product Category
Guides
API References
- Payment Request
- Recurring Billing
- Charges
- Payout
- Account
- Orders
- Products
- Product Category
- Customers
- Staffs
- Invoice
- Webhook Events
- Notifications
- Terminal
Product Category
Get All Product Category
Use this API to get all product category
GET
/
v1
/
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": null,
"emoji": null,
"pos_color": null
}
],
"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": null,
"label": "← Previous",
"active": false
},
{
"url": "https://api.sandbox.hit-pay.com/v1/product-category?page=2",
"label": "Next →",
"active": false
}
],
"path": "https://api.sandbox.hit-pay.com/v1/product-category",
"per_page": 20,
"to": 20,
"total": 66
}
}
Headers
Example:
"b286daabf9921b5a01a4621f026c111e046f8911feba212996c92159b98427d"
Query Parameters
Example:
20
Example:
1
Filter by active status
Example:
true
The parent category id, to list all subcategories of a parent category
Example:
"9a12fab0-d282-4437-9460-c3d26662d11a"
Filter by keywords, name
Example:
"Beanie"
Response
200 - application/json
Successful response
Example:
"9d8cbab5-13fe-4102-8bf5-3b13668ab811"
Example:
"mens hat example"
Example:
"mens hat example"
Example:
true
Example:
1
Example:
[]
Example:
true
Example:
"?"
Example:
"#4C689C"
Example:
1
Example:
1
Example:
4
Example:
"https://api.sandbox.hit-pay.com/v1/product-category"
Example:
20
Example:
20
Example:
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": null,
"emoji": null,
"pos_color": null
}
],
"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": null,
"label": "← Previous",
"active": false
},
{
"url": "https://api.sandbox.hit-pay.com/v1/product-category?page=2",
"label": "Next →",
"active": false
}
],
"path": "https://api.sandbox.hit-pay.com/v1/product-category",
"per_page": 20,
"to": 20,
"total": 66
}
}