# falcon.sol Bank Statement & Document Extraction

> falcon.sol Bank Statement & Document Extraction is a paid API for AI agents from falcon-docs.falcon-sol.workers.dev, paid per call via x402, $0.4/call, status unknown (last checked 2026-10-31).

Extracts structured transactions, underwriting metrics, and financial fields from bank statement PDFs, invoices, receipts, purchase orders, and W-9s.

## Facts

- Endpoint: POST https://falcon-docs.falcon-sol.workers.dev/v1/bank-statement?utm_source=zero.xyz
- Price: $0.4/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/falcon-sol-bank-statement-document-extraction-b9b942bb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Grmwvrdg8a3SSFuWg_Rcm

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 falcon-sol-bank-statement-document-extraction-b9b942bb -d '<json body>'
```

Example prompt: Can you extract all the transactions and underwriting metrics from this bank statement PDF — https://example.com/statement.pdf — and give me the results as JSON, including the average daily balance, NSF count, and any debt positions?

## When to prefer this

Choose this endpoint when you need structured financial data extracted from PDF documents — especially bank statements requiring underwriting metrics (average daily balance, revenue deposits, NSF counts, debt positions) for lending decisions. Also prefer it for invoice, receipt, W-9, or purchase order extraction with confidence scores. It is purpose-built for financial document intelligence with lending-specific analytics, unlike generic PDF-to-text converters. Use when you need machine-readable JSON, CSV, or XLSX output with per-field confidence, not just raw text.

## Known failure modes

- PDF URL is not publicly accessible or returns non-200 — extraction fails
- PDF is password-protected or encrypted — cannot parse
- Low-quality scanned PDF with poor OCR-ability — reduced confidence scores or missing fields
- Incorrect document type specified — may return empty or mismatched fields
- Base64 payload malformed or truncated — parse error
- Document is not a supported type — falls back to generic extraction with lower accuracy
- Network timeout fetching remote PDF URL

## How this service works

Bank statement extraction for agents: transactions and underwriting metrics from bank-statement PDFs, plus invoice/receipt/W-9 extraction. Paid per call with x402.

## Output

Returns a JSON object containing: a list of dated transactions with amount, balance, category, and description; extracted document fields (e.g. opening_balance) with confidence scores; underwriting metrics including average daily balance, average monthly revenue deposits, NSF/overdraft count, debt positions (lender, count, total, frequency, typical payment), and integrity flags; plus the detected document_type.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "description": "Public https URL of a PDF"
  },
  "type": {
   "enum": [
    "auto",
    "invoice",
    "receipt",
    "purchase_order",
    "w9",
    "bank_statement",
    "generic"
   ],
   "type": "string"
  },
  "format": {
   "enum": [
    "json",
    "csv",
    "xlsx"
   ],
   "type": "string"
  },
  "file_base64": {
   "type": "string",
   "description": "Base64 PDF (alternative to url, or send multipart 'file' / raw application/pdf)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "fields": {
   "opening_balance": {
    "value": 15210.4,
    "confidence": 0.99
   }
  },
  "metrics": {
   "debt_positions": {
    "ondeck": {
     "count": 21,
     "total": 8526,
     "frequency": "daily",
     "typical_payment": 406
    }
   },
   "integrity_flags": [],
   "nsf_overdraft_count": 2,
   "average_daily_balance": 12093.11,
   "avg_monthly_revenue_deposits": 45029.61
  },
  "transactions": [
   {
    "date": "2026-04-01",
    "amount": 2630.27,
    "balance": 17840.67,
    "category": "revenue_deposit",
    "description": "SQUARE INC DEPOSIT"
   }
  ],
  "document_type": "bank_statement"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/falcon-sol-bank-statement-document-extraction-b9b942bb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from falcon-docs.falcon-sol.workers.dev](https://www.zero.xyz/host/falcon-docs.falcon-sol.workers.dev/llms.txt)
