REDA One Help Center
EN
Language
English EN Español ES Português PT Italiano coming soon Français FR Deutsch coming soon العربية coming soon
reda.one ↗
Home / REDA Financials AI / Tax Management / Tax Engine Foundations / Tax Jurisdictions

Tax Jurisdictions

A Tax Jurisdiction is a place that levies tax — a country, a state or province, a city. It is the foundation of the whole tax engine, because every tax question starts with “where?”: where is the seller, where is the buyer, and therefore which taxes apply. Get the jurisdictions right and the rules above them practically write themselves.

The clever part — and the thing to understand before anything else — is that jurisdictions form a hierarchy. The United Kingdom contains England, Scotland, Wales, and Northern Ireland. Brazil contains São Paulo, Rio de Janeiro, and 25 other states. The engine uses that parent-child structure so a rule set once at country level automatically applies to every place inside it.

Getting there. Open the App Launcher (the grid icon at the top-left of any page) → REDA Financials Admin → the Tax Jurisdictions tab. In practice the Tax Seeding Wizard creates these for you; open the tab to review or maintain a record.
Access you'll need. Setting up and maintaining jurisdictions requires the Accounting Admin v2 or Accounting Controller v2 permission set. The Accounts Payable v2, Accounts Receivable v2, and Read Only v2 sets can view them but not change them.
Why this matters in one sentence. Because jurisdictions nest, you write a UK VAT rule against “GB” once, and it fires for a customer in England, Scotland, or anywhere in the UK — no need to repeat the rule for each nation. The hierarchy is what keeps the rulebook small.

Current main release: 1.62000

Tax and withholding. Tax-side/registration resolution, cash-basis tax-point support, withholding thresholds and settlement corrections, seed improvements and product-profile controls. Use current tax/WHT field placements, exact added picklist options and approved configuration; package installation does not determine the customer's tax obligations.

Release notes and cumulative changes · Detailed installation and upgrade steps

The hierarchy — and ancestry matching

Each jurisdiction can point to a parent. Country records have no parent; a state points to its country; a city points to its state. That produces a tree:

GB (United Kingdom)
  ├─ GB-ENG (England)  → parent GB
  ├─ GB-SCT (Scotland)  → parent GB
  ├─ GB-WLS (Wales)  → parent GB
  └─ GB-NIR (Northern Ireland)  → parent GB

When the engine evaluates a transaction, it doesn’t just look at the exact jurisdiction — it walks up the tree and collects the place plus all its ancestors. A customer in England produces the set {GB-ENG, GB}. A rule then matches if its jurisdiction is anywhere in that set. So:

  • A rule targeting GB matches the England customer (because GB is an ancestor).
  • A rule targeting GB-ENG matches too (exact hit).
  • A rule targeting GB-SCT does not match (Scotland isn’t in the set).

This “ancestry matching” is why one country-level rule covers a whole nation, while you can still drop to a state-level rule when a single state differs (exactly how Brazil’s per-state ICMS rates work).

The fields — with UK & Brazil values

A jurisdiction is a small, deliberate record. Here is every field, what it does, and a real value from the shipped seed packs — a UK record (England) beside a Brazil record (São Paulo), both at State/Province level so you can compare like for like.

FieldTypeRequiredWhat it’s for🇬🇧 England🇧🇷 São Paulo
Jurisdiction NameTextYesDisplay nameEnglandSão Paulo
CodeText(20) · Unique · External IDYesUnique readable identifier and seed/import key; not a country/state parserGB-ENGBR-SP
LevelPicklistYesHierarchy tier — drives ancestry matchingState/ProvinceState/Province
Parent JurisdictionLookup (self)For non-countryThe place above this one in the treeGBBR
Authority TypePicklistNoThe body that administers the taxState Tax DepartmentState Tax Department (SEFAZ-SP)
Country CodePicklist (ISO 3166-1)Every saved record; can inherit from parentMust resolve on every save; inherited from parents when blankGBBR
Currency CodePicklist (ISO 4217)NoReference currency for seedingGBPBRL
Is ActiveCheckbox (default true)YesAvailability marker; review references and rule configuration before retiring a recordtruetrue
NotesLong Text(500)NoFree notes — treaties, thresholds, deadlines—“SP — largest economy. ICMS 18% standard.”

Code labels the record; country and state come from fields

Code is a unique, human-readable identifier and an External ID used to match seed/import records. Keep established codes stable. The tax engine does not split this text to discover a country or state. It follows Parent Jurisdiction links, reads Country Code, and identifies the record whose Level is State/Province.

Use uppercase letters, no spaces and a hyphen between each tier: country BR, state BR-SP, municipality BR-SP-3550308. A child's code must start with its parent's entire code followed by a hyphen. These rules keep the readable label consistent with the records; changing a code does not move the record to another state.

How the engine uses jurisdictions

  1. Follow the records. The Entity's Tax Jurisdiction and the customer's or vendor's Account Tax Jurisdiction identify the two places. The engine includes each place and its parents when matching a rule. A rule at country level can therefore match a descendant, provided its other conditions also match.
  2. Read the country. The engine walks up the hierarchy and uses the highest ancestor with a populated Country Code (normally the country record). It does not infer the country from Code. If an ancestor's country is corrected, its value governs calculation; re-save descendants to refresh any older copied country values displayed on them.
  3. Identify the state. Starting at each selected record, it finds the nearest record at State/Province level. Same country and the same state record means intrastate; same country and different state records means interstate. If either side has no state/province ancestor, the same-country comparison is intrastate. Duplicate state records remain different records even if their names look alike.
  4. Resolve the operation. Different countries mean a foreign transaction: normally Export for a sale, Import for a purchase. Domestic transactions use Sale or Purchase and the interstate flag. Automatic selection also needs a unique active Fiscal Operation matching the entity country and direction; an explicit document operation can take precedence. Missing country information leaves the relationship unresolved. See Fiscal Operations.
  5. Check the rest of tax setup. Jurisdictions do not themselves set a rate or establish a tax obligation. Registration, document date, product/party profiles and Tax Rule conditions still determine which configured taxes apply. See Entity Tax Registration and Tax Rules.

Real data: UK and Brazil jurisdictions

The seed values below are examples of packaged configuration, not a statement of current legal rates or of which rules apply to your business. Have your tax configuration owner approve the rates and conditions used in your org.

Here is what the seed packs actually create.

🇬🇧 United Kingdom — 5 records

CodeNameLevelParentCurrency
GBUnited KingdomCountry—GBP
GB-ENGEnglandState/ProvinceGBGBP
GB-SCTScotlandState/ProvinceGBGBP
GB-WLSWalesState/ProvinceGBGBP
GB-NIRNorthern IrelandState/ProvinceGBGBP

VAT is UK-wide, so the four nations exist mainly for completeness and the few cases that differ (Northern Ireland follows EU VAT rules for goods under the Windsor Framework). The VAT rules all sit at GB level.

🇧🇷 Brazil — 28 records (a sample)

CodeNameLevelParentNote (from seed)
BRBrazilCountry—Receita Federal (RFB)
BR-SPSão PauloState/ProvinceBRICMS 18% standard
BR-RJRio de JaneiroState/ProvinceBRICMS 20%; FCP 2% applies
… plus MG, RS, BA and the other 22 states

Brazil needs every state because ICMS rates and surcharges genuinely differ by state — SP at 18%, RJ at 20% with a 2% poverty-fund surcharge. The hierarchy lets each state carry its own rules while shared federal taxes (IPI, PIS, COFINS) sit at BR level.

Worked example: São Paulo to Rio de Janeiro

This example explains record matching, not a tax-rate recommendation. The seller Entity points to the São Paulo record BR-SP; the customer's Account points to the Rio de Janeiro record BR-RJ. Both state records point to the same Brazil country record, with Country Code = BR.

  1. The country resolution returns BR on both sides.
  2. The two records have Level = State/Province and different record identities. The domestic sale is therefore interstate.
  3. With a customer in a municipality below São Paulo instead, both ancestry chains reach the same São Paulo state record. That comparison is intrastate.
  4. The engine then applies the configured operation, registration, profiles and rules. The number of taxes and their rates cannot be determined from the two codes alone.

Changing only an address or renaming a code is not a substitute for reviewing the Tax Jurisdiction lookup on the Entity and Account.

Built-in guardrails and how to correct a save error

Six validation rules and the save-time country check protect the hierarchy. Review the intended place before editing; do not change a correct country simply to make a code pass.

CheckWhat to inspect and correct
Uppercase; no spacesUse BR-SP, not br-sp or BR SP.
Code agrees with country — new in the carried-forward patchCode must equal Country Code, or begin with that country plus a hyphen. For BR: BR or BR-…. Check both fields before correcting a mismatch.
Code extends parent — new in the carried-forward patchWith parent BR-SP, a child's code must begin BR-SP-. Choose the correct existing parent or correct the identifier after checking integrations.
Parent required below CountryState/Province, Municipality, District and Region require a parent lookup. Save the parent first.
No self-parentA record cannot point to itself. Review the complete chain; do not create circular parent relationships.
Country resolves and agrees with parentA blank child country inherits a populated country from its parents when saved. A legacy Country record can fill a blank country from Code only if Code exactly equals an active country picklist value. Otherwise select the correct country. A newly entered country contradicting its parent is rejected.

An unchanged country copy that has become stale after its parent was corrected is refreshed on that child's next save. Saving a parent does not automatically save every descendant.

Create and maintain the hierarchy

The Tax Seeding Wizard can create country and child records. For an existing customer, do not rerun a seed pack just to repair blank country fields; follow the upgrade procedure below so customer configuration is preserved.

  1. Open App Launcher → REDA Financials Admin → Tax Jurisdictions. Use an administrator or a user with Accounting Admin v2 or Accounting Controller v2 access.
  2. For a new country, click New. Enter its name and uppercase Code, choose Level = Country and the correct Country Code, and leave Parent Jurisdiction empty. Complete any other required fields shown by your layout. Click Save.
  3. For a state or municipality, click New, enter its name, select the correct Level, and use Parent Jurisdiction to select the existing parent record. Enter a Code extending the parent's code. A blank Country Code is filled from the parent chain on Save.
  4. Open the saved record again. Confirm Country Code, Level and Parent Jurisdiction. Add lower tiers only when your approved rules need them. Preserve records referenced by existing transactions; review dependencies before changing identifiers or retiring a jurisdiction.

After upgrading: check and re-save legacy jurisdictions

Who does this: your Salesforce administrator with permission to edit Tax Jurisdictions. This is the one-time subscriber step carried forward from patch 1.61014 into main release 1.62000. Installing the package delivers the save logic and validation rules; it does not by itself re-save existing customer records. A fresh record saved under this logic is checked immediately. If your administrator already completed this step after the patch, verify the result instead of repeating changes blindly.

Acre Tax Jurisdiction edit form: Code BR-AC, Country Code Brazil, Level State/Province and Parent Jurisdiction Brazil.
Review the structured fields before saving. This real 1.62000 demo shows Acre in Brazil: Code = BR-AC, Country Code = Brazil (the displayed label for BR), Level = State/Province and Parent Jurisdiction = Brazil. Country and state resolution use these fields and the parent hierarchy, not a split of Code. This is an example record: check your own country and parent; do not copy Brazil into a jurisdiction in another country. The capture shows the edit form, not a completed repair.
  1. Prepare a review copy. Confirm the installed version in Setup → Installed Packages. Before editing, export or otherwise preserve the current jurisdiction records with record IDs, Code, Country Code, Level and Parent Jurisdiction. Keep the backup in your approved secure location. Rehearse the process in a sandbox and arrange a controlled maintenance window if your org has additional automation.
  2. Expose the fields if needed. In Setup, open Object Manager → Tax Jurisdiction → Page Layouts. Use Page Layout Assignment to identify the layout for the administrator's profile and record type; open that layout. From Fields, drag Country Code, Level, Parent Jurisdiction and Code into the jurisdiction details section if missing; save. Do not remove customer fields. If a field remains unavailable, check that user's object and field permissions. Return to the record and refresh.
  3. Start with countries. Open App Launcher → REDA Financials Admin → Tax Jurisdictions, select the list containing your records and open each country. Click Edit. Verify Level = Country, correct Country Code and no parent. If Country Code is blank and Code is exactly an active ISO country value such as BR, saving fills it. Otherwise select the correct country explicitly. Click Save, reopen and confirm the result.
  4. Then work down the tree. Open each state, then municipality/district/region. Click Edit; confirm its Level and existing parent. If the country is blank, or an unchanged copy is stale after a parent correction, click Save without inventing a new value. The save routine resolves it from the saved parents. Do not change a correct Code solely to trigger an update. Reopen and verify Country Code and parent.
  5. Resolve errors individually. If Save is refused, use the table above to identify a missing parent, unresolved country or inconsistent code. Confirm the intended geography with your configuration owner before correcting it. Preserve the record ID and review references/imports before changing an identifier. Do not disable validation or delete/recreate records as a shortcut.
  6. Verify completion. Compare the refreshed records with the backup: each jurisdiction must have a resolved country and the approved ancestry; unexpected code/parent changes need review. In the sandbox, review representative same-state, different-state and cross-country tax previews with known Entity/Account lookups and approved rules. A successful re-save alone does not prove the final tax result. Record the checks and unresolved errors before repeating the approved steps in production.

Large hierarchies: controlled operator update

For many records, a Salesforce administrator/developer can perform the documented touch-update through anonymous Apex. A touch-update sends existing record IDs through the save routine; it does not intentionally change Code or Parent Jurisdiction, but save-time country healing and other org automation still run. This is not a task for an ordinary accounting user.

Have the operator export the same backup, validate the hierarchy in a sandbox, and prepare explicit reviewed batches, countries before children. In Salesforce's Developer Console, use Debug → Open Execute Anonymous Window. The package operation is update [SELECT Id FROM refin__Tax_Jurisdiction__c]; it is only suitable as written for a reviewed small data set within Salesforce limits. Do not run that unrestricted statement for a large tree. The operator must bound each selection to approved record IDs/levels, keep batches within platform and org-automation limits, inspect every error and re-query the resulting country values before proceeding. Retain execution results and failed record IDs; correct and retry only reviewed failures. If this expertise or access is unavailable, use the record-by-record path or ask your implementation partner to perform the controlled update.

For inherited values, save and verify the parents before processing their children; do not submit an all-blank multi-level tree as one batch.

Salesforce reference: assign page layouts by profile and record type · execute anonymous Apex and review its log.

Where to go next

  1. Tax Types — the taxes a jurisdiction levies.
  2. Tax Rules — rules scoped to a jurisdiction.
  3. Entity Tax Registration — registering to collect in a jurisdiction.
  4. Tax Seeding Wizard — load jurisdictions automatically.

Frequently asked questions

Only the ones your rules need. For the UK, the country record alone carries the VAT rules — the four nations are optional. For Brazil, you need each state whose ICMS rate or surcharge differs (which, in practice, is most of them). The seed gives you the full set so you don’t have to decide up front.

Code is the stable readable identifier and seed/import key. Country comes from Country Code through the parent hierarchy; state comes from the nearest State/Province record. Code must agree with those facts, but the engine does not split it to decide intrastate, interstate or foreign treatment.

The Tax Jurisdiction field on the customer’s Account (and on your Entity for the seller side). The engine reads those two to get origin and destination. Covered in Party Tax Profiles.

Yes — that’s the whole point of the hierarchy. Keep the shared rule at country level, and add a more specific rule at the state level for the exception. Both can match; the engine applies the rules that fit (tax rules don’t “stop at the first match”). How to scope that precisely is covered in Tax Rules.

Was this article helpful?