Índice do artigofaltam 10 min de leitura
Comparing tax capture paths by monthly fee rewards exactly the option that pushes the most work outside the system.
There is a number that circulates easily in this conversation: the monthly price of the API. It is public, fits in one spreadsheet row and is the first one the sales team shows. In this article's model, the subscription alone is no more than 5.3% of the three-year cost and shrinks to 2.0% as volume grows; added to per-document usage, it sits between 5.6% and 12.5%.
This article breaks down the cost of capturing incoming tax documents (in Brazil, electronic invoices issued against your company by suppliers) and integrating them into the ERP, across four architectures, three volumes, three numbers of CNPJs (CNPJ is Brazil's company tax ID, one per establishment) and three time horizons. All numbers here are proportions from a deterministic model, built to show where the cost comes from, not to predict anyone's price.
Article summary
- In the model, the direct consumption architecture, which has no subscription at all, costs more than the one with a provider in all 27 combinations of volume, CNPJs and horizon.
- At 100 documents per month, API subscription and usage add up to 5.6% of the 36-month cost. The largest share is technical maintenance, at 41.7%.
- At 10,000 documents per month, human review of exceptions exceeds half of the total cost, and the cost per document is 38 times lower than in the low-volume scenario.
- One extra municipal connector adds about a fifth of the reference architecture's 36-month cost, and this addition does not depend on how many documents pass through it.
The two-line calculation is wrong for two reasons
The usual calculation has two lines: how much the monthly fee costs and how much it would cost to build in-house. It is wrong because it compares different scopes as if they were the same, and because it treats development as an implementation cost. Both mistakes pull in the same direction.
The second mistake is the more expensive one. Keeping a tax integration alive requires tracking technical notes, schema versions, layout changes and the regulatory calendar, month after month, forever, and that does not end when the project is delivered.
The visible portion is the one with a list price. The submerged portion is the one that shows up on the payroll, the cloud bill, the ERP vendor's support ticket and the hours someone in the tax team spends resolving exceptions.
None of these lines is optional. They exist in all four architectures, and what changes between them is the proportion, not the presence.
Four paths, and why comparing monthly fees rewards the worst one
There are four possible architectures, and comparing them is only valid after equalizing coverage and controls. A solution that serves the national sources and another that includes municipal connectors do not deliver the same scope.
| Path | When it makes sense | Where the cost concentrates |
|---|---|---|
| Tax provider and in-house application | The sources cover your case and you need ERP-specific reconciliation | In the reconciliation application and the API contract |
| Direct consumption of official sources | The team masters certificates, protocols and tax changes, and will maintain this indefinitely | In recurring technical hours for maintenance and updates |
| Hybrid with municipal connector | There is a municipal or historical gap, already measured, that the national core does not cover | In each connector, its implementation and its maintenance |
| Off-the-shelf product or ERP extension | The process fits and the connector is supported by the partner | In the subscription and configuration, with less development |
Deterministic simulation; the model's effort assumptions are in Sources and method. The provider architecture is the baseline for the following sections because it has an intermediate scope, not because it is recommended.
The model's hybrid architecture includes an extra municipal connector and therefore does not have exactly the same scope as the others. It is in the table to break down cost, not to crown a winner through an unequal comparison.
Seven monthly lines, and the subscription is just one of them
The formula is simple and the work lies in filling it in honestly. For a horizon of H months, the total cost adds up the implementation, plus H times the sum of monthly costs, plus the certificates for the period, plus the exit migration at the end.
There are seven monthly costs in the second term: subscription, per-document usage, infrastructure, support, technical maintenance, updates and human review of exceptions. The assumptions the model carries are not about price but about effort: how many technical hours per month each architecture consumes, what fraction of documents falls into exception and how long each exception takes. In the base scenario, it is 8% of documents at six minutes each, and one digital certificate per CNPJ. Put your own rates on those hours and the model becomes yours.
The exit portion deserves a comment, because it almost never makes it into a budget. It exists because every architecture eventually ends, and leaving one costs money: exporting originals and events, reconciling the archive, deduplicating against the new base and repositioning the source cursor. A model that ignores the exit treats the decision as permanent, and it is not.
Two portions make up three quarters of the bill, and neither is the API
Technical maintenance and updates add up to 41.7% of the 36-month cost and implementation, 30.9%. Together they are 72.6% of the bill, and neither depends on which API was chosen: they depend on the size of the reconciliation application that sits between the tax source and the ERP. Subscription and usage add up to 5.6%.
The option with no monthly fee at all costs more
Consuming the official services directly, without a provider, eliminates the subscription and per-document usage. In the model, this does not pay off in any scenario. With the provider architecture at 100, the 36-month total cost index looks like this.
36-month total cost index, with the provider and in-house application architecture at 100, for 100 documents per month and one CNPJ. It is the baseline because it has an intermediate scope, not because it is recommended, and the hybrid line includes an extra connector, with a larger scope than the others.
Consuming the official sources directly costs 60% more than the provider architecture over three years. Seven tenths of that difference are recurring technical hours: the model allows 8 monthly hours of maintenance and 2 of updates for the provider path, against 16 and 4 for direct consumption, ten more hours per month, 360 over three years. A third comes from a larger implementation, and a small fraction from infrastructure and exit. The subscription and usage savings give back less than a tenth, covering 13% of the hours bill they would need to pay.
This result holds in all 27 combinations of volume, number of CNPJs and horizon in the model, but the margin shrinks with scale. At 10,000 documents per month, the difference drops from 60% to 13%, because per-document usage starts to weigh on the provider side and the fixed maintenance cost is diluted on the other. If your operation lives in that range, the technical hours argument needs to be redone with your hours, not the model's.
Human exceptions are the variable that flips the decision
In the model, the rate of documents that require human handling moves the bill more than any other single assumption. It grows in proportion to volume with no economies of scale.
The sensitivity is easy to calculate and uncomfortable to look at. Raising the exception rate from 8% to 20%, keeping six minutes per exception, adds per document six times what the API subscription and usage cost per document at that same volume. It is the only variable in the model where vendor choice does not help: it grows in proportion to volume, with no economies of scale.
There is a corollary that helps interpret a sales proposal: cost per document is not comparable across volumes. In the 100-document scenario, the three-year unit cost is 38 times that of the 10,000-document scenario. Same model, same assumptions. Anyone who presents a cost per document without stating the volume is presenting a meaningless number.
The municipal connector nobody budgeted for
Each additional municipal connector adds, under the model's assumptions, about a fifth of the reference architecture's 36-month cost. Almost four fifths of that addition is monthly maintenance, not the initial build, and in twelve months it has already cost almost half of what it will cost in thirty-six: a connector costs more to keep running than to build.
This impact exists even at low volume, because it does not depend on how many documents pass through the connector. It depends on the connector existing, needing to be monitored and breaking when the city government changes its system.
That is why the right decision is not to build a national catalog of connectors as a precaution. It is to measure the gap first, and only then decide whether it justifies one.
There is a market reference that changes the order of magnitude of this decision: Focus NFe, a Brazilian tax document API provider, publicly advertises, on the same page where it publishes its plans, active integration with more than 3,500 municipalities (page checked on November 11, 2026) and a flat fee of R$ 199.00 (Brazilian reais) to integrate a new municipality, within fifteen calendar days. This is an advertisement, not a test: the calculation worth doing is to compare this advertised fee with the internal cost of a connector, and then demand a demonstration before signing.
The costs that only show up in the contract
Three cost lines stay off the price list and appear later: historical documents from before the cutoff date, documents recaptured when the cursor goes back, and invoice allowances counted per CNPJ instead of as a single pool. All three are publicly documented by vendors in the industry, and all three need to be in the proposal before signing.
The third line deserves an example, because it is counterintuitive. In Focus NFe's public plan table, the intermediate plan counts the allowance per CNPJ, while the entry and upper plans count a single pool. Doing the plain arithmetic on the advertised prices, the entry plan is the cheapest as long as the operation fits in a single CNPJ, and the intermediate plan pulls ahead with three and with ten CNPJs, with one exception: ten CNPJs with ten thousand documents per month, where the upper plan wins again. In the table checked on November 11, 2026, the intermediate plan costs R$ 119.90 with three CNPJs, R$ 39.90 per additional CNPJ, 100 documents per CNPJ and R$ 0.11 per excess document, and the upper plan costs R$ 572.00 with 4,000 documents, unlimited CNPJs and R$ 0.125 per excess document. Adding up the excess, it comes to R$ 1,389.20 versus R$ 1,322.00, a difference of R$ 67.20 per month in favor of the upper plan. The table has already changed since the first version of this article, in September, and the inversion stayed in the same place: it only shows up for those who calculate instead of just reading.
The questions that change the proposal
These are the questions whose answers change the final number, and none of them is about price.
| Question for the vendor | Evidence that needs to come with it |
|---|---|
| Receiving coverage | A matrix by municipality, document model and period, with named exceptions. Not just the word national. |
| Origin of the XML | Samples showing whether it is the original tax document, the shared national one or a vendor transformation. |
| History and recapture | A pricing table for what predates the cutoff date and what is recaptured, with an invoice simulation. |
| Certificate per establishment | A sample request per full CNPJ and the contractual rule, not the official service's rule. |
| Coexistence with another collector | Policy for sequencing, coordination and recovery when two systems query the same CNPJ. |
| Exiting the archive | Export of originals, events and metadata, with stated timeline, limit and price. |
| Incidents covered by the service level | Which events count: source unavailable, capture silently interrupted, expired certificate, stuck queue. |
The last row is the one that protects the operation most and appears least in contracts. A capture that stops silently does not produce an error on anyone's screen: it simply stops bringing in documents, and the company finds out at month-end close, weeks later.
How to decide without having tested anything yet
There is only one selection criterion: the lowest total cost among the alternatives that passed the same functional, tax, financial and security acceptance criteria. A cheaper alternative that omits documents or weakens approvals is not equivalent; it is something else.
- Equalize scope before comparing price, and write down what each proposal does not cover
- Measure your real exception rate, because it moves the bill more than the choice of vendor
- Ask for the exit cost together with the entry cost, in the same proposal
- Add up the recurring technical hours, not just the implementation hours
- Add the internal approval queue: waiting on IT and legal usually dominates any schedule estimate
None of the five items depends on the vendor: they are internal measurements, done before any proposal arrives.
One honest caveat closes the subject: an in-house application with a higher total cost can still be the right decision, for reasons of risk, control, timeline or scale. What you should not do is convert those benefits into a financial return nobody measured. Cost is calculated; the benefit of control is described.
Frequently asked questions
Having no subscription is not the same as having no cost. In this article's model, the direct consumption setup costs more than the one with a provider in all 27 combinations of volume, number of CNPJs (Brazilian company tax IDs) and time horizon, because the subscription savings are smaller than the extra technical hours for maintenance and updates.
It depends on volume, and that is where intuition fails. At 100 documents per month, the largest share is technical maintenance and updates, at about 42% of the total. At 10,000 documents per month, the largest share becomes human review of exceptions, at more than 50%.
In the scenario of 100 documents per month and one CNPJ, subscription and usage add up to 5.6% of the 36-month cost. At 10,000 documents per month, they rise to 12.5%. In both cases, comparing vendors only by the monthly fee means deciding on less than one eighth of the bill.
No. They are proportions from a deterministic model, built to break down where the cost comes from, not to predict prices. The article publishes percentages, ratios and an index, not amounts in reais, because an amount without the buyer's own assumptions means nothing. No number here is a vendor proposal or an X-Apps price.
By equalizing scope before price. A solution that covers only national sources and another that includes municipal connectors do not deliver the same thing. Comparing monthly fees without equalizing rewards precisely the option that leaves more work outside the system.
The rate of exceptions that require human intervention. Going from 8% to 20% of documents, keeping six minutes per exception, adds per document six times what the API subscription and usage cost per document at that same volume. No monthly fee negotiation makes up for that.
Sources and method
The numbers in this article come from a deterministic model that we reproduced and recalculated from scratch on September 8, 2026, with 36 combinations of architecture, volume and number of CNPJs, each over three horizons. The model has ten cost lines: seven monthly, plus implementation, certificates and exit migration. The assumptions it carries are about effort and operations, not price: monthly technical hours for maintenance and updates per architecture, fraction of documents that fall into exception, minutes per exception and one digital certificate per CNPJ. In the base scenario, it is 8 hours of maintenance and 2 of updates per month for the provider path, 16 and 4 for direct consumption, and 8% of documents at six minutes each.
The article publishes proportions, ratios and an index with the provider architecture at 100, and not the model's amounts in reais. They are planning hypotheses, not quotes, and a round total would create a price reference the model does not support. No number here is a vendor quote, an X-Apps proposal or a measurement of a real operation, and anyone who wants to redo the math has the ten lines, the hours and the exception rate in the text, and only needs to apply their own rates.
The reference to a public price table and to billing conditions for history and recapture comes from vendor pages read on the same date, and is reproduced as arithmetic on public advertising, not as a product evaluation. The Focus NFe table and the count of integrated municipalities were checked again on November 11, 2026, and the plan example was recalculated with that day's values; public price tables change without notice, so redo the math on the date of your decision. Incremental ERP licenses, dedicated networks and process impacts were not quoted and need to be added when they apply.





