GET /areas
In the YourBarMate app, an Area is a place where Items are managed; a division is a broader location grouping.
List Areas
GET /areas returns { "areas": [...] }, sorted by Area name. Add a query parameter division=DIVISION_ID to filter by a division ID from GET /divisions. Without this filter, a division-scoped token uses its assigned division.
Each Area includes id, name, type, stock_pool and pending_inspection. It may also include division, archived and other settings. stock_pool tells you whether an Area tracks counted stock (STOCK_TRACKING) or only manages Items (ITEMS_ONLY).
Use GET /areas/{area} with the id from the list to read one Area. The response is the Area object itself, not an areas array.
Status codes
200on success, including an empty Area list.403if the token lacks the required Area permission.404if the requested Area does not exist.
Example
GET /areas?division=DIVISION_ID
{
"areas": [
{
"id": "AREA_ID",
"name": "Main storage",
"type": "storage",
"stock_pool": "STOCK_TRACKING",
"pending_inspection": false,
"division": "DIVISION_ID"
}
]
}