costCenters
Módulo Finance · 5 operaciones
List cost center rows
GET/cost-centers
A tenant cost center (GL dimension 1), created from canon templates or per event scope. Returns a cursor page of cost center rows the caller may see. The default order is `code` ascending. Supports sparse fieldsets and the filter grammar.
Create a cost center
POST/cost-centers
A tenant cost center (GL dimension 1), created from canon templates or per event scope. Creates a cost center. Requires `Idempotency-Key`; a replay returns the original response. The organization is derived from the credential or the parent row, never from the body.
Get a cost center
GET/cost-centers/{id}
A tenant cost center (GL dimension 1), created from canon templates or per event scope. Returns one cost center with its `ETag`. A cost center the caller may not see returns 404.
Update a cost center
PATCH/cost-centers/{id}
A tenant cost center (GL dimension 1), created from canon templates or per event scope. Updates the fields sent; omitted fields are unchanged. Requires `If-Match` with the current `ETag`: a stale tag returns 412 and a missing tag returns 428.
Delete a cost center
DELETE/cost-centers/{id}
A tenant cost center (GL dimension 1), created from canon templates or per event scope. Soft-deletes the cost center: it moves to Trash and can be restored for its table's retention period.