{"uid":"cap_sYHgArIYE4QEwBZfDFEI9","slug":"delx-commerce-x402-payment-deadline-check-c849ce55","name":"Delx Commerce — X402 Payment Deadline Check","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/x402-payment-deadline-check?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"now_epoch":{"type":"integer","description":"Now Epoch supplied to X402 Payment Deadline Check; used only for this bounded calculation and processed in memory without retention."},"deadline_epoch":{"type":"integer","description":"Deadline Epoch supplied to X402 Payment Deadline Check; used only for this bounded calculation and processed in memory without retention."},"maximum_lead_seconds":{"type":"integer","description":"Maximum Lead Seconds supplied to X402 Payment Deadline Check; used only for this bounded calculation and processed in memory without retention."},"minimum_lead_seconds":{"type":"integer","description":"Minimum Lead Seconds supplied to X402 Payment Deadline Check; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"lead_seconds":300,"within_window":true,"maximum_lead_seconds":3600,"minimum_lead_seconds":30},"schema":"delx/util-x402-payment-deadline-check/v1","status":"pass","evidence":{"retained":false,"input_sha256":"59c678732bd73042e4f51cbf240f3f49ced22b5675207daf3f54360d261c4acb","external_calls":0},"operation":"delivery_contract:x402_payment_deadline_check"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_4_anQKBW1iljdUhc4O4z2","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates whether a given payment timestamp falls within an acceptable lead-time window relative to a deadline, returning pass/fail and the computed lead seconds.","exampleAgentPrompt":"Check if a payment with a deadline epoch of 1720000600 is within the valid window, given the current time is epoch 1720000300, a minimum lead of 30 seconds, and a maximum lead of 3600 seconds.","exampleUseCases":[{"title":"Pre-flight x402 payment timing check","prompt":"Before I submit this x402 payment, verify the deadline epoch 1720001000 is acceptable — right now it's epoch 1720000700, with a minimum lead of 30 seconds and a maximum of 3600 seconds."},{"title":"Agent payment relay validation","prompt":"My payment relay agent is about to forward a transaction with deadline epoch 1719999900. The current epoch is 1719999600, minimum lead is 60 seconds, maximum lead is 1800 seconds — is the timing valid?"},{"title":"Expired payment deadline detection","prompt":"Can you tell me if the payment deadline of epoch 1720000100 has already passed or is too close, given the current epoch is 1720000080, a minimum lead of 30 seconds, and a maximum of 900 seconds?"}],"resultDescription":"Returns a JSON object with a 'result' containing lead_seconds (computed difference), within_window (boolean), and the echoed minimum/maximum lead seconds; plus a 'status' of pass/fail, an 'operation' identifier, and an 'evidence' block confirming no data was retained and no external calls were made, along with an input SHA256 hash for auditability.","failureModes":["Missing required fields (now_epoch, deadline_epoch, minimum_lead_seconds, maximum_lead_seconds) result in validation error","Invalid integer types for epoch or lead second fields cause parsing failures","now_epoch greater than deadline_epoch may result in negative lead_seconds and a fail status","Payment required (402) response if USDC payment header is not included or is insufficient"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, stateless, verifiable computation to confirm that an x402 payment timestamp is within a protocol-compliant timing window. It is ideal for AI agents operating in x402-payment ecosystems who must validate payment deadline constraints before submitting or relaying transactions, without any data retention or side effects.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T04:07:15.947Z","isFirstParty":false,"canonicalSlug":"delx-commerce-x402-payment-deadline-check-c849ce55"}