# BRAINIAC Accounts Payable — Payment Due Date Calculator

> BRAINIAC Accounts Payable — Payment Due Date Calculator 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).

Calculates or validates the payment due date on an invoice by parsing invoice data or an uploaded document, checking stated terms against the due date, and flagging discrepancies.

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/accounts-payable/payment-due-date-calculate?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-due-date-calculator-2c762837
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_k-TYF-vF_dTqv-WUJ4xef

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-due-date-calculator-2c762837 -d '<json body>'
```

Example prompt: I have an invoice PDF dated October 1 2026 with Net 30 terms but the stated due date is November 15 — can you calculate what the correct due date should be and flag any discrepancy?

## When to prefer this

Use this endpoint when you need to programmatically verify or calculate invoice payment due dates in an accounts payable workflow, especially when checking whether a stated due date matches the invoice's own payment terms. It's ideal for catching due-date discrepancies before approving payment, handling invoices as uploaded files (PDF, text, CSV) or structured data, and operating without setting up a full AP system account. It does not initiate or approve payments.

## Known failure modes

- Malformed or unreadable file (unsupported format or corrupted base64) — returns error
- Invoice date absent and cannot be parsed from document — calculation impossible
- Payment terms not stated in invoice and not provided in input — cannot calculate due date
- File exceeds maximum allowed size — rejected
- Missing required mediaType field when file is provided — validation error
- Ambiguous or conflicting date formats in document — may produce warning finding

## 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 containing the calculated or validated payment due date, the basis of that date (e.g. 'stated_due_date' or 'calculated_from_terms'), the detected payment terms (e.g. 'Net 30'), the invoice date, an array of findings with severity levels (warnings for mismatches), a checkedAt timestamp, and a list of limitations (e.g. no payment is initiated). Also includes 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": {
  "basis": "stated_due_date",
  "status": "stated",
  "dueDate": "2026-11-15",
  "findings": [
   {
    "code": "due_date_differs_from_terms",
    "detail": "The stated due date 2026-11-15 differs from 2026-10-31, which is the invoice date plus the stated Net 30 terms.",
    "severity": "warning"
   }
  ],
  "checkedAt": "2026-11-02T19:00:00.000Z",
  "invoiceDate": "2026-10-01",
  "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.",
   "A due date is stated on the invoice or calculated from the invoice date plus terms that were actually stated. This does not schedule or release a payment."
  ],
  "paymentTerms": "Net 30",
  "approvesPayment": false,
  "paymentInitiated": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-accounts-payable-payment-due-date-calculator-2c762837/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)
