HIGH story-external-system-integration-configuration-organization-admin-001 13 pts

User Story

As a Organization Administrator
I want to configure a connection to our accounting system (Xledger or Dynamics) through a guided setup wizard
So that expense claims and reimbursements are automatically exported to our accounting platform without manual data entry

Acceptance Criteria

  • Given I am an org admin navigating to Settings, When I select 'External Integrations', Then I see a dashboard listing available integration types and their current status (not configured, active, error)
  • Given I click 'Add Integration', When the setup wizard opens, Then I can select from supported integration types: Xledger, Dynamics, or Generic REST API
  • Given I have selected Xledger as my integration type, When I enter API credentials and click 'Test Connection', Then the system validates the credentials against the Xledger sandbox/production endpoint and shows a success or failure message within 10 seconds
  • Given credentials are validated successfully, When I click 'Save Integration', Then the credentials are stored encrypted in the credential vault and the integration status changes to 'Active'
  • Given an integration is active, When I navigate to the integration dashboard, Then I see the last sync timestamp, total records synced, and any recent errors
  • Given I need to update credentials, When I click 'Edit Credentials', Then I can update the API key or endpoint URL without disrupting existing sync schedules

Business Value

Manual accounting reconciliation costs organizations 3-5 hours per week and introduces data entry errors. Automated integration with Xledger (Blindeforbundet) and Dynamics (HLF) eliminates manual export, reduces accounting errors by an estimated 90%, and ensures expense claims reach accountants same-day rather than end-of-month. This is a contractual requirement for HLF's Dynamics portal coordination and directly enables compliance with financial reporting obligations.