# Strale Receipt Categorizer

> Strale Receipt Categorizer is a paid API for AI agents from api.strale.io, paid per call via x402, $0.054001/call, status unknown (last checked 2026-09-13, last successful call 2026-05-01).

Extracts and categorizes structured data from a receipt image or text, returning vendor, date, amount, tax, currency, expense category, and line items ready for expense reports.

## Facts

- Endpoint: GET https://api.strale.io/x402/receipt-categorize
- Price: $0.054001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Last successful call: 2026-05-01
- Success rate: 100% of calls made through Zero
- Activations on Zero: 673
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-strale-io-aefdb68a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_UsP_Y40ReFBczIK2G7ZXT

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 api-strale-io-aefdb68a
```

Example prompt: Can you extract the vendor, date, total, tax, currency, and expense category from this receipt? Here's the image URL: https://example.com/receipts/lunch-invoice.jpg

## When to prefer this

Use this endpoint when you have a receipt (as an image URL, base64 string, or raw text) and need structured fields — vendor, date, amount, tax, currency, expense category, line items — without building your own OCR or parsing pipeline. Ideal for automating expense report workflows or bookkeeping integrations.

## Known failure modes

- Image URL is inaccessible or returns 4xx/5xx — extraction fails
- Base64 or image_url contains a non-receipt image — returns empty or incorrect fields
- Receipt text is too blurry or low-resolution to parse — partial results returned
- Unsupported currency or locale on receipt — currency field may be null
- All three input params (text, base64, image_url) omitted — returns validation error

## How this service works

Extract and categorize receipt data. Returns vendor, date, amount, tax, currency, expense category, line items. Ready for expense reports.

## Output

Returns structured receipt data including vendor name, transaction date, total amount, tax amount, currency code, inferred expense category (e.g. meals, travel, software), and an array of individual line items — ready to paste into an expense report.

## Example request

```json
{
 "text": "Vendor: Coffee House Cafe\nDate: 2024-01-15\nItems:\n- Espresso $4.50\n- Croissant $3.75\nSubtotal: $8.25\nTax: $0.66\nTotal: $8.91\nCurrency: USD"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "text": {
       "type": "string"
      },
      "base64": {
       "type": "string"
      },
      "image_url": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-strale-io-aefdb68a/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)
