Service card: Integrations
| Purpose | Tax (AvaTax) and exchange rates (Bank of Canada) for every PVC Connect application |
| Owns | Tax documents, tax-code mappings, entity tax configuration, rates and locks, certificate requests, party sync state |
| Does not own | Customers and vendors (PVC Connect is the source; this service keeps a synced copy), GL postings, Sage |
| Exposes | REST /api/v1 (reference), events on RabbitMQ (catalog) |
| Consumes | 7 messages from PVC Connect (catalog) |
| Depends on | Postgres (required), RabbitMQ, Avalara AvaTax, Bank of Canada Valet |
| Runs as | integrations-api and integrations-worker Deployments (one image) |
| Health | /health/live, /health/ready (database only), /health/providers (AvaTax), /health/bus (RabbitMQ) |
| Telemetry | OpenTelemetry traces and metrics (OTEL_EXPORTER_OTLP_ENDPOINT), Serilog JSON logs, meter Integrations |
| Docs | Handbook (here), API reference, .NET reference, runbook |
| Repository | JDoyleB/AvaTax |
Scheduled jobs (Worker)
| Job | Every | Does |
|---|---|---|
fx-daily-import | 1 h | Imports the FX source's rates, re-reading 10 days so late publications land |
tax-pending-recalculation | 2 min | Finishes PendingTax documents (exponential back-off per document) |
party-sync-retry | 10 min | Sends pending customers and vendors |
certificate-watch | 1 h | Re-checks outstanding resale requests and announces expiring exemption certificates |
tax-reconciliation | daily, 03:00 business time | Compares the last 3 days of committed documents with AvaTax |
deferred-message-redelivery | 30 s | Sends parked messages that are due back to their queue (ADR 0008) |
Every Worker replica polls the jobs; job_runs and a Postgres advisory lock make each run happen once. See their
status with GET /api/v1/admin/jobs and run one now with POST /api/v1/admin/jobs/{name}/run.