Create an accounting ledger
POST/api/v1/workspaces/:workspace_id/accounting_ledgers
Creates an accounting journal for one company of the workspace.
company_id is required here and fixed afterwards: a ledger never moves to another company, and PATCH ignores the field. Both code and name are unique within the company.
Request
Responses
- 201
- 401
- 403
- 404
- 422
The accounting ledger was created for the company named by company_id and is returned in full.
The request did not include a valid OAuth 2.0 access token.
The access token's OAuth application is not linked to this workspace, no such workspace exists, or the token carries no write scope.
The company_id names a company of another workspace.
The payload was refused: code is validation_failed and details.base carries the reason - a missing company_id, or a name/code the company already uses.