# Subpay Invoice & Receipt Parser with Arithmetic Validation

> Subpay Invoice & Receipt Parser with Arithmetic Validation is a paid API for AI agents from subpay.ai, paid per call via x402, $0.04/call, status unknown (last checked 2026-10-21).

Extracts structured JSON data from invoice, bill, or receipt PDFs (vendor, customer, line items, taxes, totals) and validates the arithmetic across all figures

## Facts

- Endpoint: POST https://subpay.ai/api/v1/invoice?utm_source=zero.xyz
- Price: $0.04/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/subpay-invoice-receipt-parser-with-arithmetic-validation-7e473123
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_onB5-RdDSULb2WQCS7vH1

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 subpay-invoice-receipt-parser-with-arithmetic-validation-7e473123 -d '<json body>'
```

Example prompt: Can you parse this vendor invoice PDF and pull out all the line items, tax, total, and balance due as structured JSON — and flag any arithmetic errors where the numbers don't add up?

## When to prefer this

Choose this endpoint when you need both structured data extraction AND arithmetic validation from invoice or receipt PDFs in a single call. It is purpose-built for financial documents (invoices, bills, receipts) and uniquely reports exactly which calculations are wrong, making it ideal for accounts payable automation, expense auditing, or payment approval workflows. Prefer this over generic OCR or document extraction tools when arithmetic correctness verification is required alongside data extraction.

## Known failure modes

- PDF exceeds 25-page limit — document rejected
- Unreadable or scanned-only PDF with no extractable text — poor extraction quality
- Non-invoice document submitted — fields may be missing or incorrect
- Corrupted or password-protected PDF — parse failure
- Ambiguous currency or locale formatting — arithmetic validation may flag false positives

## How this service works

Reads invoices, bills and receipts from PDF into structured JSON — vendor, customer, dates, PO, line items, discount, tax, shipping, total, balance due — and checks the arithmetic: quantity × unit price, lines to subtotal, tax rate, total and balance due. The response says exactly which figures don't add up. $0.04 per page (up to 25 pages), quoted per document.

## Output

A structured JSON object containing extracted fields from the invoice or receipt (vendor info, customer info, dates, PO number, line items with quantities and unit prices, discount, tax, shipping, subtotal, total, and balance due), plus an arithmetic validation report identifying exactly which figures don't add up (e.g. line extension errors, subtotal mismatches, incorrect tax rate application, total discrepancies).

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/subpay-invoice-receipt-parser-with-arithmetic-validation-7e473123/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from subpay.ai](https://www.zero.xyz/host/subpay.ai/llms.txt)
