# Strale Invoice Extract

> Strale Invoice Extract is a paid API for AI agents from api.strale.io, paid per call via x402, $0.54/call, status unknown (last checked 2026-09-15).

Extracts structured data fields from invoice images or PDFs submitted as a URL or base64-encoded file

## Facts

- Endpoint: POST https://api.strale.io/x402/v2/invoice-extract
- Price: $0.54/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/strale-invoice-extract-c6328f60
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_OYRSFl_zsZeSjsfYH-TJI

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 strale-invoice-extract-c6328f60 -d '<json body>'
```

Example prompt: Can you extract all the structured data from this invoice — vendor name, invoice number, line items, totals, and due date? Here's the PDF: https://invoices.example.com/inv-20240512.pdf

## When to prefer this

Choose this endpoint when you need to programmatically extract structured fields from invoice documents (PDFs or images) and require a verifiable audit trail with cryptographic chain hashing. Ideal for accounts payable automation, expense reconciliation, and compliance workflows where both accuracy and auditability matter. Prefer over generic OCR services when you specifically need invoice-domain intelligence and structured output rather than raw text.

## Known failure modes

- Unreadable or low-quality scan causes incomplete extraction
- URL is inaccessible or returns a non-document response
- Base64 payload is malformed or corrupted
- File format is unsupported beyond PDF and common image types
- Invoice layout is highly non-standard causing field misidentification
- Network timeout if source URL is slow to respond

## How this service works

The trust layer for AI agents — 250+ independently tested data capabilities across 27 countries. Execute capabilities via REST, MCP, A2A, or x402 micropayments. Every call returns an audit record with cryptographic chain hashing.

## Output

Returns structured JSON containing extracted invoice fields such as vendor name, buyer details, invoice number, issue and due dates, line items with descriptions and amounts, subtotals, tax, and grand total, along with a cryptographic audit record for verification and traceability.

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ]
    },
    "bodyType": {
     "type": "string",
     "enum": [
      "json",
      "form-data",
      "text"
     ]
    },
    "body": {
     "type": "object",
     "properties": {
      "url": {
       "type": "string",
       "description": "URL to invoice image or PDF"
      },
      "base64": {
       "type": "string",
       "description": "Base64-encoded invoice file"
      }
     }
    }
   },
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "additionalProperties": false
  }
 },
 "required": [
  "input"
 ]
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/strale-invoice-extract-c6328f60/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.strale.io](https://www.zero.xyz/host/api.strale.io/llms.txt)
