# Cost centers

The parts of the business (sites, projects, branches, departments) by which the issuer separates its income and expenses.

The guide, step by step: https://fiscalisto.com/en/docs/api/centros-de-costo.md

## Endpoints

- [Create a cost center](https://fiscalisto.com/en/docs/api/referencia/centros-de-costo/create-cost-center.md): `POST /v1/cost_centers`
- [List cost centers](https://fiscalisto.com/en/docs/api/referencia/centros-de-costo/list-cost-centers.md): `GET /v1/cost_centers`
- [Get a cost center](https://fiscalisto.com/en/docs/api/referencia/centros-de-costo/get-cost-center.md): `GET /v1/cost_centers/{id}`
- [Update a cost center](https://fiscalisto.com/en/docs/api/referencia/centros-de-costo/update-cost-center.md): `POST /v1/cost_centers/{id}`
- [Delete a cost center](https://fiscalisto.com/en/docs/api/referencia/centros-de-costo/delete-cost-center.md): `DELETE /v1/cost_centers/{id}`

## The CostCenter object

An issuer's cost center: a site, project, branch or area by which it separates its income and expenses.

| Field | Type | Always present | Description |
| --- | --- | --- | --- |
| `id` | string | yes | Object identifier, with its prefix (iss_, inv_, ret_, cus_, prd_, emp_, bat_, brn_, whs_, stm_, adj_, evt_, whe_). |
| `livemode` | boolean | yes | true in production (fk_live_ keys), false in test mode (fk_test_). Test objects aren't valid before the SAT. |
| `object` | `"cost_center"` | yes | What kind of object it is («invoice», «customer»…). |
| `issuer` | string | yes | The cost center's issuer. |
| `name` | string | yes | What your team calls it, for example «Obra Norte». |
| `code` | string or null | yes | Its code (for example «CC-01»), or null. |
| `archived` | boolean | yes | true if it is archived: invoices are no longer put in it, but its own keep it. |
| `invoices` | integer | yes | How many invoices it has, issued and received. (from -9007199254740991 to 9007199254740991) |
| `created_at` | string (date-time) or null | yes | When it was created. |
| `updated_at` | string (date-time) or null | yes | When it last changed. |

Example:

```json
{
  "id": "ccn_OufpKqnrvx9p1",
  "object": "cost_center",
  "livemode": false,
  "issuer": "iss_OufpKqnrvx9p",
  "name": "Obra Norte",
  "code": "CC-01",
  "archived": false,
  "invoices": 42,
  "created_at": "2026-11-01T09:12:00-06:00",
  "updated_at": "2026-11-01T09:12:00-06:00"
}
```
