---
title: "Get cost centers by legal entity"
method: GET
path: "/legal-entities/{legal_entity_id}/cost-centers"
tags: ["costCenters"]
---

# Get cost centers by legal entity

`GET /legal-entities/{legal_entity_id}/cost-centers`

## Request

- Base URL: `https://api.letsdeel.com/rest`
- URL: `https://api.letsdeel.com/rest/legal-entities/{legal_entity_id}/cost-centers`
- Auth: HTTP bearer

Returns all cost centers associated with the specified legal_entity_id.

 **Token scopes**: `legal-entity:read`

## Path parameters

- `legal_entity_id` string, uuid, required

## Response `200`

Cost center data was successfully fetched

- CostCentersGetLegalEntityCostCentersResponse200
  - `data` LegalEntitiesLegalEntityIdCostCentersGetResponsesContentApplicationJsonSchemaDataItems[]
    - `id` integer: Cost center Id
    - `created_at` string, date-time: Cost center date of registration on Deel
    - `updated_at` string, date-time: Cost center date of most recent update on Deel
    - `cost_center_name` string: Cost center name to be displayed
    - `cost_center_number` string: Cost center code

## Other responses

- `400`: Operation failed.
- `401`: Operation failed.
- `403`: Operation failed.
- `404`: Operation failed.
- `500`: Operation failed.

---

[API](https://skmtc.dev/deel/apis/endpoints.md) - [All operations](https://skmtc.dev/deel/apis/endpoints/llms.txt) - [OpenAPI document](https://skmtc.dev/deel/apis/endpoints/revisions/0c7142fd9f93?raw)
