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

Description

Low-level HTTP client used exclusively by the accounting integration adapters for making authenticated REST calls to Xledger and Dynamics endpoints. Encapsulates connection timeout configuration, TLS handling, and structured error classification (transient vs permanent) so retry decisions can be made in the sync service.

Feature: Accounting API

accounting-api-http-client

Responsibilities

  • Execute authenticated HTTP requests to accounting provider REST endpoints
  • Classify HTTP error responses as transient (5xx, timeout) or permanent (4xx)
  • Enforce configurable connection and read timeouts
  • Return structured response objects with status, body, and provider reference fields

Interfaces

post(url, headers, body): HttpResponse
isTransientError(response): boolean
buildAuthHeaders(credentials, provider): Record<string, string>

Relationships

Dependents (2)

Components that depend on this component