Accounting Integration Service
Component Detail
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.
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.
-
docs/source/likeperson.md · line 45API-integrasjon mot regnskapssystem (Xledger for Blindeforbundet, Dynamics-portal for HLF).
-
docs/source/likeperson.md · line 269Regnskapsintegrasjon (Xledger for Blindeforbundet, Dynamics accounting for HLF)
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