# x402 Delivery Receipt Verifier

> x402 Delivery Receipt Verifier is a paid API for AI agents from scanpay-edge.alextaghiashvili.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-02).

Verifies a ScanPay x402 delivery receipt by checking EIP-191 signature, canonical hash, and output SHA-256 integrity

## Facts

- Endpoint: GET https://scanpay-edge.alextaghiashvili.workers.dev/api/v1/receipt-verify?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-delivery-receipt-verifier-874e8c9f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_iQ4FsN0tBD4TtYoqT11I2

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 x402-delivery-receipt-verifier-874e8c9f
```

Example prompt: Can you verify this x402 delivery receipt for me and confirm that the EIP-191 signature is valid, the canonical hash checks out, and the output SHA-256 matches the expected hash? Here's the receipt string: <receipt_value>.

## When to prefer this

Use this endpoint when you need cryptographic proof that an x402 delivery receipt is authentic — specifically when you need EIP-191 signature recovery, canonical hash validation, and SHA-256 output integrity checked in a single call. Prefer this over manual on-chain lookups when operating in an AI agent context with ScanPay x402 pay-per-call APIs and need fast, cheap ($0.001 USDC) programmatic receipt auditing.

## Known failure modes

- Malformed receipt string returns valid=false with error 'malformed receipt' and all checks as null/false
- Missing required `receipt` query parameter returns an error response
- Invalid or mismatched SHA-256 causes body_matches=false and check.body=false
- Signature mismatch causes checks.signature=false and signer may differ from expected_signer
- Network or upstream timeout from the Cloudflare Worker edge function

## How this service works

Pay-per-call x402 APIs for AI agents: OpenAI-compatible LLM chat, perp funding and arbitrage spreads, crypto prices, gas, FX, Solana SPL mint audit, token price by contract, x402 delivery-receipt verification, web search, clean page extraction, batch tools and deterministic code-security scanning. USDC on Base or Solana, no signup, no API key, from $0.0001 a call.

## Output

Returns a JSON object with: a `valid` boolean, per-check breakdown (`scheme`, `signature`, `body`, `report_hash`), the recovered EIP-191 `signer` address, `expected_signer`, `report_hash`, `output_sha256`, `body_matches`, `payer`, `tx`, `path`, `method`, `scheme`, `network`, and `product` fields. On failure, includes an `error` message describing what was malformed.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "receipt"
     ],
     "properties": {
      "receipt": {
       "type": "string"
      },
      "body_base64": {
       "type": "string"
      },
      "expected_sha256": {
       "type": "string",
       "pattern": "^[0-9a-fA-F]{64}$"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "tx": null,
  "path": null,
  "error": "malformed receipt",
  "payer": null,
  "valid": false,
  "checks": {
   "body": null,
   "scheme": false,
   "signature": false,
   "report_hash": false
  },
  "method": null,
  "scheme": null,
  "signer": "0x1E04f5046500e5369E17AF993Dc60aC29D83efc9",
  "network": null,
  "product": "scanpay.receipt_verify",
  "price_usd": 0.001,
  "report_hash": "0x44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a",
  "body_matches": null,
  "output_sha256": null,
  "expected_signer": "0x1E04f5046500e5369E17AF993Dc60aC29D83efc9"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-delivery-receipt-verifier-874e8c9f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from scanpay-edge.alextaghiashvili.workers.dev](https://www.zero.xyz/host/scanpay-edge.alextaghiashvili.workers.dev/llms.txt)
