Skip to Content
EquinoxAPI and integrationsPublic M2M APIPublic M2M API — cost-centers

Public M2M API — cost-centers

Review the operation, its input and access requirements. Parameter names and enum values are protocol identifiers and must retain the exact spelling shown. Optional/defaulted input is marked as such; required fields nested beneath an optional object apply when that object is supplied. Only statically recognized literal constraints are shown; additional validation, conditional requirements and provider rules may apply.

Authentication and permissions · Requests, results and recovery

/api/v1/cost-centers

Exported methods: GET, POST, DELETE

GET

  • Resource scopes: cost-centers:read
  • Query parameters: isActive, limit, page, parentId, search, stats, tree, type
  • Shared pagination: Yes
  • Response keys observed across outcomes: stats, tenantId, tree

POST

  • Resource scopes: cost-centers:write
  • Explicit response statuses: 201, 400, 409, 422
  • Explicit error codes: cost_center_failed, invalid_request, onboarding_incomplete
  • Response keys observed across outcomes: costCenter

Validated request fields

FieldTypeOptional/defaultedNullableAllowed literal valuesObserved literal constraints
codestringNoNo—min(1), max(32)
colorstringYesYes——
descriptionstringYesYes—max(500)
idstringYesNo——
isActivebooleanYesNo—default(true)
managerIdstringYesYes——
namestringNoNo—min(1), max(120)
parentIdstringYesYes——
sortOrdernumberYesNo—int()
typeenumYesNodepartment, project, product_line, location, customdefault("department")

DELETE

  • Resource scopes: cost-centers:write
  • Query parameters: id
  • Explicit response statuses: 400, 422
  • Explicit error codes: delete_failed, invalid_request
  • Response keys observed across outcomes: deleted, id

Provide a nonempty id in query or JSON. The selected cost center is passed to the delete service; inspect the result and current record before retrying.

/api/v1/cost-centers/{id}

Exported methods: GET, PATCH, DELETE

GET

  • Resource scopes: cost-centers:read
  • Path parameters: id
  • Response keys observed across outcomes: costCenter

PATCH

  • Resource scopes: cost-centers:write
  • Path parameters: id
  • Explicit response statuses: 422
  • Explicit error codes: invalid_request
  • Response keys observed across outcomes: costCenter

Validated request fields

FieldTypeOptional/defaultedNullableAllowed literal valuesObserved literal constraints
codestringYesNo—min(1), max(32)
colorstringYesYes——
descriptionstringYesYes—max(500)
isActivebooleanYesNo——
managerIdstringYesYes——
namestringYesNo—min(1), max(120)
notesstringYesYes—max(1000)
parentIdstringYesYes——
sortOrdernumberYesNo—int()
typeenumYesNodepartment, project, product_line, location, custom, cost, revenue, profit—

DELETE

  • Resource scopes: cost-centers:write
  • Path parameters: id
  • Response keys observed across outcomes: deleted, id

Request input was not extracted for this operation; consult its specific contract before sending. Do not infer that no body is required.