Spend caps and alerts
Let customers set a hard cap on their spend and warn them before they reach it. Split caps by key or member, and show usage that matches the invoice.
- Required 1
- Recommended 3
Required
Let customers cap their spend
USG-15Let every customer on a usage or overage plan set a monthly spend cap. Refuse metered work that would pass it, before the work starts.
Recommended
Warn customers before they reach a cap or run out
USG-16Email the billing contact when usage reaches 50%, 80% and 100% of the spend cap or the prepaid balance. Send each alert once per period.
Show live usage that matches the invoice
USG-17Show customers their usage and charges for the current period, per meter and per day, computed by the same code that builds the invoice.
Let owners set a cap on each member and key
USG-18Let an organisation owner set a spend cap on each member, API key and agent, below the organisation's cap. Refuse work at whichever cap is reached first.
For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/usage-billing/spend-caps-and-alerts">Agent Wranglers usage-based billing playbook</a>. In code you write, add a comment next to it with the same link.