Service Layer high complexity Shared Component backend
3
Dependencies
2
Dependents
3
Entities
0
Integrations

Description

Pluggable adapter layer that routes approved expense claim payloads to the correct external accounting system using per-organization configuration. Implements a shared typed IAccountingAdapter contract so new providers can be registered without modifying the core approval flow.

Feature: Accounting API

accounting-api-connector

Responsibilities

  • Resolve the correct accounting adapter for the organization based on stored configuration
  • Transform Meander expense fields into the target system format using org-level field mappings
  • Execute REST or OData calls to Xledger or Dynamics with encrypted per-org credentials
  • Retry failed deliveries with exponential backoff and write outcomes to accounting_integration_logs
  • Validate adapter contract compliance for all registered provider implementations

Interfaces

sendExpenseClaim(orgId, expenseClaim): Promise<DeliveryResult>
registerAdapter(providerKey, adapter): void
getAdapter(orgId): IAccountingAdapter
retryFailedDelivery(logId): Promise<DeliveryResult>
getDeliveryStatus(logId): Promise<DeliveryStatus>

Related Data Entities (3)

Data entities managed by this component