{"uid":"cap_BcOB-4Cm8pif1ZXCGzGlu","slug":"x402-payment-deadline-check-d7155a12","name":"X402 Payment Deadline Check","description":"X402 Payment Deadline Check: X402 Payment Deadline Check checks payment authorization deadline against caller time budgets from bounded caller-supplied values without an external provider. Call X402 Payment Deadline Check before paying for or accepting an x402 or agent delivery assembled from caller-supplied challenge and result metadata. Returns contract-specific checks, normalized evidence, mismatch reasons, and an explicit acceptance or rejection status for X402 Payment Deadline Check as ver…","url":"https://api.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_ZJQS3MvjHbqGQ0gnpHVsG","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 payment authorization deadline falls within acceptable time bounds relative to a caller-supplied current time and lead-second constraints.","exampleAgentPrompt":"Before I pay this x402 invoice, can you check if the deadline at epoch 1720000800 is valid given the current time is epoch 1719999000, with a minimum lead of 30 seconds and a maximum lead of 3600 seconds?","exampleUseCases":[{"title":"Pre-payment deadline guard for x402 agent","prompt":"I'm about to submit an x402 payment but want to make sure the authorization deadline at epoch 1720005000 is still valid — current time is epoch 1720003500, minimum lead is 60 seconds and maximum lead is 1800 seconds. Is this safe to proceed?"},{"title":"Rejecting a stale payment challenge","prompt":"An agent handed me a payment challenge with deadline epoch 1719990000, but the current time is epoch 1720000000 with a minimum lead of 120 seconds. Can you check if the deadline has already expired before I try to pay?"},{"title":"Validating far-future deadline within budget","prompt":"Check whether an x402 payment deadline at epoch 1720100000 is within my time budget — the current epoch is 1719999000, I need at least 10 seconds lead time and no more than 3600 seconds lead time."}],"resultDescription":"Returns an explicit acceptance or rejection status for the deadline, along with contract-specific validation checks, normalized evidence derived from the provided timestamps, and a list of mismatch reasons explaining why the deadline was accepted or rejected.","failureModes":["Missing required fields (now_epoch, deadline_epoch) results in validation error","Inverted min/max lead seconds (minimum greater than maximum) may produce unexpected rejection","Non-integer epoch values cause input schema errors","Deadline exactly at boundary conditions may yield edge-case rejections depending on implementation"],"whenToPreferThis":"Use this endpoint when an AI agent or payment orchestrator needs to deterministically validate an x402 payment authorization deadline before committing to a payment, especially when the agent has strict time budgets and needs an explicit accept/reject signal with evidence rather than computing deadline logic itself.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T18:48:51.513Z","isFirstParty":false,"canonicalSlug":"x402-payment-deadline-check-d7155a12"}