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 200 then 404.
Solicitud
Respuestas
- 200
- 401
- 403
- 404
- 422
- 429
- 500
Category deleted.
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).
Rate limit exceeded for this token. Reads and writes have separate budgets, both on a 1-hour sliding window. The response carries X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset and Retry-After — wait out Retry-After rather than retrying immediately.
Unhandled server error.