Epics
Patient
As a patient, I want to receive my 80% share of data marketplace and clinical trial earnings via ACH within 5 business days so that I am compensated promptly.
Platform Operator
As a platform operator, I want the 80/20 split, 1099-NEC generation, and payout orchestration to run automatically so that disbursements scale without manual intervention.
Finance Team
As a finance team member, I want every payout traced to its source transaction (marketplace query or trial event) with full audit trail so that reconciliation is seamless.
External Integrations
Ext
Velo Payments / Dwolla
ACH disbursement, KYC, 1099-NEC tax reporting, and split-payment orchestration. Velo Payments handles multi-party payouts and compliance for healthcare money movement.
Ext
Zoho One (Books)
Zoho Books for AP — reconciling patient payouts against attribution events. Avoids building custom accounting. Maps directly to the 80/20 split ledger.
Ext
SendGrid / AWS SES
Payout receipts and notifications — patients receive email confirmation when earnings are disbursed.
Internal Data Flows
Int
Marketplace → Patient Earnings (Door 3 → Folder 03 → Door 2)
Revenue attribution — buyer queries trigger 80/20 split that flows to patient earnings and Moonlitic fee ledger. Demo-wired via localStorage; production needs transactional ledger with double-entry accounting.
Subfolder: AP/AR (Zoho Books Integration)
Ext
Zoho Books AR — Buyer Invoicing
Auto-generates invoices for marketplace queries (Cohort $350, Dataset $1,200). Payment tracking, Net 30 terms, overdue reminders. Feeds confirmed payments to F04 Reconciliation via webhook. No PHI in Zoho — financial data only.
Next
Architecture doc ready
Ext
Zoho Books AP — Patient Payout Ledger
Records patient payouts as AP entries. Syncs with Velo Payments settlement reports. Tracks 1099-NEC thresholds ($600/year). Double-entry journal: Debit Patient Payable, Credit Cash. Monthly reconciliation against Velo + bank statement.
Next
Architecture doc ready
Int
80/20 Split Reconciliation (AR ↔ AP)
Automated daily check: Sum of AR payments = Sum of (AP payouts + Platform fees + Pending patient balances). Variance > $0.01 triggers exception queue in F05. Monthly close: Zoho trial balance must zero against Velo settlement + bank statement.