# Tollex x402 Receipt Verifier

> Tollex x402 Receipt Verifier is a paid API for AI agents from api.tollex.org, paid per call via x402, $0.0079/call, status unknown (last checked 2026-10-11).

Verifies and validates an x402 payment receipt against a merchant's keys URL and a set of trusted signer addresses, returning a signed confirmation of payment validity.

## Facts

- Endpoint: POST https://api.tollex.org/tools/x402_verify_receipt?utm_source=zero.xyz
- Price: $0.0079/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tollex-x402-receipt-verifier-603b97ac
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_O3lmXS6eqSbLzEASuLIJD

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 tollex-x402-receipt-verifier-603b97ac -d '<json body>'
```

Example prompt: I received a payment receipt from an agent that says it paid via x402 — can you verify it's legit using the merchant keys at https://merchant.example/v1/quote and check it against the trusted signer 0xAbC1234567890abcdef1234567890abcdef123456?

## When to prefer this

Use this endpoint when you are a merchant or service provider that has received an x402 payment receipt from an autonomous agent and need to cryptographically verify it before delivering your service. It is ideal for real-time access gating, post-payment reconciliation, and audit trails in agent-to-agent commerce. Prefer this over manual on-chain verification when you need policy-checked, signed confirmation with uncertain-payment handling baked in.

## Known failure modes

- Invalid or unreachable keysUrl returns a fetch or DNS error
- Receipt object malformed or missing required fields returns a validation error
- No trusted signer matches the receipt signature returns an invalid-signer error
- Network timeout reaching the merchant keys endpoint
- Receipt already expired or nonce reused returns a replay-attack error
- Unsupported receipt schema version

## How this service works

Tollex lets software agents buy APIs and tools under rules you set: it finds a capability that fits, checks your policy before anything is signed, pays with x402 in USDC on Base or USDG on Robinhood Chain, reconciles uncertain payments and returns a signed receipt.

## Output

A verification result indicating whether the receipt is valid, including a signed confirmation from Tollex, details about which trusted signer authenticated the payment, and any reconciliation notes for uncertain or borderline payment states.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "keysUrl": {
   "type": "string",
   "pattern": "^https?://",
   "examples": [
    "https://merchant.example/v1/quote"
   ],
   "maxLength": 2048
  },
  "receipt": {
   "type": "object",
   "additionalProperties": true
  },
  "trustedSigners": {
   "type": "array",
   "items": {
    "type": "string",
    "pattern": "^0x[0-9a-fA-F]{40}$"
   },
   "maxItems": 10
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "tool": {
   "id": "x402_verify_receipt",
   "version": "1.0.0",
   "provider": "tollex.robinhood-chain"
  },
  "result": {
   "valid": true,
   "reasons": [],
   "recovered": "0x69d778C105b7f94Bde775d7ae94F1daa56DAA88F"
  },
  "evidence": [],
  "untrustedOutput": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tollex-x402-receipt-verifier-603b97ac/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.tollex.org](https://www.zero.xyz/host/api.tollex.org/llms.txt)
