Reconcile Meta's invoice with webhooks
How to store status events to check Meta's invoice: count only what was delivered, deduplicate and find the gap. With a reconciliation example in reais.
Why reconcile the invoice
Meta bills per delivered message, and the proof that a message was delivered is in the status webhook, not in the send response. Whoever does not store those events finds out the cost only on the invoice, without knowing where each cent came from. Reconciling means building, on your side, the same calculation Meta did, and comparing.
The benefit goes beyond catching billing errors, which are rarely the problem. Reconciliation shows which flow consumes the budget, catches duplicate sends, confirms the service allowance was applied and gives the basis for next month's forecast. The values used here are Brazil's, effective July 1, 2026, checked on October 31, 2026 on Meta's pricing page.
The final source of truth is always Meta's invoice. What you build is an auditable estimate that should land close to it. When it does not, the gap is a sign that something in your counting or your sends needs attention.
What to store from each event
For each message your application sends, store at least: the message identifier Meta returned, the business phone number that sent it, the category used (marketing, utility, authentication or service), whether the window was open, the send time and the final state received by webhook.
The states that matter for the bill are delivered and failed. A delivered message is billable. A failed one is not. The "read" state does not change the price but confirms delivery happened. Store the time of each transition, not only the final state, because it helps explain delays.
Events arrive on the webhook you configured, signed with the X-Hub-Signature-256 header, and Meta retries for up to seven days anything that did not get a 200 response, per the webhooks documentation. So validate the signature, answer fast and deduplicate by message identifier and state. The webhooks page shows the design. If the status event also carries billing data in your case, confirm it in Meta's documentation before relying on it, because that field is not described here.
The reconciliation table
Build, for each month and each number, a table of deliveries per category and apply the price rule. The structure is the same as the forecast model, only with real volume.
| Category | Delivered | Rule | Expected |
|---|---|---|---|
| Marketing | 4,200 | × R$ 0.3217 | R$ 1,351.14 |
| Utility (inside and outside the window) | 6,000 | × R$ 0.0350 | R$ 210.00 |
| Service | 9,500 | (9,500 − 1,000) × R$ 0.0350 | R$ 297.50 |
| Total | R$ 1,858.64 |
If Meta's invoice shows R$ 1,893.64, the gap is R$ 35.00, exactly 1,000 × R$ 0.0350. A round value like that looks like a single cause: the number's service allowance was not deducted in your calculation, or Meta counted the service messages another way. The clue is in the figure: gaps that are exact multiples of a rate usually come from a rule, not from a random error.
Small, irregular gaps usually come from elsewhere: delivery events that never arrived, or arrived after the month closed, or messages sent near the turn of the month, where the messaging account's time zone decides which month they count in.
Common causes of a gap
A short list of causes explains almost everything:
- Allowance not applied, or applied twice. The gap is a multiple of R$ 35.00 per number.
- A different category than expected. Meta may have classified a template as marketing, which changes the rate from R$ 0.0350 to R$ 0.3217.
- Utility inside the window treated as free. Since October 1, 2026 it is billed from the first message.
- A volume tier misapplied, with the final tier's rate on the total instead of the progressive calculation.
- Lost or duplicated webhook events. Counts that are lower or higher than the real ones.
- A month closed in a time zone different from Meta's.
A practical path is to investigate in the order of the list, which runs from the most common and cheapest cause to check to the rarest. A gap of 0.5% is usually month-edge noise. One of 20% has a structural cause.
Reprocessing lost events
If your webhook was down, Meta retries for up to seven days anything that did not get a 200 response, but after that the event is lost. Record your application's outage windows, so you know which months have a gap and do not confuse an expected difference with a billing error.
For the gap, the way out is to estimate. Measure the delivery rate per category from the months with no failures and apply it to the sent volume of the month with the gap. The estimate does not replace the invoice, but it keeps the gap from going unexplained. When a status event arrives late, store it with its received time, not only the event time, so you can audit it.
How to automate the routine
Make the monthly reconciliation a job, with output in a table per number and category, comparing the expected value with a field filled in from the invoice. Set a tolerance threshold, say 2%, and alert if the gap exceeds it. Store with it the effective date of the rate card you used, because reconciling an old month requires that month's table, not today's.
The cost calculator (in Portuguese) can serve as a test for your logic: give it the same volume and compare its result with your job's. To see how this relates to the platform subscription, see the pricing page.
An investigation example helps fix the method. Suppose a number's invoice shows R$ 120.00 more than your estimate, and you suspect the category. List the templates that sent more than 300 messages in the month and look up each one's approved category. If one was approved as marketing and your calculation treated it as utility, the per-message difference is R$ 0.2867. Dividing R$ 120.00 by R$ 0.2867 gives about 419 messages, which points directly to a template with volume of that order. Inverse arithmetic, from the gap to the suspect volume, is one of the fastest reconciliation tools.
Finally, keep a short log of every reconciliation outcome: the month, the gap and its explanation. After a few months the log becomes a map of your own recurring causes, and the next investigation starts from the likeliest suspect instead of from zero. It also makes handovers easier, because whoever inherits the routine can see which gaps were already explained and which are still open. > Reconciliation compares your estimate with the invoice. Meta's invoice always prevails.
Frequently asked questions
Where is the proof that a message was delivered?
In the status webhook, which carries each message's state. The send response only confirms that Meta accepted the request and does not say whether delivery happened.
How do I avoid counting a repeated event twice?
Deduplicate by message identifier combined with the state. Meta can resend for up to seven days events that did not get a 200 response.
My estimate differs from the invoice by exactly R$ 35.00. What is it?
Probably one number's service allowance: 1,000 messages × R$ 0.0350 = R$ 35.00. Check whether it was deducted in your calculation or applied twice.
Do I need to reconcile every month?
It is advisable. The routine is cheap, and it shows early which flow consumes the budget and whether a billing rule changed.
Fontes
Documentação oficial da Meta, conferida em 31 de outubro de 2026.