Organization

List Organization Products

Retrieve all products for the organization, grouped by trade categories. Returns product information including names, descriptions, and pricing organized by their respective categories.

GET
/v1/organization/products

Authorization

bearerAuth
AuthorizationBearer <token>

Bearer token authentication for API access.

In: header

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/v1/organization/products"
{  "categories": [    {      "id": 2,      "name": "Kitchen Materials",      "type": "PRODUCT",      "products": [        {          "id": 456,          "name": "Premium Granite Countertop",          "description": "High-quality granite countertop with polished finish",          "price": 299.99,          "tradeCategoryId": 2,          "createdAt": "2023-01-01T00:00:00.000Z",          "isActive": true        }      ]    }  ],  "totalCategories": 3,  "totalProducts": 47}
{  "success": false,  "message": "Invalid or expired token",  "error": {    "status": 401,    "message": "Invalid or expired token"  }}
{  "success": false,  "message": "Internal server error",  "error": {    "status": 500,    "message": "Internal server error"  }}