{"uid":"cap_2Kumg11OhhmZKg1VvuzJ-","slug":"delx-commerce-x402-payment-preflight-c41e2242","name":"Delx Commerce — X402 Payment Preflight","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/payment-preflight?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"requirements":{"type":"object"},"asset_decimals":{"type":"integer","default":6,"maximum":18,"minimum":0},"max_amount_usdc":{"type":"number","minimum":0},"allowed_networks":{"type":"array","items":{"type":"string"},"maxItems":20,"minItems":1},"now_epoch_seconds":{"type":"integer","minimum":0},"min_expiry_seconds":{"type":"integer","default":30,"maximum":86400,"minimum":0}}},"responseSchema":{"type":"json","example":{"policy":{"asset_decimals":6,"expiry_checked":true,"max_amount_usdc":"0.002","allowed_networks":["eip155:8453"],"min_expiry_seconds":30},"schema":"delx/util-x402-payment-preflight/v1","approved":true,"selected":{"index":0,"pay_to":"0x1111111111111111111111111111111111111111","scheme":"exact","network":"eip155:8453","amount_usdc":"0.001","expiry_status":"ok"},"evaluations":[{"index":0,"scheme":"exact","network":"eip155:8453","blockers":[],"amount_usdc":"0.001","expiry_status":"ok","pay_to_present":true}],"eligible_count":1,"evaluated_count":1}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_IBkucPJeArVDCq75QoUVD","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates and selects an eligible x402 payment option from a set of requirements before executing a micropayment","exampleAgentPrompt":"Before paying for the Delx API call, run a preflight check against the Base network (eip155:8453) with a max of 0.002 USDC, at least 30 seconds of expiry, and 6 decimal precision to confirm the payment is valid and select the right option.","exampleUseCases":[{"title":"Validating payment before API call","prompt":"Before I send the USDC micropayment to this pay-per-result API, can you preflight the x402 payment requirements on the Base network with a max of 0.002 USDC and 30-second minimum expiry to make sure everything checks out?"},{"title":"Selecting cheapest eligible payment route","prompt":"I have multiple x402 payment options available across Base and Solana — can you run a preflight to evaluate them all and tell me which one is eligible and costs the least USDC right now?"},{"title":"Checking payment expiry before autonomous agent action","prompt":"My agent is about to make an x402 API call but I need to confirm the payment won't expire mid-flight — run a preflight check with at least 60 seconds of expiry required and tell me if the selected option is still valid."}],"resultDescription":"Returns an 'approved' boolean, the policy used for evaluation, the selected payment option (index, network, scheme, pay-to address, amount in USDC, expiry status), and a list of evaluations for each candidate payment option including any blockers and eligibility count.","failureModes":["No eligible payment options found (approved: false, eligible_count: 0)","Payment option expiry is too short relative to min_expiry_seconds","Requested network not in allowed_networks list","Amount exceeds max_amount_usdc threshold","Invalid asset_decimals value outside 0-18 range","Malformed requirements object causes validation error"],"whenToPreferThis":"Use this endpoint when your agent needs to pre-validate an x402 micropayment before committing funds — especially when multiple payment options exist across networks (Base, Solana) and you need to select the safest, cheapest eligible one. Prefer this over direct payment when you need to verify expiry, network compatibility, or amount constraints without side effects.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:53.950Z","isFirstParty":false,"canonicalSlug":"delx-commerce-x402-payment-preflight-c41e2242"}