# Replate Intelligence API – Advanced Receipt Intelligence

> Replate Intelligence API – Advanced Receipt Intelligence is a paid API for AI agents from replate-backend61.vercel.app, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-14).

Analyzes a receipt by ID or hash to produce an advanced intelligence report for users or autonomous agents.

## Facts

- Endpoint: POST https://replate-backend61.vercel.app/api/intelligence/advanced
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/replate-intelligence-api-advanced-receipt-intelligence-0fe85e1e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wMqv1R-EIodN-ORySQ9ro

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 replate-intelligence-api-advanced-receipt-intelligence-0fe85e1e -d '<json body>'
```

Example prompt: Run an advanced intelligence report on receipt ID 42 with hash 0xabc123...def456 for my wallet address 0xDeAdBeEf...1234 and tell me what it finds.

## When to prefer this

Choose this endpoint when you need advanced, structured intelligence extracted from a specific receipt identified by its ID or on-chain hash, especially in autonomous agent workflows where wallet-level attribution is required. Prefer this over generic OCR or receipt-scanning tools when the receipt is already indexed in the Replate system and you need a rich, machine-readable report rather than raw text extraction.

## Known failure modes

- Invalid or malformed receiptHash (not matching 0x + 64 hex chars) returns a validation error
- Invalid userAddress format (not a valid 40-char hex Ethereum address) causes rejection
- Unknown or non-existent receiptId returns an empty or failed report
- Insufficient USDC payment (x402 payment not completed) blocks the response
- Network or backend timeout on vercel deployment may return a 5xx error

## How this service works

Paid receipt, personal, and aggregate commerce intelligence for autonomous agents.

## Output

Returns a JSON object containing a `success` boolean, the `receiptId` echoed back, and a `report` object with advanced intelligence details derived from the submitted receipt — likely including itemized data, spending categories, merchant details, or anomaly flags depending on the receipt content.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "receiptId": {
   "type": [
    "string",
    "number"
   ]
  },
  "receiptHash": {
   "type": "string",
   "pattern": "^0x[a-fA-F0-9]{64}$"
  },
  "userAddress": {
   "type": "string",
   "pattern": "^0x[a-fA-F0-9]{40}$"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "report": {},
  "success": true,
  "receiptId": "1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/replate-intelligence-api-advanced-receipt-intelligence-0fe85e1e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from replate-backend61.vercel.app](https://www.zero.xyz/host/replate-backend61.vercel.app/llms.txt)
