# agentshield.live Receipt Line-Item Extraction

> agentshield.live Receipt Line-Item Extraction is a paid API for AI agents from agentshield.live, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-22).

Extracts merchant, date, currency, total, and line items from a base64-encoded photo of a receipt, invoice, or delivery note, returning structured JSON.

## Facts

- Endpoint: POST https://agentshield.live/lines?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentshield-live-receipt-line-item-extraction-989b6f2c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TudlsmJicNH8V2uJ6EudQ

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 agentshield-live-receipt-line-item-extraction-989b6f2c -d '<json body>'
```

Example prompt: I have a JPEG photo of my restaurant receipt — can you extract the merchant name, date, total, and all line items from it and give me back the structured data?

## When to prefer this

Use this endpoint when you have a single image of a receipt, invoice, or delivery note and need structured data — especially merchant, date, currency, total, and itemized line items — returned as JSON immediately. Prefer it over generic OCR services when you specifically need financial document structure. Note the service does not retain the image, making it suitable for privacy-sensitive workflows.

## Known failure modes

- Image is blurry or low resolution, causing incomplete or inaccurate extraction
- Non-receipt images (photos of people, landscapes) return empty or error responses
- Unsupported media_type value causes a validation error
- Truncated or malformed base64 string causes a decode failure
- Handwritten receipts may result in lower accuracy or missing fields
- Multi-page invoices cannot be handled as only one image is accepted per call

## How this service works

Call when a photo of a receipt, invoice, or delivery note must become merchant, date, currency, total, and line items. Returns JSON only. Does not keep the image.

## Output

A JSON object containing the extracted merchant name, transaction date, currency code, total amount, and an array of line items — each with a description and amount — derived from the receipt/invoice image. The image is not stored by the service.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "media_type": {
   "type": "string",
   "description": "image/jpeg, image/png, or image/webp."
  },
  "image_base64": {
   "type": "string",
   "description": "Base64-encoded photo of one receipt, without a data: prefix."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentshield-live-receipt-line-item-extraction-989b6f2c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentshield.live](https://www.zero.xyz/host/agentshield.live/llms.txt)
