# BRAINIAC Accounts Payable Invoice Review

> BRAINIAC Accounts Payable Invoice Review is a paid API for AI agents from www.brainiac.software, paid per call via x402, $0.12/call, status unknown (last checked 2026-11-11).

Reviews an invoice for errors, math discrepancies, PO matching, duplicate detection, tax validation, and anomalies without initiating payment

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/accounts-payable/review?utm_source=zero.xyz
- Price: $0.12/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brainiac-accounts-payable-invoice-review-c7955ee7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rJ7xy3TdW27-OvIzra2IV

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-accounts-payable-invoice-review-c7955ee7 -d '<json body>'
```

Example prompt: Can you review this invoice from Northwind Paper Ltd (INV-100, $55 total, due 2026-10-31, PO-55) and check it for any errors, mismatched totals, duplicate entries, or tax issues before I approve payment?

## When to prefer this

Use this endpoint when an AI agent needs to programmatically audit an invoice before human or automated approval — especially when you want structured, per-section findings (header, totals, PO match, tax, duplicates, anomalies) returned as JSON without storing any data or initiating payment. It is well-suited for accounts payable automation pipelines where no vendor account setup is desired and pay-per-call billing via USDC on Base (x402) is acceptable. Prefer this over general-purpose document extraction tools when you specifically need invoice validation logic (math checks, PO cross-referencing, duplicate detection) rather than raw data extraction.

## Known failure modes

- Invalid or corrupted base64 file encoding returns a parse error
- Unsupported file media type returns a schema validation error
- Invoice total fields missing or non-numeric cause computation failures
- File exceeds 12MB base64 size limit returns payload too large error
- Malformed date fields (wrong format) cause validation rejection
- Missing required fields (e.g. no description on a line item) returns schema error
- Payment failure via x402 results in 402 response with no review performed

## 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

A structured JSON object containing: extracted invoice header fields (supplier, dates, totals, PO), reconciled line items with source annotations, per-section status checks (header, lines, totals, duplicates, PO, tax, terms, due date, anomalies), a list of findings with severity, error/warning counts, an overall assessment label (e.g. 'no_issues_observed'), a plain-English summary, limitations disclaimer, and boolean flags confirming no payment was approved or initiated.

## 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": {
  "lines": [
   {
    "sku": "RM-1",
    "tax": 0,
    "amount": 25,
    "source": "supplied",
    "quantity": 2,
    "unitPrice": 12.5,
    "description": "Paper ream"
   },
   {
    "sku": "INK-2",
    "tax": 0,
    "amount": 30,
    "source": "supplied",
    "quantity": 1,
    "unitPrice": 30,
    "description": "Ink cartridge"
   }
  ],
  "counts": {
   "error": 0,
   "warning": 0,
   "unavailable": 0
  },
  "invoice": {
   "tax": 0,
   "total": 55,
   "dueDate": "2026-10-31",
   "taxRate": 0,
   "currency": "USD",
   "discount": 0,
   "poNumber": "PO-55",
   "shipping": 0,
   "subtotal": 55,
   "invoiceDate": "2026-10-01",
   "paymentTerms": "Net 30",
   "supplierName": "Northwind Paper Ltd",
   "invoiceNumber": "INV-100"
  },
  "summary": "No errors, warnings, or missing checks were found in the supplied invoice and comparisons. This review does not release or initiate a payment.",
  "findings": [],
  "sections": [
   {
    "name": "header",
    "status": "extracted"
   },
   {
    "name": "lines",
    "status": "extracted"
   },
   {
    "name": "totals",
    "status": "matched"
   },
   {
    "name": "duplicates",
    "status": "no_duplicate_in_supplied_set"
   },
   {
    "name": "purchase_order",
    "status": "matched"
   },
   {
    "name": "tax",
    "status": "matched"
   },
   {
    "name": "terms",
    "status": "extracted"
   },
   {
    "name": "due",
    "status": "stated"
   },
   {
    "name": "anomalies",
    "status": "no_issues_observed"
   }
  ],
  "checkedAt": "2026-11-02T19:00:00.000Z",
  "assessment": "no_issues_observed",
  "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 review repeats the individual checks in this request. A result with no issues is not an approval to pay."
  ],
  "approvesPayment": false,
  "paymentInitiated": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-accounts-payable-invoice-review-c7955ee7/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)
