Issuing notas fiscais for SaaS in Brazil is required for full legal compliance, but most developers should validate the product first and add invoicing afterwards. An experienced micro-SaaS operator reports paying roughly 10% in taxes under a CNPJ versus around 30% as an individual with a CPF, and automates every invoice through an HTTP API instead of manual entry.
What Taxes Does a SaaS Pay in Brazil?
A SaaS sold in Brazil pays roughly 30% in taxes when billed under a personal CPF and about 10% when the operator holds a CNPJ, according to micro-SaaS developer André Elias, who reports both figures from his own operation in a January 2025 video. The exact rate depends on the tax regime the accountant selects for the company, so treat both numbers as ranges from one operator's experience rather than published official rates.
The gap is the main argument for opening a company. A CNPJ (the Brazilian business taxpayer ID) also lets you issue notas fiscais under a registered activity code, which an MEI does not allow for SaaS, as covered below. Elias does not present these percentages as legal or accounting advice; he repeats that an accountant should confirm the regime for each case.
The same question came from Felipe Silveira, one of several viewers who sent fiscal questions through Elias's Instagram box. Elias also declined to answer the mirror question about which company structure fits a SaaS in the United States, because his operation is entirely Brazilian and he had not researched offshore structures, a possible topic for a future video.
Related course ecosystems in Brazil, such as Gustavo Dev Doido's Crazystack Typescript platform and his Bootcamp do Dev Doido, target the same developer audience building commercial SaaS products, which is why fiscal questions keep coming up in that community.
MEI or ME: Which Company Structure Fits a SaaS?
You cannot legally operate a SaaS under an MEI. The MEI (Microempreendedor Individual, Brazil's simplified individual micro-enterprise status) only covers a fixed list of permitted CNAE activity codes, and software-as-a-service does not fit them, so a SaaS needs at least an ME (Microempresa) or similar CNPJ structure. The three common starting points compare like this:
| Structure | Allows SaaS? | Reported tax burden | Best for |
|---|---|---|---|
| CPF (individual) | Yes, invoices possible | ~30% | Validating an MVP before any paperwork |
| MEI | No | N/A | Fixed trade and service activities only |
| ME under CNPJ | Yes | ~10% | A validated SaaS with steady revenue |
Elias's own path started from an existing company: he worked for foreign clients and already held a CNPJ, so he reused it. All of his products run under a single entity branded as his personal brand (André Dev) rather than one CNPJ per product. For developers starting from zero, his recommendation is to begin on a CPF if necessary, validate the product, and open the company once revenue justifies it, ideally with an online accounting service handling the paperwork.
One caveat he stresses: once revenue is real, do the paperwork. He is blunt about people evading taxes and tells viewers to run an honest operation and pay what is due.
Do You Need a Nota Fiscal for Every Sale?
Yes: full compliance with Brazilian law requires a nota fiscal for every sale, whether the customer pays by Pix, credit card, or a recurring monthly subscription. Each monthly charge on a subscription needs its own document, so a twelve-month subscription generates twelve invoices. No sale is exempt, and there is no volume threshold where invoices become optional.
The customer data required is minimal. In practice you need three fields, plus two optional ones:
- Customer name (required)
- Customer CPF or tax ID (required)
- Customer email (required)
- Address (optional, improves the record)
- Municipality of service (determined by your own registration)
Foreign customers are treated the same way. Elias issues invoices for international buyers without an address, treating the transaction as a service rendered in Brazil, and pays the corresponding tax domestically. Municipalities usually email the document to the customer automatically, but the seller is only obligated to provide it on request, which for B2C sales is rare; B2B customers ask more often.
How to Automate Notas Fiscais for SaaS Invoicing
The practical way to generate notas fiscais at scale is an invoicing API. Elias uses FocusNFE, a Brazilian electronic invoicing service that integrates with practically every municipality in Brazil and exposes issuance through HTTP calls, which lets a SaaS backend create each document programmatically. His Stripe payments setup offers two issuance patterns, and the same split applies to Mercado Pago or any processor:
- Issue on the webhook. Listen for the payment-confirmed event and generate the nota fiscal immediately.
- Batch on a cron job. Store each sale in the database, then generate invoices in bulk, typically 30 days later, after the refund and chargeback windows close.
- Prefer the cron at scale. In current practice Elias runs the cron job because it gives him more control and avoids manually cancelling invoices when a customer reverses a sale.
The delayed approach avoids cancelling invoices when customers reverse charges. There is no legal deadline requiring issuance within days of a sale; waiting one to two months is common for an MVP, though very long delays create risk and retroactive batches become painful.
One municipal detail matters: whether the city hall emails the invoice to your customer automatically varies by municipality. FocusNFE offers a webhook that confirms each issuance so you can forward the document yourself, but sending it proactively is optional. The service also gives you a dashboard with all your issued notes for retrieval when a customer asks, and it offers a 30-day free trial before subscribing.
Elias also ships a ready-made invoicing script inside his own SaaS template, which bundles authentication, database, payments, Pix, Mercado Pago integration, and nota fiscal generation for developers who want to skip this wiring entirely.
Do You Need an Accountant Before Launching?
No. The advice repeated throughout the video is to launch and sell first, then handle the bureaucracy once the product has revenue. Many developers postpone a launch over fiscal concerns that never materialize, and an unvalidated product wastes far more time than a late CNPJ does. An MVP can go one to two months without invoices while it proves demand.
When the time comes, online accounting firms built for developers make the process routine. Elias contracts Contabilizei, a Brazilian online accounting service that opened his company and handled the ME registration process end to end, and notes that searching for 'contabilidade para devs' surfaces several comparable services, with new ones appearing regularly. These platforms already know the developer market, though a traditional accountant works too. For official rules on MEI activity codes and company types, the Brazilian federal government portal is the primary reference.
How Do You Receive Payments from Abroad?
Receiving from foreign customers is straightforward in 2025: most Brazilian developers use a payment platform that handles the conversion and pays into a US dollar account, and several Brazilian fintech banks offer dollar account opening directly in the app. You follow the platform's instructions and the money arrives; Elias describes his own setup as calm after initial anxiety about the money not arriving, and reports no recurring friction.
The invoicing side does not change. Foreign customers receive a nota fiscal issued in Brazil the same way domestic customers do, and the tax is paid domestically.
Does Marketing a Micro-SaaS Require Showing Your Face?
No, but it does require deliberate marketing. Many developers delay launch claiming the product needs polish when the real fear is promotion. Plenty of developers run profitable products in complete anonymity; building a personal brand, as Elias does with his André Dev channel, is a long-term strategy for credibility and distribution, not a requirement for selling. He frames his own face-driven brand as a launch asset: an audience that will help him distribute future products and lend them credibility with customers.
The one warning he gives: do not assume a good product markets itself. Word-of-mouth growth is real but rare enough that counting on it is a launch plan failure. Focus on marketing on purpose.
Frequently Asked Questions
Can an individual with a CPF issue notas fiscais?
Yes. A physical person can issue invoices, but pays the higher individual tax rate, reported at around 30% versus roughly 10% under a CNPJ in one operator's experience. It works for validating a product, but it is expensive to keep long term.
How soon after a sale must the nota fiscal be issued?
There is no fixed statutory deadline cited. Waiting around 30 days, after refund and chargeback windows close, is a common and safer practice, and batches up to two months are considered acceptable for an MVP.
Does MEI allow SaaS activity?
No. SaaS does not fit MEI's permitted CNAE activity list, so a SaaS needs an ME or larger CNPJ structure. An online accounting service can handle the ME opening process.
What data does a customer need to provide for an invoice?
Name, CPF, and email are required in practice; address is optional and often omitted, including for foreign customers. A nota per sale, and one per monthly charge on subscriptions.
Which service automates nota fiscal issuance?
FocusNFE is the service described, exposing issuance via HTTP calls and integrating with practically all Brazilian municipalities, with a webhook confirming each issued note and a 30-day trial.
Can you sell on a CPF and OpenAI CNPJ later?
Yes. There is no sales cap that forces regularization at a specific moment, so you can validate first and open the company once the product earns. Retroactive invoice batches cover the earlier period.
Do you need one CNPJ per product?
No. Elias runs every product under a single CNPJ branded as his personal brand, with no separate entity per product.
Does the same invoicing flow apply to credit card and Pix payments?
Yes. Both payment methods require a nota fiscal per sale, generated through the same API flow, whether you issue at the webhook or in a delayed cron batch.
Does the tax rate depend on the CNAE code?
It can. Elias reports his roughly 10% under a CNPJ depends on the CNAE activity code the company uses, which is exactly why an accountant should confirm the regime for your specific case.
Turn Your Own Q&A Video Into a Written Guide
Fiscal questions like these get asked over and over, and a video buried in a channel feed answers them only once per view. If you have explained your own workflows, lessons, or opinions in YouTube videos, you can turn that recording into a searchable written article: paste the video URL into Skala Blog, get the transcription, and generate a structured article your audience can find on Google instead of scrolling your upload list.
Fork this article
Start a new branch from the same video, shaped your way. You keep the credit; the original keeps the attribution.
A fork in another language is filed as a translation of this article, so the two pages point at each other. You can unlink it later from the editor.
0/240
You are creating
- Format
- For
- Language
- Source
- Your angle
You will be asked to sign in before it is generated.
Buy credits