Documentation menu

API reference

4 operations in accounting. Raw spec: openapi.json.

GET/api/v1/accounting/class-accounts

GET /accounting/class-accounts — every class the org posts to, defaults filled in for the ones it has not chosen.

Responses

StatusDescription
200

Security: bearer

PUT/api/v1/accounting/class-accounts

PUT /accounting/class-accounts — choose the account one class posts to.

Request body

SetClassAccountRequest

Responses

StatusDescription
200
422class or account is empty

Security: bearer

GET/api/v1/accounting/package

GET /accounting/package — the period's package, ready to hand an accountant.

Parameters

NameInTypeRequiredDescription
fromquerystringYes
toquerystringYes

Responses

StatusDescription
200
409a reporting class in the period has no account mapped
422the period is inverted

Security: bearer

GET/api/v1/accounting/package.csv

GET /accounting/package.csv — the same period and the same rows, as CSV.

Parameters

NameInTypeRequiredDescription
fromquerystringYes
toquerystringYes

Responses

StatusDescription
200
409a reporting class in the period has no account mapped
422the period is inverted

Security: bearer