# ScanPay Payment Reconcile

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

Verifies a Base USDC on-chain transaction against an expected invoice, checking amount, recipient, asset type, and confirmation status.

## Facts

- Endpoint: GET https://scanpay-edge.alextaghiashvili.workers.dev/api/v1/payment-reconcile?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/scanpay-payment-reconcile-d76409e8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2Ba87Tt3Ra-x0zIGNWzoC

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 scanpay-payment-reconcile-d76409e8
```

Example prompt: Can you verify whether the Base USDC transaction 0x3a7f...d291 actually paid $25.00 to the recipient address 0xBbBb...bBbB, and confirm it has at least 1 confirmation?

## When to prefer this

Use this endpoint when you need to programmatically verify that a specific Base USDC on-chain transaction satisfies an invoice — specifically checking recipient address, USD amount, asset type, and confirmation count in a single call. Prefer this over manual block explorer lookups when automating payment gating, order fulfillment workflows, or agent-to-agent settlement verification on the Base network.

## Known failure modes

- Invalid tx_hash format (must be 0x + 64 hex chars) returns validation error
- Transaction not yet indexed or not found on Base returns null/empty tx fields
- Insufficient confirmations results in confirmation_state: pending and discrepancy flag
- Amount or asset mismatch reflected in discrepancies array with matches: false
- Invalid recipient address format (not 0x + 40 hex chars) returns schema validation error
- expected_amount_usd of 0 or above 100000 is rejected by schema constraints

## 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 containing: whether the transaction matches the invoice (matches: boolean), the transaction details (to, from, asset, status, value_usd, block_number, confirmations), the expected values (recipient, amount_usd, asset), a list of discrepancies (e.g. amount_mismatch, asset_mismatch, insufficient_confirmations), the chain (base), confirmation_state (pending/confirmed), and an observed_at_unix timestamp.

## 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",
     "title": "PaymentReconcileRequest",
     "required": [
      "tx_hash",
      "expected_recipient",
      "expected_amount_usd"
     ],
     "properties": {
      "asset": {
       "type": "string",
       "const": "usdc",
       "title": "Asset",
       "default": "usdc"
      },
      "tx_hash": {
       "type": "string",
       "title": "Tx Hash",
       "pattern": "^0x[0-9a-fA-F]{64}$"
      },
      "expected_recipient": {
       "type": "string",
       "title": "Expected Recipient",
       "pattern": "^0x[0-9a-fA-F]{40}$"
      },
      "expected_amount_usd": {
       "type": "number",
       "title": "Expected Amount Usd",
       "maximum": 100000,
       "exclusiveMinimum": 0
      },
      "confirmations_required": {
       "type": "integer",
       "title": "Confirmations Required",
       "default": 1,
       "minimum": 1
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "tx": {
   "to": "0xbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
   "from": "0xcccccccccccccccccccccccccccccccccccccccc",
   "asset": null,
   "status": null,
   "value_usd": 0,
   "block_number": null,
   "confirmations": 0
  },
  "chain": "base",
  "matches": false,
  "product": "scanpay.payment_reconcile",
  "tx_hash": "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "expected": {
   "asset": "usdc",
   "recipient": "0xbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
   "amount_usd": 1
  },
  "discrepancies": [
   "amount_mismatch",
   "asset_mismatch",
   "insufficient_confirmations"
  ],
  "observed_at_unix": 1793491200,
  "confirmation_state": "pending"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/scanpay-payment-reconcile-d76409e8/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)
