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