Eliminar centro de clasificación
DELETE/classification-centers/:id
Deletes a classification center. Requires scope finance.cost_centers.write. Returns 422 (reason: in_use, with a usage breakdown) when the classification center is referenced by a rateio allocation, billing or transaction — soft-deactivate via PATCH { active: false } instead. Calling DELETE twice returns 200 then 404. Naming: the path is hyphenated like every other v1 resource (/classification-centers), but the scope is still finance.cost_centers — the table behind it is cost_centers, and the scope names the grant, not the URL.
Solicitud
Respuestas
- 200
- 401
- 403
- 404
- 422
- 429
- 500
Classification center deleted.
Missing / invalid / expired / revoked token.
Token lacks the finance.cost_centers.write scope.
Classification center not found within the tenant.
The classification center is in use (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.