{"ruleset_version":1,"count":10,"rules":[{"id":"BR:*:ICMS@v1","ruleKey":"BR:*:ICMS","version":1,"countryCode":"BR","productCategory":"*","customerType":"*","taxType":"ICMS","taxScope":"state","rateBps":1700,"treatment":"standard","thresholdMinor":0,"taxableBase":"net","priority":10,"compoundOnPrevious":false,"validFrom":"2020-01-01","validTo":null,"recordedAt":"2024-01-01T00:00:00.000Z","supersededAt":null,"rulesetVersion":1,"legalReference":"Illustrative: LC 87/1996 (Lei Kandir), standard interstate rate","notes":"Country default when no category-specific rule exists."},{"id":"BR:BOOKS:ICMS@v1","ruleKey":"BR:BOOKS:ICMS","version":1,"countryCode":"BR","productCategory":"books","customerType":"*","taxType":"ICMS","taxScope":"state","rateBps":0,"treatment":"exempt","thresholdMinor":0,"taxableBase":"net","priority":10,"compoundOnPrevious":false,"validFrom":"2020-01-01","validTo":null,"recordedAt":"2024-01-01T00:00:00.000Z","supersededAt":null,"rulesetVersion":1,"legalReference":"Illustrative: CF/1988 art. 150, VI, d - immunity for books and periodicals","notes":null},{"id":"BR:DIGITAL_SERVICES:ICMS@v1","ruleKey":"BR:DIGITAL_SERVICES:ICMS","version":1,"countryCode":"BR","productCategory":"digital_services","customerType":"*","taxType":"ICMS","taxScope":"state","rateBps":0,"treatment":"exempt","thresholdMinor":0,"taxableBase":"net","priority":10,"compoundOnPrevious":false,"validFrom":"2020-01-01","validTo":null,"recordedAt":"2024-01-01T00:00:00.000Z","supersededAt":null,"rulesetVersion":1,"legalReference":"STF ADI 1945/MT and ADI 5659/MG (2021) - software is subject to ISS, not ICMS","notes":"ICMS does NOT apply to digital services. This rule exists to encode that exclusivity: without it the BR:*:ICMS country wildcard would fall through and charge 17% on software, which is precisely the combination the STF held unconstitutional. Explicit beats implicit for a rule an auditor has to trust."},{"id":"BR:DIGITAL_SERVICES:ISS@v1","ruleKey":"BR:DIGITAL_SERVICES:ISS","version":1,"countryCode":"BR","productCategory":"digital_services","customerType":"*","taxType":"ISS","taxScope":"municipal","rateBps":500,"treatment":"standard","thresholdMinor":0,"taxableBase":"net","priority":20,"compoundOnPrevious":false,"validFrom":"2020-01-01","validTo":null,"recordedAt":"2024-01-01T00:00:00.000Z","supersededAt":null,"rulesetVersion":1,"legalReference":"Illustrative: LC 116/2003 - municipal service tax, Sao Paulo rate","notes":"Stacks with federal PIS/COFINS-Importacao (9.25%) for 14.25% effective. ICMS deliberately does NOT apply to digital services: STF ADI 1945 and ADI 5659 (2021) held that software is subject to ISS, not ICMS, and the two are mutually exclusive on digital goods."},{"id":"BR:DIGITAL_SERVICES:PIS_COFINS_IMPORT@v1","ruleKey":"BR:DIGITAL_SERVICES:PIS_COFINS_IMPORT","version":1,"countryCode":"BR","productCategory":"digital_services","customerType":"*","taxType":"PIS_COFINS_IMPORT","taxScope":"federal","rateBps":925,"treatment":"standard","thresholdMinor":0,"taxableBase":"net","priority":5,"compoundOnPrevious":false,"validFrom":"2020-01-01","validTo":null,"recordedAt":"2024-01-01T00:00:00.000Z","supersededAt":null,"rulesetVersion":1,"legalReference":"Illustrative: Lei 10.865/2004 - PIS/COFINS-Importacao on imported services (1.65% + 7.6%)","notes":"Federal layer on cross-border digital services. Replaces ICMS here: see the ISS rule's note for why ICMS cannot apply to software."},{"id":"BR:EDUCATION:ICMS@v1","ruleKey":"BR:EDUCATION:ICMS","version":1,"countryCode":"BR","productCategory":"education","customerType":"*","taxType":"ICMS","taxScope":"state","rateBps":0,"treatment":"exempt","thresholdMinor":0,"taxableBase":"net","priority":10,"compoundOnPrevious":false,"validFrom":"2020-01-01","validTo":null,"recordedAt":"2024-01-01T00:00:00.000Z","supersededAt":null,"rulesetVersion":1,"legalReference":null,"notes":null},{"id":"BR:ELECTRONICS:ICMS@v1","ruleKey":"BR:ELECTRONICS:ICMS","version":1,"countryCode":"BR","productCategory":"electronics","customerType":"*","taxType":"ICMS","taxScope":"state","rateBps":1700,"treatment":"standard","thresholdMinor":0,"taxableBase":"net","priority":10,"compoundOnPrevious":false,"validFrom":"2020-01-01","validTo":"2026-01-01","recordedAt":"2024-01-01T00:00:00.000Z","supersededAt":null,"rulesetVersion":1,"legalReference":"Illustrative: LC 87/1996 (Lei Kandir)","notes":"ICMS rate on electronics before the illustrative 2026-01-01 revision in v2. Closed in VALID TIME by that rate change, not superseded by us: v1 remains the correct answer for any transaction dated before 2026-01-01."},{"id":"BR:ELECTRONICS:ICMS@v2","ruleKey":"BR:ELECTRONICS:ICMS","version":2,"countryCode":"BR","productCategory":"electronics","customerType":"*","taxType":"ICMS","taxScope":"state","rateBps":1800,"treatment":"standard","thresholdMinor":0,"taxableBase":"net","priority":10,"compoundOnPrevious":false,"validFrom":"2026-01-01","validTo":null,"recordedAt":"2024-01-01T00:00:00.000Z","supersededAt":null,"rulesetVersion":1,"legalReference":"Illustrative: modelled rate increase, used to demonstrate effective-dated versioning","notes":"EC 132/2023 introduces the CBS/IBS transition; it does not by itself raise ICMS on electronics by one point on 2026-01-01. This version pair is an invented but plausible state-level rate change, and exists so a reviewer can see date-based selection: a transaction dated 2025-12-31 resolves to v1, one dated 2026-01-02 resolves to v2. Same rule_key, different valid window."},{"id":"BR:FOOD:ICMS@v1","ruleKey":"BR:FOOD:ICMS","version":1,"countryCode":"BR","productCategory":"food","customerType":"*","taxType":"ICMS","taxScope":"state","rateBps":700,"treatment":"reduced","thresholdMinor":0,"taxableBase":"net","priority":10,"compoundOnPrevious":false,"validFrom":"2020-01-01","validTo":null,"recordedAt":"2024-01-01T00:00:00.000Z","supersededAt":null,"rulesetVersion":1,"legalReference":"Illustrative: Cesta basica reduced rate","notes":null},{"id":"BR:MEDICINE:ICMS@v1","ruleKey":"BR:MEDICINE:ICMS","version":1,"countryCode":"BR","productCategory":"medicine","customerType":"*","taxType":"ICMS","taxScope":"state","rateBps":1200,"treatment":"reduced","thresholdMinor":0,"taxableBase":"net","priority":10,"compoundOnPrevious":false,"validFrom":"2020-01-01","validTo":null,"recordedAt":"2024-01-01T00:00:00.000Z","supersededAt":null,"rulesetVersion":1,"legalReference":null,"notes":null}]}