Cost Centers

Retrieve a single cost center

Changed on

Returns a single cost center, including its usage counts.</br></br>Required scope: cost-centers:read </br>Organization authorization: supported

get/api/v1/cost-centers/{costCenterId}

Request

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

Path parameters

costCenterIdinteger required

Response

Cost center with provided id

idinteger

Id of this cost center

operatorIdinteger

Id of the operator this cost center belongs to

teamIdinteger nullable

Id of the team this cost center belongs to. Null when the cost center is operator-scoped.

namestring required

Name of the cost center

externalIdstring required

External Id of this cost center, managed by you.

descriptionstring nullable

Description of the cost center

createdAtstring date-time required

Creation date of this cost center

updatedAtstring date-time required

Date this cost center was last updated

teamsCountinteger nullable

Number of teams assigned to this cost center. Only returned when retrieving a single cost center.

teamMembersCountinteger nullable

Number of team members assigned to this cost center. Only returned when retrieving a single cost center.

teamMemberProfilesCountinteger nullable

Number of team member profiles assigned to this cost center. Only returned when retrieving a single cost center.

vehiclesCountinteger nullable

Number of vehicles assigned to this cost center. Only returned when retrieving a single cost center.

chargeKeysCountinteger nullable

Number of charge keys assigned to this cost center. Only returned when retrieving a single cost center.

Example response

{
  "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