# BRAINIAC Accounts Payable Invoice Line Item Extractor

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

Extracts and validates invoice line items from a PDF, plain text, or CSV file, reconciling them against supplied invoice metadata.

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/accounts-payable/invoice-line-item-extract?utm_source=zero.xyz
- Price: $0.06/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-line-item-extractor-2b42dcde
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tlCB7v9pgvwUgJAxIrY8I

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-line-item-extractor-2b42dcde -d '<json body>'
```

Example prompt: Can you extract all the line items from this invoice PDF — I need each line's description, SKU, quantity, unit price, and amount pulled out as structured data so I can reconcile it with our purchase order?

## When to prefer this

Use this endpoint when you need to extract structured line item data from invoice documents (PDF, text, or CSV) in an automated accounts-payable pipeline without setting up a full-service account. It is ideal for pay-per-call agent workflows where you want to parse and optionally cross-check invoice lines against known metadata (totals, subtotals, tax, PO number) in a single call. Prefer it over general-purpose OCR or document parsers when you specifically need accounts-payable-aware extraction with built-in reconciliation findings.

## Known failure modes

- File too large or exceeds base64 size limit — request rejected
- Unsupported media type submitted — only PDF, plain text, and CSV accepted
- Invoice rows without a description and three trailing amounts are not parsed into line items
- Missing required file fields (mediaType or fileBase64) cause validation error
- Malformed date fields (invoiceDate, dueDate) fail JSON schema validation
- Rows that do not match the expected line-item pattern are silently skipped

## 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 JSON object containing an array of extracted line items (each with description, SKU, quantity, unitPrice, amount, and tax), a findings array noting any discrepancies or issues detected, a checkedAt timestamp, a list of limitations (e.g. no payment initiated, only supplied data compared), and a paymentInitiated boolean (always false).

## 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"
   }
  ],
  "findings": [],
  "checkedAt": "2026-11-02T19:00:00.000Z",
  "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.",
   "Line items are taken from the request or from text rows with a description and three trailing amounts. Rows that do not match are not turned into lines."
  ],
  "paymentInitiated": false
 }
}
```

## More

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