# ParseDoc Receipt & Invoice Parser

> ParseDoc Receipt & Invoice Parser is a paid API for AI agents from parsedoc.wrapper-agency.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Extracts structured JSON data from receipt and invoice images or PDFs, returning merchant details, line items, totals, tax, and more.

## Facts

- Endpoint: POST https://parsedoc.wrapper-agency.com/api/v1/parse
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/parsedoc-receipt-invoice-parser-162954ff
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yNGKZz9ZJGnhmC1nt6wDc

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 parsedoc-receipt-invoice-parser-162954ff -d '<json body>'
```

Example prompt: Can you parse this Starbucks receipt image and pull out the merchant name, line items, tax, tip, and total as structured JSON? Here's the image URL: https://example.com/receipt.jpg

## When to prefer this

Choose this endpoint when you need to extract structured financial data from receipt or invoice images/PDFs without managing API keys or subscriptions. Ideal for expense automation, bookkeeping pipelines, or any agent workflow that needs to process ad-hoc documents pay-per-use at $0.02/page via USDC on Base.

## Known failure modes

- Unreadable or blurry image returns low confidence score or warnings array populated
- Unsupported file format returns error response
- Payment failure (insufficient USDC) returns 402 Payment Required
- Missing or corrupt PDF returns parse error
- Non-receipt/invoice document may return incorrect document_type with low confidence

## How this service works

Turn any receipt or invoice image/PDF into clean structured JSON. Pay per call with USDC (x402 on Base) — no API key, no subscription. $0.02/page.

## Output

Returns a JSON object with ok:true and a document object containing: merchant info (name, address, phone, tax_id), date, time, line_items (description, quantity, unit_price, total), subtotal, tax (rate and amount), tip, total, currency, payment_method, document_type, invoice_number, category, confidence score (0–1), and any warnings.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "image_url": {
   "type": "string",
   "description": "HTTP(S) URL of the receipt/invoice (image or PDF, max 8MB)"
  },
  "media_type": {
   "enum": [
    "image/png",
    "image/jpeg",
    "image/webp",
    "image/gif",
    "application/pdf"
   ],
   "type": "string",
   "description": "Required when using image_base64"
  },
  "image_base64": {
   "type": "string",
   "description": "Base64-encoded document (alternative to image_url)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "document": {
   "tax": [
    {
     "rate": 8.875,
     "amount": 1.06
    }
   ],
   "tip": 2,
   "date": "2026-06-09",
   "time": "12:41",
   "total": 15.01,
   "category": "restaurant",
   "currency": "USD",
   "merchant": {
    "name": "Starbucks Coffee",
    "phone": null,
    "tax_id": null,
    "address": "1500 Market St"
   },
   "subtotal": 11.95,
   "warnings": [],
   "confidence": 0.98,
   "line_items": [
    {
     "total": 5.45,
     "quantity": 1,
     "unit_price": 5.45,
     "description": "Caffe Latte Grande"
    }
   ],
   "document_type": "receipt",
   "invoice_number": null,
   "payment_method": "VISA"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/parsedoc-receipt-invoice-parser-162954ff/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from parsedoc.wrapper-agency.com](https://www.zero.xyz/host/parsedoc.wrapper-agency.com/llms.txt)
