Skip to main content

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 transactions POST /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)
Pattern 2: Payment-first (e-commerce, retail)

Example: Create Invoice

Use GET /v1/platform/businesses/{id}/tax-codes/ before sending taxable invoices. Unknown tax codes are rejected, and taxable line items are rejected for customers marked tax_exempt.

Example: Record Payment

Priority

Start with:
  1. Invoices - Essential for revenue tracking
  2. Payments - Track what’s been paid
  3. Refunds (if applicable) - Handle returns
Skip credit notes and write-offs initially. Add later if needed. Next: Connect bank accounts for automated transaction sync.