---
title: "Get all cost centers for an enterprise"
method: GET
path: "/enterprises/{enterprise}/settings/billing/cost-centers"
tags: ["billing"]
---

# Get all cost centers for an enterprise

`GET /enterprises/{enterprise}/settings/billing/cost-centers`

Gets a list of all the cost centers for an enterprise.

## Path parameters

- `enterprise` string, required

## Query parameters

- `state` 'active' | 'deleted'

## Response `200`

Response when getting cost centers

- GetAllCostCenters
  - `costCenters` object[]
    - `id` string, required — ID of the cost center.
    - `name` string, required — Name of the cost center.
    - `state` 'active' | 'deleted' — State of the cost center.
    - `azure_subscription` string, nullable — Azure subscription ID associated with the cost center. Only present for cost centers linked to Azure subscriptions.
    - `resources` object[], required
      - `type` string, required — Type of the resource.
      - `name` string, required — Name of the resource.

## Other responses

- `400` — Bad Request
- `403` — Forbidden
- `500` — Internal Error
- `503` — Service unavailable

---

[API](https://skmtc.dev/github/apis/enterprise-cloud.md) · [All operations](https://skmtc.dev/github/apis/enterprise-cloud/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/github/enterprise-cloud/revisions/00a3fe4953d7/schema)
