Accounting Integration Client
API Contract
REST
/api/v1/accounting-exports
6 endpoints
GET
/api/v1/accounting-exports/api/v1/accounting-exports
List export records
Public
Response Example
{
"data": [
{
"export_id": "exp_xp_6a2d9c",
"expense_id": "exp_9c2d7e",
"target_system": "tripletex",
"status": "success",
"external_reference": "TTX-20260318-9927",
"exported_at": "2026-03-20T15:00:00Z"
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 1
}
}
GET
/api/v1/accounting-exports/api/v1/accounting-exports/:id
Get export status and external reference
Public
Response Example
{
"export_id": "exp_xp_6a2d9c",
"expense_id": "exp_9c2d7e",
"organization_id": "org_4729bc",
"target_system": "tripletex",
"status": "success",
"external_reference": "TTX-20260318-9927",
"exported_at": "2026-03-20T15:00:00Z",
"error_message": null
}
POST
/api/v1/accounting-exports/api/v1/accounting-exports
Export a single approved expense to accounting system
Public
Request Example
{
"expense_id": "exp_9c2d7e",
"target_system": "tripletex"
}
Response Example
{
"export_id": "exp_xp_6a2d9c",
"expense_id": "exp_9c2d7e",
"target_system": "tripletex",
"status": "processing",
"initiated_at": "2026-03-20T15:00:00Z"
}
PUT
/api/v1/accounting-exports/api/v1/accounting-exports/:id
Update export record status (webhook callback)
Public
Request Example
{
"status": "success",
"external_reference": "TTX-20260318-9927"
}
Response Example
{
"export_id": "exp_xp_6a2d9c",
"status": "success",
"external_reference": "TTX-20260318-9927",
"exported_at": "2026-03-20T15:01:00Z"
}
DELETE
/api/v1/accounting-exports/api/v1/accounting-exports/:id
Cancel a pending export job
Public
Response Example
{
"deleted": true,
"export_id": "exp_xp_6a2d9c"
}
POST
/api/v1/accounting-exports/api/v1/accounting-exports/batch
Batch export multiple approved expenses
Public
Request Example
{
"expense_ids": [
"exp_9c2d7e",
"exp_1a4f8b",
"exp_5c7d3e"
],
"target_system": "tripletex"
}
Response Example
{
"batch_id": "batch_9f1e3c",
"expense_ids": [
"exp_9c2d7e",
"exp_1a4f8b",
"exp_5c7d3e"
],
"target_system": "tripletex",
"status": "processing",
"initiated_at": "2026-03-20T15:05:00Z"
}