billing

Get all cost centers for an enterprise

Changed on

Gets a list of all the cost centers for an enterprise. Enterprise owners and billing managers can view all cost centers, and organization owners can view cost centers associated with resources they administer. A custom role holder with fine-grained read access to enterprise billing can also view cost centers. An installation access token for a GitHub App installed on the enterprise with read access to enterprise billing can list all cost centers in the enterprise.

get/enterprises/{enterprise}/settings/billing/cost-centers

Request

  • Base URL: https://api.github.com
  • URL: https://api.github.com/enterprises/{enterprise}/settings/billing/cost-centers
  • Auth: none declared

Path parameters

enterprisestring required

The slug version of the enterprise name.

Query parameters

state'active' | 'deleted'

Set to active or deleted to only list cost centers in a specific state.

Response

Response when getting cost centers

Changes

  • 2022-11-28eccf40a54a3cRevision changes
    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status