v1

latestOpenAPI 3.1.02026-08-0662251219.8 KB
Cost Centers

List cost centers

This endpoint lists cost centers of a company.

post/v3/companies/{companyId}/cost-centers/list

Request body

searchTextstring

Search string entered by the user

Example request

{
  "searchText": "Credit",
  "filters": [
    {
      "externalIds": [
        "external-id"
      ],
      "costCenterIds": [
        "731ccbca-0415-6fe1-d235-c324dfbe7423"
      ]
    }
  ]
}

Response

OK

Example response

{
  "costCenters": [
    {
      "id": "731ccbca-0415-6fe1-d235-c324dfbe7423",
      "name": "Credit"
    }
  ]
}