{"uid":"cap_fMSHUC7TZLgEeX53Q6Xrb","slug":"delx-commerce-x402-refund-deadline-check-dd7594d2","name":"Delx Commerce X402 Refund 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-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_UfNuQkANPopaYt9E40oDC","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 payment settlement falls within the allowable refund window by comparing timestamps against a specified window duration.","exampleAgentPrompt":"Check if the payment that was requested at epoch 1720000000 and settled at epoch 1720003600 is still within the 7200-second refund window — I need to know how many seconds have elapsed and whether I can still refund it.","exampleUseCases":[{"title":"Validate live payment refund eligibility","prompt":"A customer just disputed a charge — the payment was requested at epoch 1719990000, settled at epoch 1719993600, and our refund window is 3600 seconds. Can you check whether we're still within the deadline to issue a refund?"},{"title":"Automated refund gate in agent workflow","prompt":"Before my agent triggers a refund, check if the x402 transaction requested at epoch 1720100000 and settled at epoch 1720101800 is within our 1800-second refund window, and tell me the exact elapsed time."},{"title":"Audit historical settlement timing","prompt":"I want to verify whether a batch of settlements were refundable at the time they were flagged — start with this one: requested at epoch 1718500000, settled at epoch 1718504000, window was 3600 seconds. Was it within the deadline?"}],"resultDescription":"Returns a JSON object indicating whether the settlement falls within the refund window (within_window boolean), the number of elapsed seconds between request and settlement, a pass/fail status, and a verifiable evidence object containing the SHA-256 hash of the inputs and confirmation that no data was retained or external calls were made.","failureModes":["Missing required fields (window_seconds, settled_at_epoch, requested_at_epoch) return validation errors","Invalid epoch values (negative, non-integer, or future settled_at before requested_at) may produce unexpected results","settled_at_epoch earlier than requested_at_epoch could produce negative elapsed times","Network or payment gateway failures preventing the $0.001 USDC fee from being processed block the request"],"whenToPreferThis":"Use this endpoint when building x402-protocol payment flows that require deterministic, verifiable refund-window enforcement without storing sensitive data. It is ideal for AI agents that need a tamper-evident, in-memory-only calculation with an auditable SHA-256 input hash — suitable for compliance checks, automated dispute resolution gates, or settlement audits within the x402 ecosystem.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T04:17:20.298Z","isFirstParty":false,"canonicalSlug":"delx-commerce-x402-refund-deadline-check-dd7594d2"}