Returns a list of all your products grouped by Category
/products
https://api.oauth.pabau.com/{api_key}/categories/products/grouped
Request
Query Parameters: | |
api_key * | |
per_page | (int) If not sent, the default is 20. Maximum 50 |
page | (int) If not sent, the first 20 result will be sent |
product_name | (string) Search by product name |
Response sample
application/json
{
"success": true,
"category": [
{
"id": 223754,
"name": "Vouchers",
"disabled": 0,
"active_service_count": 2,
"products": [
{
"id": 5729125,
"name": "testing a product 2",
"category_name": "Vouchers",
"image": null,
"active_services": 2,
"stock_level": "0",
"alert_quantity": 0,
"product_status": "empty",
"price": 10,
"cost": 0,
"tax": null,
"tax_id": null,
"is_active": 1
},
{
"id": 5729126,
"name": "Botox 2",
"category_name": "Vouchers",
"image": null,
"active_services": 2,
"stock_level": "27",
"alert_quantity": 0,
"product_status": "good",
"price": 20,
"cost": 20,
"tax": null,
"tax_id": null,
"is_active": 1
}
]
}
]
}