Calc
Brazil Tax & Payroll Engine v2 — Simples Nacional (Anexos I-V + Fator R), Progressive INSS/IRRF Payroll & B2B NFS-e Withholding Calculator
POST https://br-tax-payroll-calc-x402.architect-x402.workers.dev/calc
0.008 USDC on Base · payTo 0x20990fB239296a0A2d923C200Cb1C21187e2dA23
Status: unverified (live-probe)
Operator badge: embed this endpoint's live status badge — it reads "Verified Payable" only while the probe record backs it.
Settlement: direct to the seller's payTo — 0% HIVE402 take
Payment routes
{
"aiSummary": true,
"nfseRetention": {
"invoiceAmount": 10000,
"issRatePct": 5,
"retainIss": true,
"serviceType": "consultoria_ti_contabil"
},
"payroll": {
"dependents": 1,
"grossSalary": 8500
},
"simples": {
"anexo": "auto",
"monthlyRevenue": 45000,
"payroll12m": 145000,
"rbt12": 480000
}
}{
"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).",
"nfseRetentions": {
"csrfPccWithheld": 465,
"grossAmount": 10000,
"inssWithheld": 0,
"irrfWithheld": 150,
"issWithheld": 500,
"netPayable": 8885,
"totalWithheld": 1115
},
"payrollCalc": {
"fgtsEmployerCost": 680,
"grossSalary": 8500,
"inssDiscount": 951.63,
"irrfDiscount": 1104.23,
"irrfMethodUsed": "LEGAL_DEDUCTIONS",
"netSalary": 6444.14
},
"processingTimeMs": 6,
"simplesNacional": {
"appliedAnexo": "III",
"deductionBRL": 17640,
"effectiveRatePct": 9.825,
"estimatedDasBRL": 4421.25,
"faixa": 3,
"fatorR": 0.3021,
"fatorRQualified": true,
"nominalRatePct": 13.5,
"requestedAnexo": "auto"
},
"success": true
}HIVE Repair reads this endpoint's real probe record, writes the exact fix and re-probes until it shows verified · payable, or you get a full refund. Card or USDC.
Script Master Labs LLC · SDVOSB · Kinston, NC · Terms · Refunds · Privacy · Contact
SML network: ScriptMasterLabs — the main site · SML Dual Market — the human storefront · VA Ratings — VA disability ratings, free for veterans
Agent intel 
| Trust score | pending / 100 · breakdown |
|---|---|
| Probe uptime (30d) | — over 0 probes · daily |
| Avg 402 latency | — ms |
| Paid calls (30d, on-chain) | 0 calls · 0 buyers |
How to call
POST https://br-tax-payroll-calc-x402.architect-x402.workers.dev/calc · input in body · spec from live-challenge
Input schema
{
"type": "object",
"properties": {
"simples": {
"type": "object",
"description": "Calculate Brazilian Simples Nacional effective tax rate, DAS amount, and Fator R (28% payroll ratio optimization).",
"properties": {
"rbt12": {
"type": "number",
"description": "Trailing 12-month gross revenue (RBT12) in BRL"
},
"monthlyRevenue": {
"type": "number",
"description": "Current month revenue in BRL"
},
"anexo": {
"type": "string",
"enum": [
"I",
"II",
"III",
"IV",
"V",
"auto"
]
},
"payroll12m": {
"type": "number",
"description": "Trailing 12-month payroll expense in BRL (used for Fator R)"
}
},
"required": [
"rbt12",
"monthlyRevenue"
]
},
"payroll": {
"type": "object",
"description": "Calculate progressive INSS, IRRF (comparing legal deductions vs simplified discount), net salary, and employer FGTS.",
"properties": {
"grossSalary": {
"type": "number"
},
"dependents": {
"type": "number"
},
"otherDeductions": {
"type": "number"
},
"isProLabore": {
"type": "boolean"
}
},
"required": [
"grossSalary"
]
},
"nfseRetention": {
"type": "object",
"description": "Calculate B2B Brazilian service invoice withholdings (IRRF 1.5%, CSRF/PCC 4.65%, ISS, INSS 11%) and net payable.",
"properties": {
"invoiceAmount": {
"type": "number"
},
"issRatePct": {
"type": "number"
},
"retainIss": {
"type": "boolean"
},
"isSimplesNacional": {
"type": "boolean"
},
"serviceType": {
"type": "string",
"enum": [
"geral",
"consultoria_ti_contabil",
"limpeza_vigilancia"
]
}
},
"required": [
"invoiceAmount"
]
},
"aiSummary": {
"type": "boolean",
"description": "Generate an executive Brazilian tax & payroll brief via Cloudflare Workers AI (default: true)."
}
}
}Output schema
{
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"simplesNacional": {
"type": "object"
},
"payrollCalc": {
"type": "object"
},
"nfseRetentions": {
"type": "object"
},
"aiExecutiveBrief": {
"type": "string"
},
"processingTimeMs": {
"type": "number"
}
}
}curl -i -X POST 'https://br-tax-payroll-calc-x402.architect-x402.workers.dev/calc' \
-H 'content-type: application/json' -d '{"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}'
Agents: POST https://hive402.scriptmasterlabs.com/mcp → route_task / proxy_call · SDK /sdk/hive402.mjs
Try-it needs an exact USDC-on-Base route that is verified payable; use your own x402 client or proxy_call.