# SAF-T D406 Validator for ANAF (Romania)

> SAF-T D406 Validator for ANAF (Romania) is a paid API for AI agents from einvoice.alexhub.uk, paid per call via x402, $0.5/call, status unknown (last checked 2026-11-02).

Validates a Romanian SAF-T D406 XML file against ANAF's official DUKIntegrator rules plus extended consistency checks before filing.

## Facts

- Endpoint: POST https://einvoice.alexhub.uk/v1/saft/validate?utm_source=zero.xyz
- Price: $0.5/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/saf-t-d406-validator-for-anaf-romania-c6002d3e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_q6UXHyUCKUjbLy4dUd8tb

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 saf-t-d406-validator-for-anaf-romania-c6002d3e -d '<json body>'
```

Example prompt: Can you validate my Romanian SAF-T D406 XML file before I submit it to ANAF? It's the monthly declaration — please check it with both the official ANAF rules and the extended consistency checks like balanced entries, VAT base-times-rate, and CUI/IBAN digit validation, and give me fixes in English for anything wrong.

## When to prefer this

Choose this endpoint when you need to pre-validate a Romanian SAF-T D406 XML (monthly, annual assets, or stock) before submitting to ANAF, especially when you want both the official DUKIntegrator checks AND deeper consistency checks (balanced entries, VAT arithmetic, roll-forwards, CUI/IBAN digits) that ANAF's own tool skips. Prefer it over manually running DUKIntegrator when you need bilingual fix guidance or automated pipeline integration.

## Known failure modes

- XML file exceeds 100 MB limit — request rejected
- Malformed or non-SAF-T XML body — parse error returned
- Network timeout for very large files near the size limit
- Invalid or missing required XML elements — error reported in findings
- Charge only applies if a D406 was actually validated; non-D406 XML may not be billed but returns an error

## How this service works

Check a Romanian SAF-T D406 file (monthly, annual assets, stock) before filing with ANAF: the official ANAF validator (DUKIntegrator) plus the consistency checks it skips - balanced entries, opening + movements = closing per account, partner balances, invoice totals, VAT = base x rate, VAT codes for the period, exchange rates, CUI/IBAN check digits, asset and stock roll-forwards. Each finding has a fix (RO/EN). XML as the request body, up to 100 MB. Charged only if a D406 was checked.

## Output

A structured report of all validation findings, each with a severity, description, and suggested fix in both Romanian and English. Covers ANAF DUKIntegrator rule violations plus extended checks: balanced accounting entries, opening + movements = closing per account, partner balances, invoice totals, VAT = base × rate, VAT code validity for the period, exchange rates, CUI/IBAN check digit errors, and asset and stock roll-forward discrepancies.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/saf-t-d406-validator-for-anaf-romania-c6002d3e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from einvoice.alexhub.uk](https://www.zero.xyz/host/einvoice.alexhub.uk/llms.txt)
