Excluir imposto
DELETE/taxes/:id
Deletes a tax. Requires scope finance.taxes.write. Returns 422 (reason: in_use, with the referencing payable/receivable ids) when the tax still has charges — soft-deactivate via PATCH { active: false } instead. Calling DELETE twice returns 200 then 404.
Requisição
Respostas
- 200
- 401
- 403
- 404
- 422
- 429
- 500
Tax deleted.
Missing / invalid / expired / revoked token.
Token lacks the finance.taxes.write scope.
Tax not found within the tenant.
The tax has charges (reason: in_use).
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.