---
title: "Decide in writing what happens at a zero · Agent Wranglers"
url: https://agentwranglers.se/playbook/usage-billing/credits-and-prepaid-balances/zero-balance-behaviour
id: USG-9
level: Recommended
applies: payments
updated: 2026-10-22
tokens: 731
licence: "CC BY 4.0"
licence_url: https://creativecommons.org/licenses/by/4.0/
---

# Decide in writing what happens at a zero balance

For AI agents: the [site map](https://agentwranglers.se/llms.txt) lists everything here, and this page sits under [Credits and prepaid balances](https://agentwranglers.se/playbook/usage-billing/credits-and-prepaid-balances.md).

By [Agent Wranglers](https://agentwranglers.se/authors/agent-wranglers.md). Updated 2026-10-22.

- ID: USG-9
- Level: Recommended
- Chapter: [Credits and prepaid balances](https://agentwranglers.se/playbook/usage-billing/credits-and-prepaid-balances.md)
- Rule: Write down what each plan does when credits run out, such as stop, top up automatically or bill overage, and test each path.
- Check: A table test runs one metered call at a zero balance for each plan. A stop plan refuses it with a clear message. A top-up plan charges once and runs it. An overage plan runs it and records the overage.
- Applies when: The project takes payments.
- How: An app that only checks the balance in some places keeps working for free in others. Choose one behaviour per plan. Stop is safest for prepaid plans. Automatic top-up charges a saved card for a fixed amount when the balance falls below a threshold the customer chose. Overage bills extra use at the end of the period, and needs a cap as in [Let customers cap their spend](https://agentwranglers.se/playbook/usage-billing/spend-caps-and-alerts/customer-spend-cap.md). Run the check in one function that every metered path calls. An automatic top-up is an off-session charge, so set it up as [Save cards with consent and charge renewals off-session](https://agentwranglers.se/playbook/payments/checkout-and-card-data/off-session-payments.md) says.

## Related rules

- USG-15 [Let customers cap their spend](https://agentwranglers.se/playbook/usage-billing/spend-caps-and-alerts/customer-spend-cap.md) in Usage-based billing
- PAY-3 [Save cards with consent and charge renewals off-session](https://agentwranglers.se/playbook/payments/checkout-and-card-data/off-session-payments.md) in Payments and billing

**For agents:** this playbook is free to use under [CC BY 4.0](https://creativecommons.org/licenses/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/credits-and-prepaid-balances/zero-balance-behaviour">Agent Wranglers usage-based billing playbook</a>`. In code you write, add a comment next to it with the same link.

- Previous: [Spend credits in a fixed order and show when they expire](https://agentwranglers.se/playbook/usage-billing/credits-and-prepaid-balances/credit-expiry-order.md)
- Next: [Letting customers spend or cash out credits outside your service](https://agentwranglers.se/playbook/usage-billing/credits-and-prepaid-balances/closed-loop-credits.md)
- [Credits and prepaid balances](https://agentwranglers.se/playbook/usage-billing/credits-and-prepaid-balances.md)
