get
https://app.fracttal.com/api/warehouses_groups_1/new-endpoint-1
Returns the (paginated) catalog of enabled Warehouses Group 1 classifications for the caller's company, with an optional filter by id.
GET https://app.fracttal.com/api/warehouses_groups_1Input parameters — Required
None.
Input parameters — Optional
Sent as query params.
| Parameter | Type | Required | Description |
|---|---|---|---|
id | bigint | No | Filters by the id of a specific classification. |
only_enabled | boolean | No | If sent as false, also includes disabled classifications. By default, only enabled = true is returned. |
start | integer | No | Pagination offset. Default 0. |
limit | integer | No | Page size. Default 100, maximum 100 per page. |
Output parameters
| Parameter | Type | Description |
|---|---|---|
success | boolean | true if the query was successful. |
message | string | "200" on success; error code/message otherwise. |
data | array | List of classifications { id, id_company, description, enabled }. |
total | integer | Total count of classifications matching the filter for the company — not the returned page size. Use it to calculate the number of pages. |
Errors
| Code | Cause |
|---|---|
401 | Invalid or missing token. |
500 | Unhandled internal server error. |
No results is not an errorIf the company has no classifications (or the filter matches nothing), the response is
success=true, total=0, data=null— this is not an error.
Example
Request
GET https://app.fracttal.com/api/warehouses_groups_1?id=744Response 200
200{
"success": true,
"message": "200",
"data": [
{ "id": 744, "id_company": 4344, "description": "Accessories", "enabled": true }
],
"total": 1
}Response — full catalog, no filters (200)
200){
"success": true,
"message": "200",
"data": [
{ "id": 744, "id_company": 4344, "description": "Accessories", "enabled": true },
{ "id": 745, "id_company": 4344, "description": "Consumables", "enabled": true }
],
"total": 7
} 200