Skip to content
Tax calculation

Tax Class

Any system can calculate a tax. In Brazil, the hard part is knowing which rule applies to each customer, in each state. With Tax Class, Webmania® takes care of that part.

Set up the rules with your accountants. Webmania® applies the matching scenario to each sale, based on the customer and the destination.

Tax Class is included in the Fiscal Issuer.

Tax ClassOne setup. Different sales.Laptop · Issuer in São Paulo
Your saleCompanyParanáProduct and customer sent
Same classSetup unchanged
Webmania® appliesParaná ruleCompany profile recognizedTaxes calculated for issuing
The registered rule applies to this sale.
  • Company · PR. Your sale: Company, Paraná. Same class. Webmania® applies: Paraná rule, Company profile recognized. The registered rule applies to this sale. Destination: Paraná. Scenario: Out of state · Company. CFOP: 6101. ICMS: 12% · R$ 1,296.00. From São Paulo to the South and the Southeast, the interstate ICMS rate is 12%.
  • Company · BA. Your sale: Company, Bahia. Same class. Webmania® applies: Bahia rule, Destination rule selected. The destination changes. The same class covers the sale. Destination: Bahia. Scenario: Out of state · Company. CFOP: 6101. ICMS: 7% · R$ 756.00. From São Paulo to the North, the Northeast, the Center‑West and Espírito Santo, it is 7%.
  • Consumer · PR. Your sale: Individual, Paraná. Same class. Webmania® applies: Final consumer rule, DIFAL included in this example. The customer changes. The class applies another scenario. Destination: Paraná. Scenario: Out of state · Individual. CFOP: 6107. ICMS: 12% · R$ 1,296.00. Sale to a final consumer in another state: Webmania® also calculates the DIFAL for Paraná, the difference between its ICMS rate and the interstate rate.
See the tax setup of the example
Tax ClassREF1000Sale of own production · Lucro Real (actual profit)
ScenarioCFOPCST
In state· IndividualIndividual510100
In state· CompanyCompany510100
Out of state· IndividualIndividual610700
Out of state· CompanyCompany610100
Laptop · R$ 10,800.00 · issuer in São Paulo
DestinationParaná
Scenario chosenOut of state · Company
CFOP6101
ICMS12% · R$ 1,296.00
From São Paulo to the South and the Southeast, the interstate ICMS rate is 12%.

One registered class. Webmania® handles the scenario, the CFOP (the 4-digit transaction code: 5101 stays in the state, 6101 goes to another state), the CST (how the tax applies: taxed, exempt, deferred…) and the ICMS (state sales tax) rate of each destination, on every invoice.

You do it onceWith your accountants
  • Choose the type of each transaction (CFOP)
  • Define how each tax applies (CST)
  • Link the class to your products
Webmania® does it on every invoiceEach time you issue
  • Recognizes the customer and the destination
  • Applies the rate of each state
  • Calculates the taxes on the transaction
  • Validates the invoice before sending it to SEFAZ (the state tax authority)

It works for products and services, on NF‑e, NFC‑e, NFS‑e and NFCom. When the tax reform brings new taxes, such as IBS and CBS, they go into the same class.

From the panel to the API

In the panelYou register the class once, in a few fields, with guidance from your accountants.
Through the APIFor NF‑e and NFC‑e, your system creates and updates the classes directly through the API.
When you issueEach product carries only the class code, in online stores too.

Check before you issue

Through the API, you can see the taxes of an invoice before you issue it. This helps with quotes, billing and audits.

The class does not cover imports. For an import, the import data goes on the invoice itself.

Tax Class for NFS‑e (in Portuguese) →Tax classifications (in Portuguese) →

Want to see Tax Class on your invoices?

In a demo, a specialist builds a class for your operation with you. Then the specialist shows the taxes calculated in each scenario.

NextDoes your ERP already calculate the taxes? With ByPass®, Webmania® sends them without recalculating