{
  "success": true,
  "sample": true,
  "note": "Calculadora Oficial RTC (Receita Federal Base V0073 — 170 cClassTrib) no Edge sem servidor Java 21 / Spring Boot. Chame POST /generate ou POST /calculate via x402 ($0.005 USDC) ou B2B API Key.",
  "rfbMetadata": {
    "dbVersion": "V0073",
    "publishedDate": "2026-11-09",
    "normativeReference": "Nova tabela de Classificações Tributárias (IT 2025.002 v.1.71), publicada em 30/10/2026.",
    "legalFramework": "LC 214/2025 (Reforma Tributária do Consumo — EC 132/2023)",
    "license": "MIT (Receita Federal do Brasil / SERPRO — Portaria Cotec nº 342)",
    "sourceRepos": [
      "https://github.com/ReceitaFederal/calculadora-rtc-regime-regular",
      "https://github.com/ReceitaFederal/calculadora-rtc-simples-nacional",
      "https://github.com/ReceitaFederal/calculadora-rtc-gerador-danfse"
    ],
    "counts": {
      "cClassTribActive": 170,
      "cstActive": 18,
      "ncmMappings": 450,
      "nbsMappings": 89,
      "simplesActivities": 15
    }
  },
  "sampleInput": {
    "ano": 2027,
    "setor": "construcao_civil",
    "regime": "regime_regular",
    "chaveAcesso": "35270300000000000191560010000012341000012345",
    "numero": "1234",
    "codigoVerificacao": "RTC-V0073-DEMO",
    "dataEmissao": "2027-03-10T10:00:00-03:00",
    "prestador": {
      "cnpjCpf": "00000000000191",
      "razaoSocial": "CONSTRUTORA HORIZONTE ENGENHARIA LTDA",
      "municipio": "Sao Paulo",
      "uf": "SP"
    },
    "tomador": {
      "cnpjCpf": "11222333000181",
      "razaoSocial": "INCORPORADORA ENTERPRISE S.A.",
      "municipio": "Curitiba",
      "uf": "PR"
    },
    "servico": {
      "codigoTributacaoNacional": "07.02.01",
      "discriminacao": "Medicao de obra civil comercial — Etapa 03 (reducao legal 50% Art. 261 LC 214/2025)",
      "valorServico": 100000
    }
  },
  "calculation": {
    "baseCalculo": 100000,
    "iss": {
      "aliquotaNominal": 5,
      "reducaoTransicaoPct": 0,
      "aliquota": 5,
      "valor": 5000,
      "retido": false
    },
    "rtc": {
      "framework": "LC 214/2025 (Reforma Tributária do Consumo — EC 132/2023)",
      "dbVersion": "V0073",
      "publishedDate": "2026-11-09",
      "normativeReference": "Nova tabela de Classificações Tributárias (IT 2025.002 v.1.71), publicada em 30/10/2026.",
      "ano": 2027,
      "faseTransicao": "CBS Plena + Extinção PIS/COFINS + IBS Teste (0,05% UF + 0,05% Mun)",
      "regime": "regime_regular",
      "classification": {
        "cClassTrib": "200046",
        "cst": "200",
        "cstDescricao": "Alíquota reduzida",
        "descricao": "Operações com bens imóveis",
        "tipoAliquota": "Padrão",
        "redCbsPct": 50,
        "redIbsPct": 50,
        "creditEligibleCbs": true,
        "creditEligibleIbs": true,
        "anexo": null,
        "fundamentacaoLegal": "LC 214/2025 — Art. 261",
        "matchedBy": "lc116",
        "matchedValue": "07.02"
      },
      "cbs": {
        "tributo": "CBS",
        "aliquotaNominal": 8.8,
        "reducaoPct": 50,
        "aliquota": 4.4,
        "valor": 4400,
        "creditoAdquirentePermitido": true,
        "memoria": "R$ 100000.00 * (8.8% * (1 - 50%)) = R$ 100000.00 * 4.4% = R$ 4400.00"
      },
      "ibs": {
        "tributo": "IBS",
        "aliquotaNominal": 0.1,
        "aliquotaUfNominal": 0.05,
        "aliquotaMunNominal": 0.05,
        "reducaoPct": 50,
        "aliquota": 0.05,
        "aliquotaUf": 0.025,
        "aliquotaMun": 0.025,
        "valor": 50,
        "valorUf": 25,
        "valorMun": 25,
        "creditoAdquirentePermitido": true,
        "memoria": "R$ 100000.00 * (0.1% * (1 - 50%)) = R$ 100000.00 * 0.05% = R$ 50.00 (UF R$ 25.00 + Mun R$ 25.00)"
      },
      "totalImpostosRtc": 4450,
      "aliquotaEfetivaTotalRtcPct": 4.45,
      "economiaReducaoLegal": {
        "cbsBrl": 4400,
        "ibsBrl": 50,
        "totalBrl": 4450
      },
      "ibscbsOfficialGroup": {
        "CST": "200",
        "cClassTrib": "200046",
        "gIBSCBS": {
          "vBC": "100000.00",
          "gIBSUF": {
            "pIBSUF": "0.0500",
            "gRed": {
              "pRedAliq": "50.00",
              "pAliqEfet": "0.0250"
            },
            "vIBSUF": "25.00"
          },
          "gIBSMun": {
            "pIBSMun": "0.0500",
            "gRed": {
              "pRedAliq": "50.00",
              "pAliqEfet": "0.0250"
            },
            "vIBSMun": "25.00"
          },
          "vIBS": "50.00",
          "gCBS": {
            "pCBS": "8.8000",
            "gRed": {
              "pRedAliq": "50.00",
              "pAliqEfet": "4.4000"
            },
            "vCBS": "4400.00"
          }
        }
      }
    },
    "valorLiquidoEstimado": 100000
  },
  "additionalExamples": {
    "saude60Pct2027": {
      "cClassTrib": "200029",
      "fundamentacao": "LC 214/2025 — Art. 130 (Anexo 3)",
      "totalRtcBrl": 178,
      "economiaReducaoBrl": 267
    },
    "cestaBasicaArrozNcm10063021": {
      "cClassTrib": "200003",
      "matchedBy": "ncm",
      "fundamentacao": "LC 214/2025 — Art. 125 (Anexo 1)",
      "totalRtcBrl": 0,
      "economiaReducaoBrl": 89
    },
    "simplesNacionalFatorR": {
      "regimeApuracao": "SN_PLENO",
      "anexo": "III",
      "faixa": 3,
      "rbt12": 480000,
      "fatorR": 0.31,
      "atividadeOficial": {
        "codigo": "09",
        "anexoSemFatorR": "V",
        "anexoComFatorR": "III",
        "issNoSimples": true,
        "rotulo": "III ou V",
        "descricao": "Prestação de serviços — Sujeitos ao Fator \"R\""
      },
      "aliquotaNominalDasPct": 13.5,
      "parcelaDeduzirBrl": 17640,
      "aliquotaEfetivaDasPct": 9.825,
      "valorDasEstimadoBrl": 1473.75,
      "creditoTransferivelB2B": {
        "cbsAliqEfetivaPct": 1.6113,
        "ibsAliqEfetivaPct": 3.1931,
        "vCbsTransferivelBrl": 241.7,
        "vIbsTransferivelBrl": 478.97,
        "totalCreditoTransferivelBrl": 720.67,
        "notaLegal": "LC 214/2025 Art. 41: No DAS único, o adquirente no Regime Regular só apropria crédito no limite da parcela de CBS/IBS efetivamente recolhida no Simples. Para transferir crédito integral, avalie opção de apuração regular por fora."
      }
    }
  },
  "previewHtmlUrl": "https://danfse.brunopompeo.com.br/sample/danfse.html",
  "tablesDiscoveryUrl": "https://danfse.brunopompeo.com.br/tables"
}