MobiariDocs

Invoices (NF-e)

Issue NF-e for your orders straight from Mobiari, with an A1 certificate, homologation tests and automatic issuing.

Mobiari issues the NF-e (model 55) for your store's orders, with DANFE and XML, directly at SEFAZ. Issuing is available to companies in any Brazilian state under Simples Nacional, MEI or the regular regime (Lucro Presumido or Real; see Regular regime).

Your company details live in Settings → Store settings → Store and company; the certificate, the test and production live in Settings → Invoices (NF-e). Issued invoices show up in Operate → Invoices, whose Tax setup button takes you to the settings. That screen only exists in store workspaces.

A chain whose branches each have their own CNPJ and state registration adds each branch as one more issuer: see Branches and more than one CNPJ.

Before you start

Have at hand:

  • An A1 digital certificate (e-CNPJ), the .pfx or .p12 file, and its password. An A3 certificate (card or token) does not work, since the file cannot be uploaded. You buy an A1 from a certificate authority.
  • Your CNPJ and state registration (IE), with the company accredited to issue NF-e at your state's SEFAZ. The IE must be numeric: "ISENTO" does not work for issuing NF-e. If you are not sure, ask your accountant; Mobiari also checks this in step 3.
  • Your products' tax codes (NCM, CSOSN or CST, CFOP), ideally reviewed by your accountant.

Above the sub-limit

Simples Nacional companies above the sub-limit cannot issue through Mobiari yet. Write to contato@mobiari.com if that is your case.

1. Issuer details

The NF-e goes out with your Company details, the same ones that feed the store footer and the shipping labels. In Settings → Store settings → Store and company, on the Company details card (or in Settings → Invoices (NF-e) → Issuer → Edit company details):

  1. Type the CPF or CNPJ and click Fetch from Receita. Legal name, address, CNAE and regime come from Receita Federal's public registry. Review everything.
  2. Fill in what Receita does not provide: the State registration (IE) and, if applicable, the Municipal registration (IM).
  3. Under Tax regime, choose Simples Nacional, MEI or Regular regime (Lucro Presumido or Real).
  4. Click Save company details.

CNPJ and IE can only change while the store is in homologation: once production is on, they are locked.

Then, in Settings → Invoices (NF-e) → Issuing, adjust:

  • Series: usually 1.
  • Nature of operation: for example, "Venda de mercadoria".
  • Revenue of the last 12 months (RBT12) and RBT12 month (MM/YYYY): under Simples Nacional, the revenue from the PGDAS and the period it belongs to. With them Mobiari computes the credit rate of products with CSOSN 101 from LC 123 Annex I and shows the bracket. An invoice uses the RBT12 of the month before its own: update it every month, or the preview warns you.
  • Simples credit rate (%), if not from the RBT12: when typed, it is used instead of the computed one (for example 1.36 in the first two months of activity). Under the regular regime this field becomes PIS/COFINS regime (Regular regime).
  • Substitute taxpayer registrations (IE-ST) in other states: state and registration, for example RJ 12345678. See Tax substitution (ICMS-ST).
  • Additional information: text printed on every invoice.

Click Save.

2. Digital certificate

Save your company details first. Under Digital certificate, choose the .pfx or .p12 file, type the Certificate password and click Upload certificate. It is stored encrypted and used only to sign your invoices.

Mobiari checks the certificate on upload and refuses it when:

  • the password is wrong;
  • the file is not an A1 with an RSA key, or has no private key;
  • it is expired or not valid yet;
  • the certificate's CNPJ does not belong to the issuer's company.

An A1 certificate is valid for one year. The dashboard warns you when it is about to expire; to swap it, use Replace certificate. An expired certificate stops issuing.

3. SEFAZ registration

Click Check SEFAZ registration. Mobiari asks SEFAZ, using your certificate, and shows whether your state registration is active and accredited for NF-e. If SEFAZ has a different IE from the one you typed, click Use this IE: it is saved in your company details.

4. Tax classes

A tax class groups the codes that go on the invoice: NCM (8 digits), origin, CSOSN, PIS/COFINS and CFOPs (internal, interstate and for final consumers in another state). Similar products share a class.

  1. Under Tax classes, click New class and fill in the codes with your accountant. Class names cannot repeat.
  2. Under Issuing, choose the Default tax class: it applies to products without a class of their own.
  3. For the others, use Edit products on the class and tick each class's products. A product that was in another class moves to this one.

When you import products from a spreadsheet, the NCM column links the product to the class with that NCM; see Import products and customers.

IBS and CBS in Simples Nacional

The tax reform changes Simples Nacional from 2027. From January 1, 2027, a Simples company's invoices carry the tax class's IBS and CBS (optional) group (CST, classification and rates), in the Simples's own format (NT 2026.005). Before December 14, 2026 SEFAZ does not take that format in production yet, and Mobiari blocks issuing if the invoice carries the group. An MEI does not report IBS and CBS. Each tax class also has the Simples activity (cAtivSN), which goes on every item from December 14, 2026; without a choice it is 01 · Default (resale or own manufacture). If the company opted for the regular IBS and CBS regime, choose Yes (regular regime) under Opted for the regular IBS and CBS regime, in Settings → Invoices (NF-e) → Issuing. Fill in all the IBS and CBS fields or none, and agree the rates with your accountant.

Regular regime

Companies under Lucro Presumido or Lucro Real (CRT 3) issue the sale NF-e of their orders and the NFC-e of their counter (POS) sales with ICMS and PIS/COFINS computed by Mobiari's tax engine: each state's internal ICMS rate comes from a table checked against that state's law, and the PIS/COFINS rates come from federal law. The tax class says what the law cannot decide on its own.

  1. In Settings → Invoicing → Issuing, choose the PIS/COFINS regime: Lucro Presumido (cumulative), with PIS 0.65% and COFINS 3%, or Lucro Real (non-cumulative), with 1.65% and 7.6%. Without it, no invoice goes out.
  2. In each tax class, choose the ICMS CST: 00 (fully taxed, at the tax engine's rate), 20 (with a reduced base: fill in the Base reduction (%)), 40 (exempt) or 41 (not taxed). With 20, 40 and 41, fill in the Benefit code (cBenef) when your state requires it.
  3. For PIS CST and COFINS CST, use 01 for a taxed sale or one of the untaxed CSTs (04 to 09, for example 04 for a single-phase product).
  4. Fill in the class's IBS and CBS (optional) group: under the regular regime SEFAZ requires it on every invoice. In 2026 the test rates are 0.1% IBS and 0.9% CBS; confirm the classification with your accountant.

When a rule is missing, the invoice does not go out and the preview says what is missing, for example "sem alíquota interna de ICMS verificada para SP" (no verified internal ICMS rate for SP). Mobiari never issues with a guessed rate. Each invoice keeps the version of the table it was computed with.

On sales to another state, ICMS goes out at the interstate rate (12%, 7%, or 4% for imported goods). For a company that pays ICMS (contributor), that is all. For a non-contributor consumer, the invoice also carries the DIFAL and the destination state's FCP. In the states that charge FCP on the general rate (Alagoas and Rio de Janeiro), the FCP goes on the invoice.

Not yet available under the regular regime

  • DIFAL is ready but only switched on once Mobiari has checked the base each state uses (single or double). Until then, a sale to a consumer in another state is refused with that notice.
  • A class with CST 20, 40 or 41 on a sale to another state, and a recipient exempt from the state registration in another state.
  • The FCP some states charge only on certain goods (beverages, for example) is not computed yet, nor the specific internal rate of some goods outside ST (perfumes and cosmetics at 25% in SP, for example): the invoice uses the state's general rate.
  • Tax substitution: see what is not available yet under Tax substitution (ICMS-ST).
  • Future delivery sales, gift invoices and returns.

In these cases the invoice preview shows why. Write to contato@mobiari.com if you need any of them.

Simples above the sub-limit

A Simples Nacional company that has gone above the state sub-limit (CRT 2) pays ICMS outside the Simples, as in the regular regime, and stays in the Simples for federal taxes. In Tax regime, choose Simples Nacional, above the sub-limit. Then:

  • ICMS follows the class's ICMS CST, computed by the tax engine as in the Regular regime (the invoice carries no CSOSN).
  • PIS and COFINS stay without value: use CST 99 (or 49) in the class and do not choose a PIS/COFINS regime.
  • The invoice carries the text "ESTABELECIMENTO IMPEDIDO DE RECOLHER O ICMS/ISS PELO SIMPLES NACIONAL".
  • The IBS and CBS group follows the Simples Nacional date (2027): the IBS at the class's rates and the CBS inside the Simples.

Tax substitution (ICMS-ST)

Under tax substitution, whoever sells to a reseller collects in advance the ICMS of the sales that follow. Mobiari computes ST from researched, cited rules for each product (NCM and CEST) and each pair of states: the MVA (adjusted between states when the destination requires it), the destination's internal rate, the FCP-ST and any base reduction.

To see what applies to a product, open its tax class (or the product's tax section): the Tax substitution (ICMS-ST) panel shows, for the company's state and each researched state, whether there is ST, with which MVA and rate, and the law that says so.

How the invoice decides:

  • Sale to a final consumer (a person, an NFC-e, or a company buying for its own use in the same state): no ST.
  • Sale for resale (a contributor with a state registration, with "final consumer" unticked in the preview): when the rule says there is ST, the store is the substitute and the invoice uses CST 10 (instead of 00), 70 (from 20) or 30 (from 40 and 41). Under Simples Nacional, CSOSN 101 becomes 201, 102 becomes 202 and 103 becomes 203, with the original MVA and the own ICMS at the interstate rate.
  • Goods bought with the ST already retained: use CST 60 (regular regime) or CSOSN 500 (Simples) in the class.
  • The ICMS-ST and FCP-ST go into the invoice total: the buyer pays the ST to the store. If the order did not charge it, the preview warns you and the invoice adds the amount as a payment to receive.

GNRE. On a sale with ST to another state, if the company holds a substitute registration there (fill Substitute taxpayer registrations (IE-ST) in other states), the invoice carries it. If not, the ST is paid by GNRE before the goods leave, one guide per invoice, and a copy travels with the goods. The preview and the order's invoice list show the amount and the notice. Mobiari does not pay or create the GNRE yet: do it on the GNRE portal or at your bank.

The ST rules are awaiting review

The researched rules are not in force yet: until they are reviewed, a sale for resale of a product with a CEST is refused under the regular regime, and under Simples the preview tells you to check with your accountant. The research covers, with SP as the origin, sunscreen, sunglasses, mattresses, furniture and clothing to RJ, MG, PR, SC, RS, BA, ES, GO, DF and CE: since 2026-04-01 none of them has ST retained by a seller in SP.

Not available yet: ST on a contributor's own use in another state, internal ST by a Simples company, and the interstate sale of goods bought with ST (CST 60). In these cases the preview says why.

5. Test in homologation

Every store starts in the Homologation environment: invoices go to SEFAZ's test environment and have no tax value.

  1. Click Test SEFAZ connection.
  2. Open a real order in Sell → Orders and, on the order's panel, in the Invoice (NF-e) part, click Issue invoice. Leave the Invoice type on Sale and review the preview (the recipient and the totals). In homologation, the window says the invoice is a test with no fiscal value, and the button reads Issue in homologação. Click it.
  3. Once the invoice is authorized, click Cancel invoice, write the justification and confirm with Cancel invoice to test cancellation.

If SEFAZ rejects it, its message appears on screen ("SEFAZ rejected the NF-e: ..."). Fix what it asks for (almost always a tax class code or an issuer detail) and issue again. If SEFAZ does not answer, the invoice waits and Mobiari tries again on its own.

Review the note before issuing

In the Issue the invoice window for an NF-e, click Review the note to see and correct what goes on the invoice. Changes apply to that NF-e only: the order and the customer's record stay as they are. The note is split into four parts, and each one shows how many errors it has:

  • Recipient: Name or company name, CPF/CNPJ, ICMS taxpayer (9 - Not a taxpayer, 1 - Taxpayer (with IE), with the State registration (IE), or 2 - Taxpayer exempt from IE), Final consumer (untick it when the company buys for resale or manufacturing), Email, Phone and the address. In homologation SEFAZ requires a standard recipient name; the name typed here is used in production.
  • Products: for each item, the Tax class, Description, Code, NCM, CEST, CFOP, CSOSN, Origin, Unit, GTIN and Item information. Quantity, price, discount and freight come from the order: edit the order to change them.
  • Transport: the Freight mode, the Carrier with the Carrier CNPJ/CPF, and the Volumes (Qty, Kind, Net weight (kg) and Gross weight (kg)), with Add volume.
  • Information: the Nature of the operation and the Additional information. What you type replaces the text Mobiari generates (Simples Nacional, order, Central do Frete): make sure what is required stays in it.

While the recipient is wrong, products and transport do not show: fix it first. Each change updates the preview, and the invoice goes out exactly as the last preview showed. Undo changes goes back to what the order generated, and Done closes the review (the window notes Note changed for this issue only.). If you corrected the recipient of an order with a customer, tick Also save on the customer record so the correction applies to later invoices. Unticked, the record only gets what it lacks. The review is not offered for an NFC-e or a shipment (remessa) invoice, which go out as the order maps them.

6. Production numbering

Under Production numbering, enter the Next number: one more than the last NF-e your company issued in that series, in any system. If you have never issued one, use 1. Click Confirm numbering.

7. Checklist and production

The Production checklist shows what is missing. Production unlocks only when every item is done:

  • Issuer details
  • Digital certificate
  • SEFAZ registration
  • SEFAZ connection
  • Note authorized in homologation
  • Note cancelled in homologation
  • Production numbering

When everything is ready, click Enable production and confirm. From then on, invoices have tax value. An authorized invoice can only be cancelled within 24 hours (a SEFAZ rule); after that, talk to your accountant. You can go back to testing with Back to homologation.

8. Automatic issuing

Under Issuing → Automatic issuing, choose when the NF-e goes out on its own:

  • When the shipment is packed (recommended): each shipment's NF-e is issued when you click Confirm packing and the boxes match what the shipment carries, so the invoice goes out with the right volumes. If the order was billed for future delivery, that shipment's remessa goes out instead. An order that already has an NF-e for the whole order gets no other, and a shipment that combines several orders waits for you to issue it by hand.
  • When payment is confirmed: the whole order's NF-e is issued when the order is paid.

Either way, only paid orders are invoiced, and orders and shipments going through Central do Frete wait until the carrier is chosen on the shipment, because the carrier goes on the invoice. If an issue fails (a customer without a CPF, a product without a tax class), it is tried again every six hours. When you turn automatic issuing on, change the option or switch environments, it starts over from that moment: orders paid and shipments packed before then, or during testing, are never issued in production.

We recommend issuing your first production invoices by hand, with the Issue invoice button on the order's panel, and turning on automatic issuing once everything looks right.

Stock write-off note

In Issuing → Stock write-off NF-e (5.927), choose what happens when a stock adjustment takes units out for Damaged, Lost, Theft or Expired:

  • Ask on each adjustment (default): the adjustment panel shows Issue the stock write-off NF-e (5.927).
  • Always issue: the note goes out with every such adjustment.
  • Do not issue.

The write-off note is addressed to your own CNPJ, at average cost, and is linked to the adjustment. It does not move stock again. If it does not go out (without a certificate, for example), the adjustment stands anyway and the warning says why. Once the note is cancelled, the stock stays written off and the adjustment can be undone in the Movements view. Mobiari does not issue the adjustment note (finality 3).

Day to day

  • In Operate → Invoices you filter invoices by state (Authorized, Rejected, Cancelled...) and by environment. Click an invoice to open its DANFE and XML under Files and see SEFAZ's answer.
  • At the end of the month, Accountant's package, on the same screen, downloads a ZIP with the month's invoice XMLs, the XMLs of the purchase invoices issued in the month, two spreadsheets and the inventory position on the month's last day (the base of Bloco H). See reconciling notes and stock.
  • Made a mistake that doesn't change amounts, taxes, recipient or dates (the carrier, a text on the invoice)? Use a Correction letter (carta de correção) in the Invoice (NF-e) part of the order's panel, within 30 days. Each letter replaces the previous ones: write every correction that still applies.
  • A customer sent goods back? The return NF-e goes out from the return: see Returns.
  • An order leaves in more than one shipment? Each shipment can have its own sale NF-e, issued in the shipment's NF-e step (Issue this shipment NF-e): see One NF-e per shipment.
  • Value or tax missing on an authorized NF-e? In Operate → Invoices, open the invoice and click Complementary invoice: choose Price difference (the amount to add to each item, with the invoice's taxes on the difference) or Missing tax (the base and value of the ICMS or ICMS-ST; only the items with ICMS by CST or ICMS-ST show), write the Reason on the invoice if you want, click Check, review the totals and click Issue the complementary invoice. It references the original invoice and shows on the order, beside it.
  • Skipped numbers in the series? Report them to SEFAZ under Operate → Invoices → Void numbers. This cannot be undone.
  • Issued an invoice in another system? Use Attach an NF-e issued elsewhere, in the Invoice (NF-e) part of the order's panel, to link it.
  • Do goods leave from a warehouse or another house? Set Where goods leave from in Settings → Invoices (NF-e).
  • Does the store have branches with another CNPJ? Each one issues its own invoices: see Branches and more than one CNPJ.

Common problems

  • "Fill in the company details (CNPJ, state registration and address)". Complete your details in Settings → Store settings → Store and company.
  • "Enter the state registration in the company details". The IE is empty or set to ISENTO. Type the numeric IE.
  • The enable-production button is blocked. Check the Production checklist: an item is missing.
  • Expired certificate. Upload a new one with Replace certificate.
  • SEFAZ rejected the invoice. Read the message: it usually points at an NCM, CFOP or CST in the tax class, or a recipient detail. Fix it and issue again.
  • I want to cancel after 24 hours. SEFAZ does not accept it; talk to your accountant.

These error messages are shown in Portuguese.

Next steps

  • Book freight: Shipping. Central do Frete only books with an NF-e.
  • Check the data that goes on the invoice: Company details.
  • General questions: FAQ.

On this page