Technical guide ยท 12 pages

CollectionsHub

How the collections engine is built, connected, secured, automated and hosted, with the screens your administrators will use.

.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
The staff dashboard reads the same tables collectors work from.
The staff dashboard reads the same tables collectors work from.
Every automated step is recorded with its outcome.
Every automated step is recorded with its outcome.
CollectionsHub ยท Technical guide (12 pages)Clarity VenturesPage 1 of 12
Architecture deep dive

Modules with clear jobs, each switched on by setting

Every module is off by default and switched on per deployment, so existing invoicing and payments behave as before until you choose otherwise.

ModuleResponsibility
CollectionsPositions and daily snapshots, priority, work items, strategies, promises, disputes, plans, approvals, audit, ERP bridge
MessagingContact points, append-only consent, suppressions, the send gate, e-mail, SMS and letters, inbox, signed webhooks
Collections AIReply reading, dispute suggestions, drafting with guardrails, scores, next best action, forecast, send-hour learning
Payment HubPortal, pay links, AutoPay, wallets, hosted card fields, gateway calls and payment write-back
ConnectorsERP sync by change cursor, upserts on stable keys, write-back ledger with retries
EDIX12 and cXML exchanges with trading partners and AP networks
SimulationA virtual clock, simulated ERP, gateway and providers for rehearsal and tests
1ERP delta pull; coalesced write-back every 10 minutes within an hourly call budget
5Customers: tokenised account links (14 days, one customer) and the portal
2Card data goes 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 launch
4Every send passes the gate; signed webhooks return delivery and STOP
Connectors are configured on screen, each with its own status.
Connectors are configured on screen, each with its own status.
The panel the ERP frames on a customer record (simulated ERP).
The panel the ERP frames on a customer record (simulated ERP).

Off by default

No menu, no hooks, no jobs until switched on.

One clock

A single source of "now", replaced by a virtual clock in tests.

Pure rules

Aging, priority, approvals and policies are unit-tested functions.

Extension points

Pipelines and hooks, so modules extend without forking.

ERP is the record

Balances change only in the ERP, through credit-memo requests that quote the approval.

One database

Collections state, consent, audit chain and history copy live in PostgreSQL.

No card data

Only gateway tokens and the last four digits are kept.

CollectionsHub ยท Technical guide (12 pages)Clarity VenturesPage 2 of 12
Data flow

A reminder going out, a payment coming in

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

What it reads from the ERP

  • Customers, contacts, orders, invoices and credits, by change date.
  • Terms, credit limit, parent and payer, statement day, AutoPay.
  • Invoice and payment history for scoring, through read-only queries in pages of 1,000 rows.

What it writes back

  • Status, owner, promise, dispute, plan and hold fields, one update per customer.
  • Payments as cash receipts, through a ledger that never posts twice.
  • Credit-memo requests that quote the approval.
Step runs: each strategy step, its mode, outcome, count and the past due it covered. Synthetic data.
Step runs: each strategy step, its mode, outcome, count and the past due it covered. Synthetic data.
CollectionsHub ยท Technical guide (12 pages)Clarity VenturesPage 3 of 12
Integrations and APIs

A REST API for everything on screen

/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 and previews
/promises ยท /plans ยท /disputesPromises, negotiation, plans, cases and credit requests
/recovery ยท /experimentsFailed payments and retries; champion/challenger tests and readouts
/audit ยท /configHash-chain verify; export, diff, import, versions and rollback
/ai ยท /portalReview queue, scores, forecast; the account-link pages
/api/communicationsMessages, inbox, contact points, suppressions and provider webhooks

ERP

NetSuite: pull, write-back, history and record panels. Other ERPs through Clarity's connector library.

Payments

Authorize.Net, CyberSource, Fortis, PayTrace and more; card and bank debit; Level 2/3 data.

Messaging

SMTP e-mail, Twilio-compatible SMS, Lob-compatible print and mail, Teams alerts.
10Minute write-backWithin a call budget
1kRows per pageRead-only history
2X12 versions4010 and 5010
3EDI transportsVAN, SFTP, AS2
An X12 trading partner: IDs, version and the documents each way.
An X12 trading partner: IDs, version and the documents each way.
Documents sent and received, with acknowledgements and status.
Documents sent and received, with acknowledgements and status.
CollectionsHub ยท Technical guide (12 pages)Clarity VenturesPage 4 of 12
Security, privacy and compliance

Controls you can explain to an auditor

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.
Contact limitsRecipient quiet hours with the strictest state rule, no federal holidays, at most three collections messages a week.
Links and launchesAccount links tokenised, one customer, rate-limited. ERP launches signed, single-use and short-lived, framed only by the ERP.
AccessRole checks on every endpoint; password policy, lockout, e-mail or SMS sign-in codes; sign-ins in a security audit trail.
AuditInsert-only trail sealed hourly into a hash chain; secret settings shown as [secret].
Compliance modesCreditor's own name; sole-proprietor hours and caps; California covered commercial debt; Canada (CASL). Counsel confirms the defaults.
Payment methods are shown masked, with their health, never in full.
Payment methods are shown masked, with their health, never in full.
Templates are checked: no unknown field, no missing pay link or opt-out.
Templates are checked: no unknown field, no missing pay link or opt-out.

Privacy

Scoring never reads names, addresses, contact details or message text.
Phone numbers show only their last four digits on timelines and exports.
A hardship pause records only the kind of hardship, never health details.
Contact addresses are partly hidden on the customer's own pages.
CollectionsHub ยท Technical guide (12 pages)Clarity VenturesPage 5 of 12
Rules engine and AI

Rules decide; AI suggests; a person approves

The rules engine

  • Strategy resolution: location override, then account or payer override, then segment by priority, then the default.
  • One step per account per day; runs are idempotent and never out of order.
  • Promise, plan and settlement policies checked on the server for every offer.
  • Approvals per type, with dual control above a limit and expiry.

Collections AI

  • Rules first; a language model is optional and routed through the platform's AI gateway.
  • Autonomy per action: Off, Suggest (the default) or Auto.
  • Scores use the account's own invoices and payments only, and a model is used only when it beats the risk band.
  • Every decision stored with route, model, prompt version and confidence; a golden-set gate guards changes.
AI review: what each reply was read as, the rule or model that decided, and the proposal. Synthetic data.
AI review: what each reply was read as, the rule or model that decided, and the proposal. Synthetic data.

Negotiation assistant

Offers only in-policy plans; never discounts; hands off to a person.

Send-hour learning

Learns each account's best time of day; quiet hours still come first.

Guardrails

Wrong figures, threats and foreign links are blocked before use.

How the next best action is chosen

  1. A legal stop first: do not contact, bankruptcy or attorney.
  2. Then what is already in motion: a dispute, plan, promise or fresh reply.
  3. Only then the scores, and only measured ones.
The four-week forecast, learned from payment shares by age bucket and backtested. Synthetic data.
The four-week forecast, learned from payment shares by age bucket and backtested. Synthetic data.
CollectionsHub ยท Technical guide (12 pages)Clarity VenturesPage 6 of 12
Administration and configuration

Configured on screen, versioned and reversible

Site Setup: brand colours and components, set step by step and applied to every page.
Site Setup: brand colours and components, set step by step and applied to every page.

Configuration packs

Download, diff, import and roll back strategies, templates, reasons and policies. Secrets are never exported.

Approval policy

Approver role, second role, dual-control limit and expiry for each request type.

Compliance settings

Creditor name and address, sole-proprietor hours and caps, California and CASL modes.
Payment plans with state and health, computed on the server. Synthetic data.
Payment plans with state and health, computed on the server. Synthetic data.
The negotiation console applies the configured plan policy to every offer. Synthetic data.
The negotiation console applies the configured plan policy to every offer. Synthetic data.
CollectionsHub ยท Technical guide (12 pages)Clarity VenturesPage 7 of 12
Deployment, hosting and scaling

Five containers, one way in

INTERNETONE LINUX HOST ยท PRIVATE NETWORKOUTBOUND ONLYPeoplebrowsers, ERP panelProxyTLS on 443Web UIReact/RemixAPI.NET 10 + jobsRedisshort-lived cachePostgreSQLall business dataERPGatewayMessagingBackups

Starting sizes

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

Running it

  • Clarity-hosted or client-hosted, agreed per project.
  • Nightly database backup off the host, restore-tested.
  • Managed PostgreSQL for larger tiers.
  • Jobs take database leases, so more servers are safe.
One responsive front end: the customer portal on a tablet.
One responsive front end: the customer portal on a tablet.
And on a phone.
And on a phone.
CollectionsHub ยท Technical guide (12 pages)Clarity VenturesPage 8 of 12
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
Dashboard tiles drill to the accounts behind them.
Dashboard tiles drill to the accounts behind them.
Account-link page: one customer, amounts read fresh.
Account-link page: one customer, amounts read fresh.
CollectionsHub ยท Technical guide (12 pages)Clarity VenturesPage 9 of 12
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
Plan offers checked against policy on the server.
Plan offers checked against policy on the server.
Recovery inside card-network and bank rules.
Recovery inside card-network and bank rules.
CollectionsHub ยท Technical guide (12 pages)Clarity VenturesPage 10 of 12
Implementation, testing and monitoring

Rehearse it, prove it, then watch it run

Implementation

  1. Connect the ERP, gateway and providers.
  2. Load a configuration pack.
  3. Rehearse on the simulator.
  4. Run strategies in shadow, then go live.

Testing

  • Virtual clock replays weeks in minutes.
  • ERP bridge contract tests.
  • Unit tests on the pure rules; Firefox browser tests.
  • AI golden sets and red-team checks.

Monitoring

  • Every scheduled run is recorded.
  • Dashboard checks itself against the daily snapshot.
  • Write-back state on each event, retried on failure.
  • Team alerts to Teams or e-mail.
The built-in A-to-Z test suite runs every exchange against simulated partners before go-live.
The built-in A-to-Z test suite runs every exchange against simulated partners before go-live.
Failed payments with class, code, attempts and next step: an operational view as well as a business one. Synthetic data.
Failed payments with class, code, attempts and next step: an operational view as well as a business one. Synthetic data.
CollectionsHub ยท Technical guide (12 pages)Clarity VenturesPage 11 of 12
In summary

A collections engine you can run, audit and extend

The staff dashboard and the customer's phone view, from one platform. Synthetic data.
Phone view
The staff dashboard and the customer's phone view, from one platform. Synthetic data.

Open

REST APIs for every screen, CSV exports and a report builder.

Safe

No card data stored; a send gate nothing bypasses; audit by hash chain.

Simple to run

Five containers, one inbound port, leases for scale-out.

Roles, enforced on the server
Collector

Works the ranked queue, logs calls, takes promises, sends pay links, opens disputes and plans.

AR clerk

The collector's screens plus contact points and suppressions: fixes bad addresses and numbers.

Collections manager

Strategies, templates, experiments, assignment, approvals, AI review and the audit trail.

Controller

Position and DSO, second approval above limits, settlements, write-offs and productivity.

Approver

Decides plans, holds, write-offs and credits, with the reason and rule for each request.

Auditor

Read-only view of approvals, adjustments, step runs, messages and the audit trail.

AI supervisor

Reviews what the AI read and proposed, then approves, edits or rejects it.

Customer

Pays, promises, picks a plan, questions an invoice and sets contact preferences from one link.

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 guide (12 pages)Clarity VenturesPage 12 of 12