Collections sequence
An overdue invoice → a ready-to-send collection sequence, escalating at the right pace and tone for how late it is.
POST/v1/dunning
The example in the published schema
charged 00 credits
- auth (bearer key)
- per-key throttle
- validate body
- balance precheck
- run the capability
- charge credits ON SUCCESS ONLY
- JSON
The request body/v1/dunning
{ "invoice": { "number": "INV-10428", "amount": 1255.5, "dueDate": "2026-06-15", "daysOverdue": 23 }, "customer": { "name": "Northwind Coffee", "history": "Usually pays on time; second late invoice this year." }, "steps": 3 }
The responsepublished example
// sending the call
// 0 credits charged so farcurl https://api.thecompound.tech/v1/dunning \
-H "Authorization: Bearer $COMPOUND_API_KEY" \
-H "Content-Type: application/json" \
-d '{"invoice":{"number":"INV-10428","amount":1255.5,"dueDate":"2026-06-15","daysOverdue":23},"customer":{"name":"Northwind Coffee","history":"Usually pays on time; second late invoice this year."},"steps":3}'Scored
11 of 11 field checks passed when the eval suite last ran against production, on 2026-07-08. Every endpoint's score
The Commerce & ops guide has this endpoint with its example response. The reference has every parameter.
More from Commerce & ops
Chargeback representment $0.15/disputeDispute details → a representment narrative, an evidence checklist, the right reason code, and a win-likelihood.3-way match $0.10/matchInvoice vs purchase order vs receipt → matched, partial, or mismatched, with every discrepancy flagged and sized.Quote builder $0.08/quoteA job description plus your rates → an itemized, professional quote with assumptions and scope notes spelled out.Fraud triage $0.06/checkAn order or transaction in context → a risk score, the signals driving it, and the checks worth running before you ship.