# BRAINIAC Accounts Payable — Payment Terms Extractor

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

Extracts payment terms (net days, discount percent, discount days) from an invoice document or structured invoice data and returns a structured summary with compliance findings.

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/accounts-payable/payment-terms-extract?utm_source=zero.xyz
- Price: $0.03/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-payment-terms-extractor-0f463426
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_l3jQXS3g9W4ukDTyxyfcy

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-payment-terms-extractor-0f463426 -d '<json body>'
```

Example prompt: Can you extract the payment terms from this invoice PDF? I need to know the net days, any early payment discount percentage and discount window, and whether there are any issues with the terms as stated.

## When to prefer this

Use this endpoint when you need to programmatically extract structured payment terms (net days, early pay discounts) from invoice PDFs or text files without setting up a full AP platform account. Ideal for agent-driven accounts-payable automation, invoice ingestion pipelines, or spot-checking supplier invoices for discount capture opportunities. Prefer it over manual parsing or general-purpose document extractors when you need a schema-consistent, finance-specific output with explicit findings and limitation disclosures. At $0.03/call with no account required, it suits high-volume per-invoice processing with pay-as-you-go economics via x402 on Base.

## Known failure modes

- File too large or unsupported media type — returns validation error
- Invoice document does not contain readable payment terms — status may indicate no terms found
- Malformed base64 file content — schema validation error
- Missing required file fields (mediaType, fileBase64) — 400-level error
- Ambiguous or conflicting terms in document — findings array contains warnings but partial result returned
- Payment not completed on Base via x402 — 402 Payment Required response, no result returned

## 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: the extracted paymentTerms string (e.g. '2/10 Net 30'), netDays, discountDays, discountPercent, basis (e.g. 'discount_net'), status ('extracted' or similar), checkedAt timestamp, evidence description, an array of findings with code/detail/severity for any compliance warnings, and a limitations list clarifying what was and was not performed.

## 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": {
  "basis": "discount_net",
  "status": "extracted",
  "netDays": 30,
  "evidence": "Supplied on the request.",
  "findings": [
   {
    "code": "discount_not_applied",
    "detail": "The terms state a discount. This check did not change the invoice total.",
    "severity": "warning"
   }
  ],
  "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.",
   "…"
  ],
  "discountDays": 10,
  "paymentTerms": "2/10 Net 30",
  "discountPercent": 2,
  "paymentInitiated": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-accounts-payable-payment-terms-extractor-0f463426/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)
