# BRAINIAC Invoice Tax Validator

> BRAINIAC Invoice Tax Validator is a paid API for AI agents from www.brainiac.software, paid per call via x402, $0.04/call, status unknown (last checked 2026-11-17).

Validates that tax amounts on an invoice are correct given the stated tax rate, subtotal, and line items, and reports any discrepancies or rule violations.

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/accounts-payable/invoice-tax-validate?utm_source=zero.xyz
- Price: $0.04/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brainiac-invoice-tax-validator-68137840
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_idmz8oSVuOAgPY5iCf9XI

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 brainiac-invoice-tax-validator-68137840 -d '<json body>'
```

Example prompt: Can you check if the tax on this vendor invoice is correct? The subtotal is $50.00, the tax shown is $12.00, and the stated tax rate is 20% — flag any mismatches or errors.

## When to prefer this

Use this endpoint when you need a fast, accountless, pay-per-call check that the tax amount on an accounts payable invoice matches the stated tax rate applied to the stated subtotal. It is ideal for automated AP pipelines where you want to catch tax arithmetic errors or mismatches before approving payment, without integrating a full ERP or tax compliance platform. It supports structured invoice data as well as file uploads (PDF, CSV, plain text) for flexible ingestion.

## Known failure modes

- Tax rate and subtotal not provided — validator cannot compute expected tax without both values
- Invoice file is malformed or unreadable — returns a parsing error
- Tax amount within acceptable rounding tolerance — may flag a mismatch that is due to rounding
- Complex multi-jurisdiction tax rules not supported — validator only checks against a single stated rate and subtotal
- File exceeds base64 size limits — request rejected
- Missing required file mediaType or fileBase64 fields — schema validation error
- Network or payment failure via x402 — call not completed

## How this service works

Pay-per-call APIs for AI agents: OFAC sanctions screening, compliance checks, token security, and Base chain data via x402. No account. Fixed USDC price. MCP-ready.

## Output

Returns a JSON object with a validation status ('ok' or 'error'), the tax amount from the invoice, the expected tax amount, the tax rate used, a list of findings (each with a code, detail message, and severity), a timestamp of when the check was performed, a flag indicating whether payment was initiated (always false), and a list of limitations explaining what was and was not checked.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "file": {
   "type": "object",
   "required": [
    "mediaType",
    "fileBase64"
   ],
   "properties": {
    "filename": {
     "type": "string",
     "maxLength": 180,
     "minLength": 1
    },
    "mediaType": {
     "enum": [
      "application/pdf",
      "text/plain",
      "text/csv"
     ],
     "type": "string"
    },
    "fileBase64": {
     "type": "string",
     "maxLength": 12000000,
     "minLength": 1
    }
   },
   "additionalProperties": false
  },
  "invoice": {
   "type": "object",
   "properties": {
    "tax": {
     "type": "number",
     "maximum": 1000000000000,
     "minimum": -1000000000000
    },
    "lines": {
     "type": "array",
     "items": {
      "type": "object",
      "required": [
       "description"
      ],
      "properties": {
       "sku": {
        "type": "string",
        "maxLength": 80,
        "minLength": 1
       },
       "tax": {
        "type": "number",
        "maximum": 1000000000000,
        "minimum": -1000000000000
       },
       "amount": {
        "type": "number",
        "maximum": 1000000000000,
        "minimum": -1000000000000
       },
       "quantity": {
        "type": "number",
        "maximum": 1000000000,
        "minimum": -1000000000
       },
       "unitPrice": {
        "type": "number",
        "maximum": 1000000000000,
        "minimum": -1000000000000
       },
       "description": {
        "type": "string",
        "maxLength": 300,
        "minLength": 1
       }
      },
      "additionalProperties": false
     },
     "maxItems": 200
    },
    "total": {
     "type": "number",
     "maximum": 1000000000000,
     "minimum": -1000000000000
    },
    "dueDate": {
     "type": "string",
     "format": "date",
     "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
    },
    "taxRate": {
     "type": "number",
     "maximum": 100,
     "minimum": 0
    },
    "currency": {
     "type": "string",
     "pattern": "^[A-Za-z]{3}$"
    },
    "discount": {
     "type": "number",
     "maximum": 1000000000000,
     "minimum": -1000000000000
    },
    "poNumber": {
     "type": "string",
     "maxLength": 80,
     "minLength": 1
    },
    "shipping": {
     "type": "number",
     "maximum": 1000000000000,
     "minimum": -1000000000000
    },
    "subtotal": {
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "tax": 12,
  "status": "error",
  "taxRate": 20,
  "findings": [
   {
    "code": "tax_amount_mismatch",
    "detail": "The tax amount 12.00 does not equal 10.00, which is 20% of 50.00. No other tax rule was applied.",
    "severity": "error"
   }
  ],
  "checkedAt": "2026-11-02T19:00:00.000Z",
  "expectedTax": 10,
  "limitations": [
   "No payment was initiated.",
   "Tax rules, purchase orders, supplier records, and payment terms are not invented when they are absent.",
   "Only the invoice, purchase order, and prior invoices in this request are compared.",
   "The tax amount is checked only against a rate and subtotal that were supplied or printed."
  ],
  "paymentInitiated": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-invoice-tax-validator-68137840/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.brainiac.software](https://www.zero.xyz/host/www.brainiac.software/llms.txt)
