Infrastructure medium complexity backend
1
Dependencies
1
Dependents
0
Entities
0
Integrations

Description

Low-level HTTP client wrapper for outbound calls to external accounting system APIs. Handles request signing, timeout configuration, TLS verification, and structured error mapping from HTTP responses to domain errors.

Feature: Accounting System Integration

accounting-system-http-client

Responsibilities

  • Execute authenticated HTTP requests to accounting system endpoints
  • Apply API key or OAuth bearer token from config to each request
  • Map HTTP error codes to domain-level AccountingSyncError types
  • Enforce request timeouts and surface them as retriable errors

Interfaces

post(url: string, payload: unknown, auth: AuthContext): Promise<HttpResponse>
get(url: string, auth: AuthContext): Promise<HttpResponse>
buildAuthContext(config: IntegrationConfig): AuthContext

Relationships

Dependencies (1)

Components this component depends on

Dependents (1)

Components that depend on this component