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

Description

Orchestrates the end-to-end flow of expense and reimbursement data from the Meander platform into external accounting systems. It resolves the correct accounting backend per organization and delegates to the API client for transport. This service ensures the rest of the platform remains agnostic to per-organization accounting system differences.

Feature: Accounting API

accounting-integration-service

Sources & reasoning

Lines 72 and 353 both explicitly name accounting system integration as a Fase 3 deliverable for HLF and Blindeforbundet. Fase 3 is the third development phase, mapping to v1.1. The API client is the foundational piece required before any export can occur, so it is a distinct feature from the export UI.

Responsibilities

  • Determine target accounting system based on organization identity
  • Coordinate data mapping and submission for expense and reimbursement records
  • Handle retry logic and transient transport failures
  • Emit structured audit events on submission success or failure
  • Expose a unified internal interface consumed by the approval queue and export pipeline

Interfaces

submitExpense(organizationId: string, expense: ExpenseRecord): Promise<AccountingSubmissionResult>
submitReimbursement(organizationId: string, reimbursement: ReimbursementRecord): Promise<AccountingSubmissionResult>
getSubmissionStatus(submissionId: string): Promise<SubmissionStatus>
resolveAccountingBackend(organizationId: string): AccountingBackendConfig

Related Data Entities (2)

Data entities managed by this component