Technical guide

CollectionsHub

How the collections engine is built, connected, secured and hosted: modules, APIs, data flow and the safeguards on every message.

.NET 10 ยท PostgreSQL 16 ยท RemixInbound: HTTPS 443 onlyNo card data storedClarity- or client-hosted
3Outbound channelsE-mail, SMS, letters
180+REST endpointsRole-checked
8Staff rolesServer-enforced
5ContainersOne host to start
SYSTEMS OF RECORDCOLLECTIONSHUBCHANNELSPEOPLEERPNetSuite connector; otherERPs via Clarity connectorsPayment gatewayHosted card fields, tokens,AutoPay and refundsEDI networksX12 and cXML (Coupa, Ariba)over VAN, SFTP or AS2Collectionspositions, strategies,work, approvalsMessagingsend gate, consent,inbox, webhooksPayment Hubportal, pay links,AutoPay, walletsCollections AIrules first, a personapproves in reviewSchedulerleases, event outbox,nightly positionsPostgreSQLone database, audithash chain, consentREST API and web UI.NET 10 API ยท React/Remix ยท role-checkedE-mailSMTP relay over TLSText messagesTwilio-compatible providerLettersLob-compatible print and mailTeam alertsTeams webhook or e-mailCustomerslinks and portalStaffeight roles, browserERP userspanel inside the ERP1234567
Connection (HTTPS) CollectionsHub External system Connections 1 to 7 are described on page 2
Dashboard tiles read the same tables collectors work from.
Dashboard tiles read the same tables collectors work from.
The panel the ERP opens with a signed launch (simulated ERP).
The panel the ERP opens with a signed launch (simulated ERP).
CollectionsHub ยท Technical guideClarity VenturesPage 1 of 5
Connections and data flow

What moves, and how it is protected

1ERP delta pull by change token; collections write-back coalesced every 10 minutes within an hourly call budget
5Customers use tokenised account links (14 days, one customer) and the portal
2Card data goes from the browser to the gateway's hosted fields; the hub charges by token
6Staff sessions with role checks on every call, lockout and multi-factor codes
3EDI 810 out; 820 remittances and 812 deductions in, raised as disputes
7The ERP opens the Collections panel with a signed, single-use, short-lived launch
4Every send passes the gate; signed provider webhooks return delivery, bounces and STOP
A REMINDER GOES OUTStrategy rundaily, under a lease;one step per accountSend gateconsent, quiet hours,caps, holds, flagsProviderSMTP, SMS or print;idempotent sendWebhooksigned: delivered,bounced, STOPTimelinestatus only movesforward; tasks openA PAYMENT COMES INCard entryhosted fields give atoken; no card dataPayment Hubcharge by token,receipt, ledger entryEvent outboxclaimed once, evenwith several serversRebuildpromise judged, workcloses, snapshot keptWrite-backto the ERP, withinan hourly call budget

REST API surface

/api/collections/accountsPositions, Account 360, timeline, drill-down filters with totals
/api/collections/workQueue, assignment, calls, activity, productivity
/api/collections/dunningStrategies, templates, step runs, coverage, previews
/promises ยท /plansPromises, negotiation, plans, pauses, reinstatement
/disputes ยท /recoveryCases and credit requests; failed payments and retries
/audit ยท /configHash-chain verify; export, diff, import, versions, rollback
/ai ยท /portalReview queue, scores, forecast; account-link pages
/api/communicationsMessages, inbox, contact points, suppressions, webhooks
Templates: figures come only from ledger tokens; unknown fields are refused.
Templates: figures come only from ledger tokens; unknown fields are refused.

Built to run on more than one server

Leases. Scheduled jobs take a database lease, so a second server never runs them twice.
Exactly once. Payment events are claimed once; sends and write-backs are idempotent.
Checkable. A consistency check compares each account with its invoices and snapshot.
CollectionsHub ยท Technical guideClarity VenturesPage 2 of 5
Feature matrix ยท 1 of 2

Visibility, work, outreach and self-service

FeatureWhat it does, technicallyCategory / benefit
See where you stand
Account position
Rebuilt nightly and on each payment, promise or dispute; daily aging snapshotCollections
Collections dashboard
Tiles read the tables collectors work from; trends from daily snapshotsCollections
Every number opens
Drill-down filters return the list and its totals; consistency check APICollections
Segments
Segment dimensions mapped from ERP fields; aging by segment side by sideCollections
Four-week cash forecast
Payment shares by age bucket learned on history; backtested range coverageCollections AI
Collector productivity
Per-user activity and outcomes; attribution window; like-for-like AI comparisonCollections
Reports and CSV
Templates on the report builder pipeline; CSV per list, phones maskedReporting
Work the right accounts
Prioritized work queue
Explained priority score; items close when their reason goes awayCollections
Assignment
Assignee filters; unassigned work flagged after a set time; timeline entryCollections
Account 360 and timeline
One timeline: payments, failures, messages, calls, notes, status changesCollections
Payers and locations
Parent/child hierarchy from the ERP; payer totals include locationsCollections
Two-click call logging
13 outcomes, direction, contact, minutes; numbers masked to last fourCollections
Promises to pay
Latest date, minimum share, grace; judged kept, partly kept or brokenCollections
One-click pay reminders
Same contact rules as automation; one per account, channel and dayCollections
Automated outreach
Reminder strategies
Most specific rule wins; one step per account per day; idempotent runsCollections
Shadow mode
Shadow runs record outcomes only; going live needs a second approverCollections
Champion/challenger
Random arms, holdout option, 95% interval readout, opt-out auto-stopCollections
Self-checking templates
Ledger-filled merge tokens; unknown fields refused; versioned editsCollections
E-mail, text and letters
SMTP; Twilio-compatible SMS; Lob-compatible print and mailMessaging
Steps that need approval
Escalation-step requests carry the rendered messageCollections
Team alerts and digest
Rules per event to Teams, e-mail or in-app; daily digest at a set hourCollections
Customer self-service
One account link
Tokenised, 14-day link scoped to one customer; amounts read freshCollections
Choose a date to pay
Same server-side promise policy; repeat breakers asked to callCollections
Self-serve payment plans
Approval matrix by amount; versioned agreement recorded on the planCollections
Question an invoice
Virus-checked uploads; reminders pause for disputed invoices onlyCollections
Contact preferences
Each change kept as an append-only consent recordMessaging
Card-update link
Single-use link scoped to the customer's wallet; hosted card fieldsCollections
Portal and Quick Pay
Payment Hub portal; links expire and can be single-usePayment Hub
Account-link page: amounts read fresh, one customer only.
Account-link page: amounts read fresh, one customer only.
Failed payments, classed by decline code, with next steps.
Failed payments, classed by decline code, with next steps.
CollectionsHub ยท Technical guideClarity VenturesPage 3 of 5
Feature matrix ยท 2 of 2

Recovery, disputes, controls, AI and integration

FeatureWhat it does, technicallyCategory / benefit
Payments, recovery and plans
Failed-payment recovery
Classes from decline/advice codes; retries inside card-network limitsCollections
Bank-debit returns
Max two re-presentments in 180 days, counted in banking daysCollections
Plan negotiation console
Server-side policy check; outside limits route to approvalCollections
Plan health and hardship
Plan states and health column; at-risk tasks; plan fields to the ERPCollections
Disputes
Dispute center
Reasons with owners and deadlines; partial disputes pause only that amountCollections
Routing to operations
One queue per branch; evidence on the case; hand-back task to ARCollections
Chargeback cases
Reminders and retries pause; that card is not charged again automaticallyCollections
Credits through the ERP
Credit-memo request quotes the approval; case closes when it postsCollections
Control and compliance
Approvals, dual control
Per-type limits; no self-approval; two approvers above a limit; expiryCollections
Write-offs and credits
Reason codes, line-level credits, approval-linked memo requestsCollections
Credit and service holds
Hold flag on next write-back; auto-release when nothing is past dueCollections
Bankruptcy handling
Chapter 7, 11 and 13 rules; AutoPay and retries stop; proposalsCollections
Contact flags
Effective at once; skipped steps logged; only managers lift a flagCollections
A send gate nothing bypasses
Pure rules on every send path plus a last-moment re-checkMessaging
Compliance modes
Stricter-wins send policies; banned phrases refused in templatesCollections
Tamper-evident audit trail
Insert-only table enforced by the database; hourly hash-chain sealCollections
Configuration packs
Diff before import; each change re-validated; secrets never exportedCollections
Role-based screens
Server-side role checks on every endpoint; read-only rolesCollections
AI a person controls
Reply reading
Rules first, optional model; person approves in a review queueCollections AI
Scores and next step
Account's own invoice and payment history only; model gated by backtestCollections AI
Drafting with guardrails
Figure-by-figure ledger check; red-team set; golden-set release gateCollections AI
Negotiation assistant
Never discounts or settles; escalates on distress, legal or disputesCollections AI
Send-hour learning
Bandit over four day-parts, capped exploration; quiet hours firstCollections AI
ERP and networks
Collections inside the ERP
Signed single-use launch; short-lived session; framing locked to the ERPCollections
ERP write-back
Coalesced, every ten minutes, within an hourly ERP call budgetCollections
ERP sync and history
Delta pulls by change token; paced read-only history mirrorConnectors
EDI and AP networks
X12 4010/5010 and cXML over VAN, SFTP or AS2EDI
Built-in simulator
Virtual clock; simulated ERP and providers; sandbox refuses live hostsSimulation
AI review: route, confidence and proposal per decision.
AI review: route, confidence and proposal per decision.
Plan states and health, computed server-side.
Plan states and health, computed server-side.
CollectionsHub ยท Technical guideClarity VenturesPage 4 of 5
Security, hosting and testing

Safe by default, simple to run

Security and compliance controls

Card dataHosted gateway fields; raw card numbers refused when enforced; only token, last four and expiry kept; gateway logs redacted. PCI scope reduced via hosted fields and tokenization.
Notification safetyOne send gate on every path with a last-moment re-check. Outside Live mode, texts reach only fictional numbers and e-mail only reserved domains.
ConsentAppend-only consent records the database will not update or delete; STOP and START keywords; preferences per contact point.
Links and launchesAccount links tokenised, one customer, rate-limited. ERP panel launches signed, single-use and short-lived, framed only by the ERP.
AccessRole checks on every endpoint; password policy, lockout and e-mail or SMS sign-in codes; sign-ins kept in a security audit trail.
AuditInsert-only trail sealed hourly into a hash chain; secret settings shown as [secret].
AI governanceRules first; scoring reads invoices and payments only; drafts blocked on wrong figures, threats or foreign links; golden-set release gate.
Compliance modesCreditor's own name; sole-proprietor hours and caps; California covered commercial debt; Canada (CASL).

Hosting

TierInvoices / monthStarting host
Sup to 2,0002 vCPU, 8 GB, 50 GB
M2,000 to 10,0004 vCPU, 16 GB, 100 GB
L10,000 to 50,0008 vCPU, 32 GB + database host

Five containers, HTTPS 443 the only inbound port; nightly database backup off the host, restore-tested. Clarity-hosted or client-hosted.

Testing and rehearsal

  • Simulator with a virtual clock replays weeks of activity in minutes on the production code.
  • ERP bridge contract tests against the simulated and real adapters.
  • Unit tests on the pure rules; browser tests in Firefox.
  • AI golden sets and a red-team set that must all pass.
Plan offers are built from the policy and re-checked on the server.
Plan offers are built from the policy and re-checked on the server.
Retries stay inside card-network and bank-debit limits.
Retries stay inside card-network and bank-debit limits.

Review the architecture with us

APIs, data flow, hosting and security, on a running demo with synthetic data.

Talk to Clarity Ventures about a guided demo
CollectionsHub ยท Technical guideClarity VenturesPage 5 of 5