Prepaid-style spend control on the WhatsApp API

How to build a prepaid-style spending cap on top of Meta's billing: a budget in reais turned into messages, a reserve per send, and per-category guards.

Prepaid, postpaid and what Meta confirms

Meta's message billing depends on a payment method registered on the WhatsApp Business Account, which the owner manages in the Billing Hub, per the pricing page checked on October 31, 2026. What the page confirms is this: the account has a payment method, Meta bills delivered messages and, without a payment method, stops delivering service messages after the allowance.

Meta's pricing page does not describe a prepaid balance, so availability, countries, top-up and blocking rules cannot be stated here. That has to be read in Meta's billing documentation, or asked of the account owner, on the day you design the flow. In this text, "prepaid" means something else, which you control: a spending cap your own system enforces.

The distinction matters because the two ideas solve different problems. Meta's balance, where it exists, is a way to pay. Your system's cap is a way never to spend more than budgeted, and it works with any payment method.

Why enforce a cap on your side

Per-delivered-message billing carries a risk that per-conversation billing did not: a retry loop, a campaign bug or a reprocessed queue multiplies the bill quickly. A 20,000-message marketing send costs 20,000 × R$ 0.3217 = R$ 6,434.00. A bug that fires the same campaign twice costs double, R$ 12,868.00, and Meta does not tell the duplicate from the legitimate message.

Since October 1, 2026, the risk has reached support too. Service replies after the allowance cost R$ 0.0350 each, and a bot that replies in a loop to itself, or to a customer that is also a bot, produces volume nobody asked for. A cap does not prevent the bug, but it prevents the bug from becoming an invoice.

Think of the cap as a circuit breaker. You do not expect to use it, but when something goes wrong it cuts before the damage. The next section shows how to size it from a budget in reais.

Turning a budget into messages

The first step is translating the budget in reais into a message limit per category. The calculation is a division by the rate. With R$ 500.00 for marketing, the limit is 500 ÷ 0.3217 = 1,554 delivered messages. With the same R$ 500.00 for utility or service, after the allowance, the limit is 500 ÷ 0.0350 = 14,285 messages.

For service, add the allowance: a number with a R$ 1,000.00 monthly budget fits 1,000 ÷ 0.0350 = 28,571 billed messages, plus the 1,000 free ones, for a total of 29,571 service messages.

Monthly budgetCategoryDelivered-message limit
R$ 500.00Marketing (R$ 0.3217)1,554
R$ 500.00Utility (R$ 0.0350)14,285
R$ 1,000.00Service, one number29,571 (with 1,000 free)
R$ 6,434.00Marketing20,000

Brazil rates effective July 1, 2026, checked on October 31, 2026. Swap in the table in force on the day.

Reserve per send, reconcile per delivery

The simplest design is a durable ledger with a balance per category. Before each send, the system reserves the maximum cost (quantity × rate) and refuses the send if the balance does not cover it. When the delivery webhook arrives, the system converts the reserve into actual spend. When a failure arrives, it returns the reserve to the balance, since Meta does not bill undelivered messages.

For a 20,000-message campaign with 97% delivery, the system reserves R$ 6,434.00 and, after deliveries, consumes about R$ 6,241.00, returning the rest. That adjustment is what brings your control close to the real invoice, and it depends on storing delivery states, as the article on reconciling the invoice with webhooks shows.

There are two cautions. First, the reserve has to be atomic: two simultaneous campaigns cannot reserve the same balance. Second, time matters, because the allowance and the tiers are monthly. The balance should restart at the turn of the month, and you should decide whether unspent balance becomes surplus or is lost, given that Meta's allowance does not roll over.

Guards that matter more than the balance

The balance is the last line of defense. The guards below catch the error earlier:

  • per-campaign limit: no marketing campaign above a set number of recipients without human approval;
  • per-contact limit: at most N templates per contact per day, which also protects the number's quality;
  • loop detection: cut automatic replies if the same contact receives more than N messages within a few minutes;
  • an alert at 80% of the category budget, before the balance runs out;
  • a manual pause switch for marketing sends, available to whoever operates the system.

These guards are cheap to build and prevent the kind of accident a review meeting does not. They do not depend on the rate and so do not go stale when Meta changes the rate card.

What to do when the cap is reached

Define the behavior before you need it. For marketing, the answer is to stop and notify the owner: nothing critical is lost if a promotion slips a day. For service, the answer is more delicate, because ceasing to reply to a customer who wrote in is a support problem. One option is to let service exceed the cap up to a second, emergency limit, with an immediate alert.

Also document who may raise the cap and how. A cap that anyone can switch off without a record is not a cap. And revisit the numbers when Meta changes the rate card, which can happen on January 1, April 1, July 1 or October 1: the quantities depend on the rate.

To estimate the starting budget, use the article on forecasting the monthly bill and the cost calculator (in Portuguese). To see where Meta's charge ends and the Hub's begins, read the pricing page.

Test the circuit breaker before you need it. Simulate a send loop in a staging environment and confirm that the cap cuts at the right point, that the alert reaches whoever it should and that critical sends, such as a verification code, have their own treatment. A spend control that has never been triggered in testing is a hypothesis, not a protection.

Also keep an audit trail of every cap change: who raised it, when and why. After an incident, that trail is what lets you tell a budget that was too tight from a control that was bypassed, and it keeps the cap from drifting upward unnoticed over a year of small exceptions. > A spending cap in your system does not replace the payment method on Meta's account. Without it, service delivery stops after the allowance, whatever your controls.

Frequently asked questions

Does Meta offer a prepaid account for the WhatsApp API?

Meta's pricing page does not describe a prepaid balance; it covers a payment method registered in the Billing Hub. If a prepaid balance applies to you, confirm it in Meta's billing documentation.

How do I limit spend without depending on a balance at Meta?

Convert the budget into messages per category, reserve the cost before each send and return the reserve when Meta reports that the message was not delivered.

Does a cap in my system avoid Meta's charge?

No. It only keeps you from sending more than budgeted. Delivered messages are still billed by Meta at the rate in force.

Which guards pay off most?

A per-campaign limit, a daily per-contact limit, auto-reply loop detection and an alert at 80% of the budget. All of them catch the error before it becomes an invoice.

Fontes

Documentação oficial da Meta, conferida em 31 de outubro de 2026.