AlegraCost Centers

Alegra Cost Centers API

Sync permissioned cost centers data with Alegra through Apideck's unified API. One integration, instant access to the governed data your team needs.

In Apideck, this resource is called Departments (API: departments)

Supported Operations for Alegra Cost Centers

Full CRUD support available through our unified API

list
get
create
update
delete

Supported Fields

5 fields

Fields available for Alegra Cost Centers

iddisplay_idnamestatuscode

API Model Preview

Sample response structure for cost centers

{
  "id": "12345",
  "display_id": "12345",
  "name": "Example Name",
  "status": "active",
  "code": "CODE-001"
}

Quick Start Example

Start syncing Alegra cost centers in minutes

Node.js
import { Apideck } from '@apideck/unify'

const apideck = new Apideck({
  apiKey: process.env.APIDECK_API_KEY,
  appId: 'YOUR_APP_ID',
  consumerId: 'YOUR_CONSUMER_ID'
})

// List cost centers from Alegra
const result = await apideck.accounting.departments.list({
  serviceId: 'alegra'
})

for await (const page of result) {
  console.log(page)
}
// Returns unified cost centers data
Related Data Models

Other Alegra Data You Can Sync

Explore more Alegraresources available through Apideck's unified API

Alegra SDKs

Build Alegra integrations in your favorite language with our official SDKs.

Launch accounting integrations in weeks, not months

Get started for free