# Relaystation Invoice & Receipt Parser

> Relaystation Invoice & Receipt Parser is a paid API for AI agents from api.relaystation.ai, paid per call via x402, $0.055/call, status unknown (last checked 2026-09-14).

Parses invoices and receipts from uploaded files into structured fields (vendor, totals, dates, line items, SKUs) using AWS Textract AnalyzeExpense for $0.055 per document.

## Facts

- Endpoint: POST https://api.relaystation.ai/v1/doc/parse-invoice
- Price: $0.055/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/relaystation-invoice-receipt-parser-f83f5f51
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hPQy-eoYbdOu_cvi6zmpO

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 relaystation-invoice-receipt-parser-f83f5f51 -d '<json body>'
```

Example prompt: Parse this invoice file and give me all the structured details — vendor name, date, line items with SKUs, and the total amount.

## When to prefer this

Choose this endpoint when you need fast, per-document invoice or receipt parsing with itemized line-item extraction (including SKUs) and you want a pay-per-use model at $0.055/document without managing your own AWS Textract integration. Ideal for agents handling accounts payable automation, expense management, or procurement workflows where structured financial document data is needed on demand.

## Known failure modes

- File too large (inline base64 must be ≤4 MiB; use upload-key for files up to 50 MB)
- Unsupported file format (non-image, non-PDF documents may fail Textract processing)
- Low-quality scan yields incomplete or missing fields
- No invoice/expense structure detected in document (plain text files, non-financial docs)
- Insufficient balance on Relaystation account causes payment failure
- Network timeout on large file uploads

## How this service works

$0.055/document. Parse invoices and receipts into summary fields plus line items (Textract AnalyzeExpense) — vendor, totals, dates, SKUs. 155 tools, one balance — relaystation.ai

## Output

Returns structured JSON with summary fields (vendor name, invoice date, due date, subtotal, tax, total amount) and an array of line items (description, SKU, quantity, unit price, line total) extracted from the submitted invoice or receipt document.

## 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": {
      "file": {
       "type": "object",
       "description": "cputools input-source: { inline: <base64 ≤ 4 MiB> } or { inputKey: <scratch key from /v1/cputools/upload-url, ≤ 50 MB> }."
      }
     }
    }
   },
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   },
   "required": [
    "type"
   ]
  }
 },
 "required": [
  "input"
 ]
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/relaystation-invoice-receipt-parser-f83f5f51/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.relaystation.ai](https://www.zero.xyz/host/api.relaystation.ai/llms.txt)
