Why Integrate AR?
Your platform tracks invoices. Thred turns them into financial intelligence:- Revenue recognition - P&L updates as invoices are sent/paid
- Cash flow tracking - Outstanding invoices = predictable cash inflows
- Auto-reconciliation - Bank payments match to invoices automatically
What to Send
Invoices - Revenue transactionsPOST /v1/platform/businesses/{id}/invoices/
When: Invoice created in your system
Why: Starts the AR cycle, recognizes revenue
Invoice Payments - Customer payments
POST /v1/platform/businesses/{id}/invoices/payments/
When: Payment received (bank transfer, card, cash)
Why: Reduces AR balance, updates cash position
Refunds - Customer credits
POST /v1/platform/businesses/{id}/invoices/refunds/
When: Order canceled, overpayment, return
Why: Reverses revenue, creates refund payable
Refund Payments - Outbound refunds
POST /v1/platform/businesses/{id}/invoices/refunds/{refund_id}/payments/
When: Money sent back to customer
Why: Clears refund liability
Integration Patterns
Pattern 1: Invoice-first (SaaS, professional services)Example: Create Invoice
Example: Record Payment
Priority
Start with:- Invoices - Essential for revenue tracking
- Payments - Track what’s been paid
- Refunds (if applicable) - Handle returns