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

Description

Backend service that generates accounting export files from approved reimbursement and expense data. Handles format conversion, column mapping application, temporary file storage, and audit logging of all export operations.

Feature: Accounting Export

accounting-export-service

Sources & reasoning

Companion to accounting-api in the same Fase 3 / Growth & Engagement bucket. The Accounting Integration area in §8 explicitly lists both "Accounting API" and "Accounting Export" as features, indicating a file-based path alongside the live API for organizations not ready for direct integration.

Responsibilities

  • Query approved reimbursement and expense data for the specified period
  • Generate export files in CSV, XML, or accounting-system-specific formats
  • Apply configurable column mappings to output data
  • Store generated files temporarily with access controls
  • Record audit log entries for every export generated

Interfaces

generateExport(dateRange, format, mapping, adminId): ExportJob
getExportFile(exportId, adminId): FileStream
listExports(adminId): ExportRecord[]
purgeExpiredExports(): number