Cost Centers

Retrieve a list of cost centers

Changed on

Required scope: cost-centers:read </br>Organization authorization: supported

get/api/v1/cost-centers

Request

  • Base URL
    https://partner-api.monta.com
  • URL
    https://partner-api.monta.com/api/v1/cost-centers
  • Auth
    HTTP bearer

Query parameters

pageinteger

page number to retrieve (starts with 0)

perPageinteger

number of items per page (between 1 and 100, default 10)

teamIdinteger nullable

Allows to filter the list of cost centers by a team id.

Example:10
includeDeletedboolean

Filter to include deleted cost centers in the response

Response

List of cost centers that match the criteria

Example response

{
  "data": [
    {
      "id": 1,
      "operatorId": 1,
      "teamId": 10,
      "name": "Sales department",
      "externalId": "ACME-12345",
      "description": "Costs attributed to the sales department",
      "createdAt": "2022-05-12T15:56:45.99Z",
      "updatedAt": "2022-05-12T16:56:45.99Z",
      "teamsCount": 3,
      "teamMembersCount": 12,
      "teamMemberProfilesCount": 4,
      "vehiclesCount": 7,
      "chargeKeysCount": 9
    }
  ]
}

Changes