Service Layer medium complexity backend
0
Dependencies
0
Dependents
1
Entities
0
Integrations

Description

Backend service that orchestrates the flow of approved reimbursements and expense data from Meander into external accounting systems. Manages per-organization configuration, applies field mappings, and coordinates retry logic and error reporting.

Feature: Accounting API

accounting-integration-service

Sources & reasoning

Tied to Fase 3 in §5 ("Regnskapsintegrasjon ... følger derfor Fase 3"), which maps to the Growth & Engagement phase name. Driven by HLF and Blindeforbundet's stated need for direct API integration with their existing accounting systems.

Responsibilities

  • Persist and retrieve per-organization accounting configuration and credentials
  • Transform approved expense records using configured field mappings
  • Queue and dispatch sync jobs to the accounting gateway
  • Handle retry logic for transient sync failures
  • Record sync results and surface errors to the admin portal

Interfaces

getConfig(orgId): AccountingConfig
updateConfig(orgId, config): AccountingConfig
syncApprovedExpense(orgId, expenseId): SyncResult
getSyncHistory(orgId, filter): SyncRecord[]
retryFailedSync(syncId): SyncResult

Related Data Entities (1)

Data entities managed by this component