GET /divisions
Read the account's divisions. Use each division's id when another endpoint accepts a division query parameter, such as a report filter.
Status codes
200on success401if the Authorization header is missing
Response properties
divisions: Array of division objects. Each object includes anidandname; additional fields can describe its locations, storage, staff and company.
An account without divisions receives an empty divisions array.
locations refers to the areas that belong to the division. location it is the legacy name for areas.
Example response
{
"divisions": [
{
"id": "div_1234567890",
"name": "Example division",
"locations": ["are_8UTTwHuCqm", "l01"],
"has_storage": false,
"staff": []
}
]
}