API reference
4 operations in accounting. Raw spec: openapi.json.
GET
/api/v1/accounting/class-accountsGET /accounting/class-accounts — every class the org posts to, defaults filled in for the ones it has not chosen.
Responses
| Status | Description |
|---|---|
200 |
Security: bearer
PUT
/api/v1/accounting/class-accountsPUT /accounting/class-accounts — choose the account one class posts to.
Request body
SetClassAccountRequest
Responses
| Status | Description |
|---|---|
200 | |
422 | class or account is empty |
Security: bearer
GET
/api/v1/accounting/packageGET /accounting/package — the period's package, ready to hand an accountant.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
from | query | string | Yes | |
to | query | string | Yes |
Responses
| Status | Description |
|---|---|
200 | |
409 | a reporting class in the period has no account mapped |
422 | the period is inverted |
Security: bearer
GET
/api/v1/accounting/package.csvGET /accounting/package.csv — the same period and the same rows, as CSV.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
from | query | string | Yes | |
to | query | string | Yes |
Responses
| Status | Description |
|---|---|
200 | |
409 | a reporting class in the period has no account mapped |
422 | the period is inverted |
Security: bearer