Skip to main content

Tax Rules

Tax rules allow configuring tax rates with different levels of specificity.

Rule Fields​

FieldDescription
NameDescriptive rule name
ScopeApplication level (see table)
PriorityHigher number = higher priority within the scope
ActiveWhether the rule is active
ValidityValidity period (from/to)
ItemsList of taxes and rates

Matching Criteria (optional)​

FieldDescription
CompanySpecific issuing company
Service itemSpecific service
Billing accountSpecific customer
Customer tax typeCustomer classification
MunicipalityIBGE municipality code
Operation typeinternal or external

Scope and Priority​

Rules are evaluated from most specific to most generic:

ScopePriorityDescription
customer100Rule for a specific customer
service80Rule for a specific service item
company60Rule for the issuing company
municipality40Rule by municipality
organization20Organization-wide rule
global0System default

The rule with the highest priority takes precedence. Multiple rules with the same priority are combined.

Rule Items​

Each rule contains items that define rates:

FieldDescription
Tax typeISS, PIS, COFINS, CSLL, IRPJ, IRRF, CSRF, INSS
RatePercentage (e.g., 5.00 for 5%)
WithheldWhether it is withheld at source
Calculation baseservice_value, service_value_minus_iss, or presumed_base
ExemptWhether the tax is exempt
Exemption reasonJustification for the exemption

Examples​

Organization default ISS​

Scope: organization (priority 20)
Item: ISS = 5.00%, withheld at source, base = service value

Service-specific rule​

Scope: service (priority 80)
Service item: "Software Development"
Items:
- ISS = 3.50%, not withheld
- IRRF = 15.00%, withheld at source

The service rule takes precedence over the organization rule for ISS.

Screenshot​

The /dashboard/tax-rules screen lets you create, edit and prioritize tax rules. The main filters include company, customer, service item, tax type and whether it is withheld. Each rule carries a list of taxes with rate, withholding flag and exemption.

List of tax rules with scope, priority and rates