{"uid":"cap_ucTkQ855V-xg5BWqDDAX5","slug":"x402-refund-deadline-check-c23d4e27","name":"X402 Refund Deadline Check","description":"X402 Refund Deadline Check: X402 Refund Deadline Check checks a refund request timestamp against a policy window from bounded caller-supplied values without an external provider. Call X402 Refund 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 Refund Deadline Check as versioned deter…","url":"https://api.delx.ai/api/v1/x402/x402-refund-deadline-check?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"window_seconds":{"type":"integer","description":"Window Seconds supplied to X402 Refund Deadline Check; used only for this bounded calculation and processed in memory without retention."},"settled_at_epoch":{"type":"integer","description":"Settled At Epoch supplied to X402 Refund Deadline Check; used only for this bounded calculation and processed in memory without retention."},"requested_at_epoch":{"type":"integer","description":"Requested At Epoch supplied to X402 Refund Deadline Check; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"within_window":true,"elapsed_seconds":3600},"schema":"delx/util-x402-refund-deadline-check/v1","status":"pass","evidence":{"retained":false,"input_sha256":"75b029c9b2e724be9e810d27a39f2fd8a936b5f84bafd8c79078d3272448753c","external_calls":0},"operation":"delivery_contract:x402_refund_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_SvvPZUMkoFvgH-DOv3qof","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":"Checks whether a refund request timestamp falls within a policy window, returning acceptance or rejection status with mismatch reasons","exampleAgentPrompt":"Before accepting this x402 refund request, check whether it falls within the allowed window: the payment settled at epoch 1718000000, the refund was requested at epoch 1718003600, and the policy window is 7200 seconds — is it still eligible?","exampleUseCases":[{"title":"Validate refund eligibility before disbursing","prompt":"We got a refund request for an x402 payment that settled at epoch 1717990000. The request came in at epoch 1717995000 and our refund window is 3600 seconds. Can you check if this refund is still within the deadline before we approve it?"},{"title":"Guard agent delivery payment acceptance","prompt":"Before I pay for this agent delivery result, check the refund deadline: the delivery was settled at epoch 1718100000, the result was submitted at epoch 1718104000, and the allowed window is 1800 seconds — should I accept or reject it?"},{"title":"Audit expired refund request","prompt":"I need to verify whether a refund claim we received is valid. Settlement epoch is 1718200000, the refund was requested at epoch 1718210000, and our policy window is only 5000 seconds. Did the request come in too late?"}],"resultDescription":"Returns a structured verdict including: an explicit accept or reject status, normalized evidence about the timestamps, computed time difference versus the policy window, and mismatch reasons explaining why the request was rejected if applicable — all as versioned deterministic output.","failureModes":["Missing required fields (window_seconds, settled_at_epoch, or requested_at_epoch) result in a validation error","Negative or zero window_seconds may produce unexpected results or an error","Non-integer epoch values cause schema validation failures","requested_at_epoch earlier than settled_at_epoch may be flagged as logically invalid","Network timeout or service unavailability returns a 5xx error"],"whenToPreferThis":"Use this endpoint when you need a lightweight, deterministic, in-memory check of whether a refund request timestamp falls within a caller-defined policy window — especially in x402 payment or agent delivery flows where no external oracle or blockchain lookup is needed. Prefer it over custom logic when you want a normalized, versioned verdict with explicit mismatch reasons rather than writing your own timestamp arithmetic.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T18:49:34.323Z","isFirstParty":false,"canonicalSlug":"x402-refund-deadline-check-c23d4e27"}