billing
Get all cost centers for an enterprise
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
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