{
  "sample": true,
  "note": "Representative sample output (free). Call POST /calc via x402 for live execution.",
  "endpoint": "https://br-tax-payroll-calc-x402.architect-x402.workers.dev/calc",
  "method": "POST",
  "network": "eip155:8453",
  "priceUsdc": "0.008",
  "inputExample": {
    "type": "http",
    "method": "POST",
    "bodyType": "json",
    "body": {
      "simples": {
        "rbt12": 480000,
        "monthlyRevenue": 45000,
        "anexo": "auto",
        "payroll12m": 145000
      },
      "payroll": {
        "grossSalary": 8500,
        "dependents": 1
      },
      "nfseRetention": {
        "invoiceAmount": 10000,
        "issRatePct": 5,
        "retainIss": true,
        "serviceType": "consultoria_ti_contabil"
      },
      "aiSummary": true
    }
  },
  "output": {
    "success": true,
    "simplesNacional": {
      "requestedAnexo": "auto",
      "appliedAnexo": "III",
      "fatorR": 0.3021,
      "fatorRQualified": true,
      "faixa": 3,
      "nominalRatePct": 13.5,
      "deductionBRL": 17640,
      "effectiveRatePct": 9.825,
      "estimatedDasBRL": 4421.25
    },
    "payrollCalc": {
      "grossSalary": 8500,
      "inssDiscount": 951.63,
      "irrfMethodUsed": "LEGAL_DEDUCTIONS",
      "irrfDiscount": 1104.23,
      "netSalary": 6444.14,
      "fgtsEmployerCost": 680
    },
    "nfseRetentions": {
      "grossAmount": 10000,
      "irrfWithheld": 150,
      "csrfPccWithheld": 465,
      "issWithheld": 500,
      "inssWithheld": 0,
      "totalWithheld": 1115,
      "netPayable": 8885
    },
    "aiExecutiveBrief": "Fator R de 30,21% enquadrou a empresa no Anexo III (alíquota efetiva 9,83%, DAS R$ 4.421,25). Retenções na NFS-e somam R$ 1.115,00 (líquido R$ 8.885,00).",
    "processingTimeMs": 6
  }
}