Eliminar categoría
DELETE/categories/:id
Deletes a category. Requires scope finance.categories.write. Returns 422 (reason: has_children) while the category still has subcategories — delete the children first. For a leaf, references on transactions / payables / receivables are set to null and the row is removed. Calling DELETE twice returns 204 then 404.
Solicitud
Respuestas
- 204
- 401
- 403
- 404
- 422
- 500
Category deleted. No response body.
Missing / invalid / expired / revoked token.
Token lacks the finance.categories.write scope.
Category not found within the tenant.
The category still has subcategories (reason: has_children).
Unhandled server error.