List Storages
Returns a paginated list of storages, sorted by internal ID ascending.
Required license
This endpoint requires the Stock management add-on.
Request
GET /api/oauth/v2/resource/wares/storages
Header
| Header | Value |
|---|---|
Authorization | Bearer {access_token} |
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
offset | integer | No | Start position (default: 0) |
limit | integer | No | Number of results (default: 50, max: 200) |
status | string | No | Filter by status. Allowed values: active, deleted, all. Comma-separated multiple values are supported, default all. See Conventions |
Response
Success (200 OK)
json
{
"data": [
{
"id": "f6a7b8c9-d0e1-2345-fabc-345678901234",
"name": "Hauptlager",
"description": "Zentrallager im Erdgeschoß",
"color": "#00adba",
"sort": 0,
"deleted": false
}
],
"meta": {
"total": 3,
"offset": 0,
"limit": 50
}
}Response fields
| Field | Type | Description |
|---|---|---|
data | Array | List of storages |
data[].id | string (UUID) | Unique ID of the storage |
data[].name | string | Name of the storage |
data[].description | string | null | Description text |
data[].color | string | Color as hex code (e.g. #00adba) |
data[].sort | integer | Position in the display order of the Offisy interface — not the sort order of this endpoint's results, see Conventions |
data[].deleted | boolean | Whether the storage is deleted |
meta.total | integer | Total number of storages |
meta.offset | integer | Current start position |
meta.limit | integer | Number of returned entries |
Beispiele
bash
curl -X GET "https://my.offisy.at/api/oauth/v2/resource/wares/storages?offset=0&limit=50&status=beispiel" \
-H "Authorization: Bearer {access_token}"Parameter
Zuerst Token anfordern
Possible errors
| Status | Code | Description |
|---|---|---|
| 400 | validation_error | Invalid status value |
| 401 | invalid_client | Invalid or missing access token |
| 403 | insufficient_scope | Scope wares not present, or Stock management add-on not licensed |