{"uid":"cap_5qvze2XkStatTJR0ao4Qc","slug":"x402-retry-safety-check-33755996","name":"X402 Retry Safety Check","description":"X402 Retry Safety Check: X402 Retry Safety Check checks whether retrying after challenge or delivery failure risks double settlement from bounded caller-supplied values without an external provider. Call X402 Retry Safety 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 Retry Safety Check as v…","url":"https://api.delx.ai/api/v1/x402/x402-retry-safety-check?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"payment_settled":{"type":"boolean","description":"Payment Settled supplied to X402 Retry Safety Check; used only for this bounded calculation and processed in memory without retention."},"delivery_received":{"type":"boolean","description":"Delivery Received supplied to X402 Retry Safety Check; used only for this bounded calculation and processed in memory without retention."},"idempotency_key_present":{"type":"boolean","description":"Idempotency Key Present supplied to X402 Retry Safety Check; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"safe_to_retry":true,"payment_settled":false,"delivery_received":false,"idempotency_key_present":true},"schema":"delx/util-x402-retry-safety-check/v1","status":"pass","evidence":{"retained":false,"input_sha256":"24c9a576b2e74386a2f828e8dd25d82245eaf5949169fae8a42b46b075a9b953","external_calls":0},"operation":"delivery_contract:x402_retry_safety_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_rJhkuKMIWxvBOt9nS4B_S","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 retrying after an x402 challenge or delivery failure risks double settlement, given payment status, delivery status, and idempotency key presence.","exampleAgentPrompt":"Before I retry this x402 agent call, check whether it's safe to do so — the payment has already been settled, the delivery was not received, and there is no idempotency key present.","exampleUseCases":[{"title":"Retry guard after delivery timeout","prompt":"The agent delivery timed out but the payment went through — check if retrying is safe given that payment_settled is true, delivery_received is false, and there's no idempotency key."},{"title":"Idempotent retry with key present","prompt":"I want to retry an x402 call where the payment settled and delivery failed, but I do have an idempotency key — is it safe to retry without risking double settlement?"},{"title":"Uncertain payment state retry check","prompt":"I'm not sure if the last payment settled and delivery wasn't confirmed — payment_settled is false, delivery_received is false, idempotency_key_present is false — should I retry or is that too risky?"}],"resultDescription":"Returns an explicit acceptance or rejection status indicating whether retry is safe, along with contract-specific checks, normalized evidence from the supplied flags, and mismatch reasons explaining why retry is or is not recommended.","failureModes":["Missing required boolean fields returns validation error","Ambiguous flag combinations may yield inconclusive rejection with mismatch reasons","Network timeout returns no result — caller should not assume safe to retry"],"whenToPreferThis":"Use this endpoint when your agent or payment orchestration layer needs a lightweight, stateless check before re-attempting an x402-protected request or agent delivery call, especially when you cannot reliably determine from your own state whether a prior payment settled. Prefer this over manual state inspection when working with caller-supplied challenge and result metadata that may be inconsistent.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T00:49:15.586Z","isFirstParty":false,"canonicalSlug":"x402-retry-safety-check-33755996"}