{"uid":"cap_zEN_lYkxPMDcrbfFaDnDf","slug":"tollex-x402-payment-requirements-validator-0852bd5b","name":"Tollex x402 Payment Requirements Validator","description":"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.","url":"https://api.tollex.org/tools/x402_validate_requirements?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","pattern":"^https?://","examples":["https://merchant.example/v1/quote"],"maxLength":2048},"requirements":{"type":"object","properties":{"asset":{"type":"string"},"payTo":{"type":"string"},"amount":{"type":"string"},"scheme":{"type":"string"},"network":{"type":"string"},"maxTimeoutSeconds":{"type":"integer"}},"additionalProperties":true}}},"responseSchema":{"type":"json","example":{"tool":{"id":"x402_validate_requirements","version":"1.0.0","provider":"tollex.robinhood-chain"},"result":{"results":[{"ok":true,"amount":"7800","issues":[],"scheme":"exact","network":"eip155:8453"}]},"evidence":[],"untrustedOutput":false}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0079","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.0079/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0079","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0079","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_0MKavhCrp8rdnMNcVJjL-","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0079","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates whether an x402 payment requirements object from a merchant URL is well-formed, policy-compliant, and safe to pay before any funds are committed.","exampleAgentPrompt":"Before paying this API, check if the x402 payment requirements from https://merchant.example/v1/quote are valid and policy-safe — the requirements say asset USDC, payTo 0xABC…, amount 0.01, scheme exact, network base, maxTimeoutSeconds 30.","exampleUseCases":[{"title":"Pre-flight payment safety check","prompt":"Before my agent pays the data enrichment API at https://dataapi.example.com/enrich, validate its x402 requirements — it's asking for USDC on Base, payTo 0x1234…, 0.005 amount, exact scheme, 60 second timeout. Make sure it's safe and policy-compliant."},{"title":"Policy gate for autonomous spending","prompt":"My agent is about to buy a capability from https://tools.example.org/v1/summarize that wants USDG on Robinhood Chain, payTo 0xDEAD…, amount 0.02 — validate those payment requirements against my spending rules before anything gets signed."},{"title":"Audit suspicious merchant requirements","prompt":"This merchant at https://sketchy-api.example/query sent back x402 requirements with a huge timeout of 3600 seconds and an unusual scheme — can you validate those requirements and tell me if they're well-formed and safe to proceed with?"}],"resultDescription":"Returns a structured validation result indicating whether the x402 payment requirements are well-formed, policy-compliant, and safe to proceed with. May include field-level error details, policy violation reasons, and a signed receipt or authorization token if validation passes.","failureModes":["Malformed URL or unreachable merchant endpoint returns validation error","Payment requirements object missing required fields triggers schema validation failure","Asset or network not supported by policy returns policy rejection","Amount exceeds configured spending limit returns policy violation","maxTimeoutSeconds outside acceptable range returns timeout policy error","Invalid payTo address format returns address validation failure"],"whenToPreferThis":"Use this endpoint when an AI agent has received x402 payment requirements from a merchant and needs to validate them against policy rules before committing any funds. This is the pre-payment safety gate in an x402-based autonomous purchasing flow — prefer it over proceeding directly to payment when you need to enforce spending policies, verify address formats, confirm network/asset compatibility, or audit suspicious merchant payment headers.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T12:47:27.539Z","isFirstParty":false,"canonicalSlug":"tollex-x402-payment-requirements-validator-0852bd5b"}