676 B
676 B
GET /company
Protected. Requires a valid session cookie (credentials: 'include').
List companies
Lists companies for the authenticated user.
Response 200
Company list
{
"companies": [
{
"id": 1,
"name": "…",
"rootCategoryId": 1,
"languageId": 1,
"iso639": "…",
"taxrate": 1,
"reducedtaxrate": 1,
"taxfreerate": 1,
"role": "admin"
}
]
}
Errors
| Status | Description |
|---|---|
| 401 | Unauthorized — {"error":"…"} |
| 500 | Server error — {"error":"…"} |
Generated from @openapi JSDoc. Do not edit by hand — run npm run docs:api.