Delete an accounting ledger
DELETE/api/v1/accounting_ledgers/:id
Deletes an accounting ledger by ID.
The delete is refused with a 422 while anything still points at the ledger - a customer or supplier, a bank account, or a posted accounting entry. Reassign those records first.
Request
Responses
- 204
- 401
- 404
- 422
The accounting ledger was deleted. The response body is empty.
The request did not include a valid OAuth 2.0 access token.
No accounting ledger exists with the given id, or it belongs to a workspace the access token's OAuth application is not linked to.
Records still reference the ledger, so it was not deleted. code is dependent_records and message names what blocks the delete; unlike a validation failure this body carries no details.