Skip to content
Fourohtwo

Brazil Tax & Payroll Engine v2

br-tax-payroll-calc-x402.architect-x402.workers.dev/calc

Brazil Tax & Payroll Engine v2 — Simples Nacional (Anexos I-V + Fator R), Progressive INSS/IRRF Payroll & B2B NFS-e Withholding Calculator

BaseAnswering
POSThttps://br-tax-payroll-calc-x402.architect-x402.workers.dev/calc

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://br-tax-payroll-calc-x402.architect-x402.workers.dev/calc", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"payroll":{"dependents":1,"grossSalary":8500},"simples":{"anexo":"auto","rbt12":480000,"payroll12m":145000,"monthlyRevenue":45000},"aiSummary":true,"nfseRetention":{"retainIss":true,"issRatePct":5,"serviceType":"consultoria_ti_contabil","invoiceAmount":10000}}),
});
console.log(await res.json());

Example input

{
  "payroll": {
    "dependents": 1,
    "grossSalary": 8500
  },
  "simples": {
    "anexo": "auto",
    "rbt12": 480000,
    "payroll12m": 145000,
    "monthlyRevenue": 45000
  },
  "aiSummary": true,
  "nfseRetention": {
    "retainIss": true,
    "issRatePct": 5,
    "serviceType": "consultoria_ti_contabil",
    "invoiceAmount": 10000
  }
}