# zaref South African Payroll Calculator

> zaref South African Payroll Calculator is a paid API for AI agents from zaref.dev, paid per call via x402, $0.1/call, status unknown (last checked 2026-10-23).

Calculates South African PAYE tax, UIF, and net take-home pay for a given gross monthly salary, applying current SARS tax tables, medical aid credits, and retirement deductions.

## Facts

- Endpoint: POST https://zaref.dev/v1/answers/payroll?utm_source=zero.xyz
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/zaref-south-african-payroll-calculator-8ec09002
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HLyiDIqRxq7a8FMPR3CnK

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability zaref-south-african-payroll-calculator-8ec09002 -d '<json body>'
```

Example prompt: What would my monthly take-home pay be in South Africa if my gross salary is R35,000, I'm 35 years old, I contribute 7.5% to my pension, and I have 2 people on my medical aid?

## When to prefer this

Choose this endpoint when you need accurate, cited South African payroll calculations using current SARS tax tables, medical aid credits, and UIF rates — especially when building South Africa-specific HR tools, chatbots, or financial planning agents. Prefer this over generic salary calculators when South African compliance (PAYE, UIF, national minimum wage) is required.

## Known failure modes

- Missing required monthly_gross field returns validation error
- Negative or zero monthly_gross may return an error or unexpected result
- Very high salary inputs may hit edge cases in tax bracket calculation
- Invalid data types (e.g. string instead of number) will cause schema validation failure
- Stale tax tables if SARS rates change mid-year before API is updated

## How this service works

South African reference data as clean, cited JSON: fuel prices, interest rates, FX and bond yields, tax tables, tariffs, wages and grants, live government tenders and crypto prices, plus calculators. Built for AI agents and applications.

## Output

Returns a structured JSON object with a full payroll breakdown including PAYE tax amount, UIF deduction, medical aid tax credits, pension deduction, and calculated net take-home pay, all computed against current SARS tax tables. May also include a national minimum wage compliance flag if hours_per_week is supplied.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "monthly_gross"
 ],
 "properties": {
  "age": {
   "type": "number",
   "description": "number, default 30"
  },
  "monthly_gross": {
   "type": "number",
   "description": "number, required: gross monthly salary in ZAR"
  },
  "hours_per_week": {
   "type": "number",
   "description": "number, default 0: supply to add a national-minimum-wage compliance check"
  },
  "medical_members": {
   "type": "number",
   "description": "number, default 0: medical scheme members for the fees credit"
  },
  "pension_percent": {
   "type": "number",
   "description": "number, default 0: employee retirement contribution as % of gross"
  },
  "medical_dependants": {
   "type": "number",
   "description": "number, default 0: additional dependants"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/zaref-south-african-payroll-calculator-8ec09002/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from zaref.dev](https://www.zero.xyz/host/zaref.dev/llms.txt)
