Skip to content
campaiDeveloper
campai.com

Finance

GET/{organizationId}/finance/costCentersReads only

Get organization cost centers

Returns the organization-wide cost centers inherited by all mandates.

Permissions

Send an API key of the organization in the path, using the X-API-Key header.

Who may call it

  • Requires organization access.
  • Requires the costCenter.read permission.

Request

Path parameters

  • organizationIdidrequired
Request
curl --fail-with-body --silent --show-error --max-time 30 --globoff \
  --request GET 'https://cloud.campai.com/api/YOUR_ORGANIZATION_ID/finance/costCenters' \
  --header 'X-API-Key: YOUR_API_KEY'

Response

200 Successful response

Content-Type: application/json

  • costCentersobject[]

    at most 200 items

    3 properties
    • numbernumber

      1–99999999

    • labelstring

      1–64 characters

    • bookableboolean
Response200
{
  "costCenters": [
    {
      "number": 1,
      "label": "string",
      "bookable": true
    }
  ]
}

Errors

No errors of its own are known for this endpoint.

Errors nearly every request can meet are listed under Errors.