Collection Automations
Beta
Collection Automations are optional workflows built with flows (type: collection) that add advanced orchestration on top of basic invoice payment collection.
When to Use Collection Automations
Basic collection (SDK + x402) works without automations. Use automations for:
- Dunning: Automatic reminders for overdue invoices
- Retry Logic: Scheduled collection attempts after failures
- Escalation: Multi-step workflows (reminder → wait → escalate)
- Conditional Routing: Different collection strategies by buyer region, risk score, invoice size
- Multi-step Orchestration: Complex workflows around one invoice (risk check → collect → notify)
Creating Collection Automations
Collection automations are flows with type: "collection":
- Navigate to Collections → Collection Automations
- Click Create Collection Automation
- Build your workflow using the Flow builder
- Set flow status to "live" to activate
Example Automation: Dunning Workflow
A simple dunning automation might:
- Trigger: Invoice becomes overdue
- Action: Send reminder email
- Wait: 3 days
- Action: Send second reminder
- Wait: 3 days
- Action: Escalate to collections team
Flow Builder
Collection automations use the same Flow builder as other automations:
- Invoice Node: Input invoice_id → invoice attributes
- Conditional Nodes: Route based on invoice status, amount, days overdue
- Action Nodes: Send notifications, update status, trigger webhooks
- Wait Nodes: Delay between steps
Related Documentation
- Collections Overview - Collections concepts
- Flows - Flow builder documentation
- Invoice Payments - Payment tracking