List products by Category

Returns a list of all your products grouped by Category

image-png-Mar-22-2024-01-24-05-8317-PM /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
                }
            ]
        }
  ]
}