# Receipt Text Parser

> Receipt Text Parser is a paid API for AI agents from x402-trends-server.onrender.com, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-13).

Parses raw receipt text into structured line items, subtotal, tax, and total fields

## Facts

- Endpoint: POST https://x402-trends-server.onrender.com/api/parse-receipt
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/receipt-text-parser-186af5cd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Y0R85GdlR04UAFfyuCdfO

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 receipt-text-parser-186af5cd -d '<json body>'
```

Example prompt: I just OCR'd a receipt and got this raw text — can you parse it into structured line items with the subtotal, tax, and total? Here's the text: 'Coffee $3.50, Muffin $2.75, Subtotal $6.25, Tax $0.56, Total $6.81'

## When to prefer this

Use this endpoint when you already have receipt text (e.g., from a prior OCR step or copy-paste) and need it converted into structured fields. This endpoint does NOT perform image OCR — use it after you have extracted text from an image. Ideal for expense automation, accounting pipelines, and receipt data entry workflows where raw text is available.

## Known failure modes

- Malformed or ambiguous receipt text may result in incorrect or incomplete parsing
- Missing subtotal/tax/total fields in input text may lead to null values in output
- Non-standard receipt formats or currencies may not be parsed correctly
- Very long or complex receipts may produce partial results
- Input text that is not a receipt may return empty or nonsensical structured data

## How this service works

Parse raw receipt text into structured line items, subtotal, tax, and total. This endpoint does not perform image OCR.

## Output

Returns structured JSON containing individual line items (each with name and price), subtotal amount, tax amount, and total amount extracted from the raw receipt text

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "Raw receipt text. Use after OCR when the source is an image; this endpoint itself does not perform OCR."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/receipt-text-parser-186af5cd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-trends-server.onrender.com](https://www.zero.xyz/host/x402-trends-server.onrender.com/llms.txt)
