{"uid":"cap_2Ba87Tt3Ra-x0zIGNWzoC","slug":"scanpay-payment-reconcile-d76409e8","name":"ScanPay Payment Reconcile","description":"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.","url":"https://scanpay-edge.alextaghiashvili.workers.dev/api/v1/payment-reconcile?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"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"}}}}},"responseSchema":{"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"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Y4Nz_7sBgAGdvDAuCR8GP","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Verifies a Base USDC on-chain transaction against an expected invoice, checking amount, recipient, asset type, and confirmation status.","exampleAgentPrompt":"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?","exampleUseCases":[{"title":"Confirm customer payment before order fulfillment","prompt":"A customer says they paid $49.99 USDC on Base — the tx hash is 0xabc123...def456 and my wallet address is 0x1234...5678. Can you verify the transaction actually sent the right amount to me with at least 2 confirmations before I ship the order?"},{"title":"Audit automated agent payment settlement","prompt":"My AI agent just sent a USDC payment on Base with tx hash 0xdeadbeef...cafe0001. The invoice was for $10.00 to 0xAAAA...BBBB — can you reconcile the transaction against those details and flag any discrepancies?"},{"title":"Detect underpayment or wrong-asset transfer","prompt":"Someone paid me crypto on Base claiming it was $100 USDC, tx hash 0x9988...7766 to my address 0xFFFF...0000. Please check whether the amount, asset, and recipient all match and tell me if there are any mismatches."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-02T18:33:16.737Z","isFirstParty":false,"canonicalSlug":"scanpay-payment-reconcile-d76409e8"}