{"uid":"cap_GTcHmdCqmY9VHUnWpssnB","slug":"delx-commerce-x402-retry-safety-check-eb8c1c6e","name":"Delx Commerce X402 Retry Safety 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-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_h9GfzAYkCPw3T4RTAaofH","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":"Determines whether it is safe to retry an x402 payment-gated API call by evaluating payment settlement, delivery receipt, and idempotency key status","exampleAgentPrompt":"Before retrying that x402 API call, check if it's safe to retry — the payment has not settled, no delivery was received yet, but an idempotency key is present.","exampleUseCases":[{"title":"Preventing double payment on retry","prompt":"I got a timeout on my x402 API call and I'm not sure if the payment went through. The payment hasn't settled, no delivery was received, and I do have an idempotency key — is it safe to retry?"},{"title":"Post-failure retry decision in agent workflow","prompt":"My agent just hit an error on an x402 request. Payment settled successfully but delivery was never confirmed, and there's no idempotency key in place — tell me whether it's safe to retry."},{"title":"Auditing retry logic in automated pipeline","prompt":"Before my automation retries the x402 call, verify retry safety: payment is settled, delivery was already received, and an idempotency key is present — what does that mean for retrying?"}],"resultDescription":"Returns a JSON object containing a safe_to_retry boolean, the echoed payment_settled, delivery_received, and idempotency_key_present inputs, a status of pass or fail, an operation identifier, and evidence including a SHA-256 hash of the input and confirmation that no data was retained and no external calls were made.","failureModes":["Missing or malformed boolean inputs may cause validation errors","All three input fields are optional so missing fields may produce conservative or incorrect retry recommendations","Endpoint is stateless and cannot actually verify on-chain payment settlement — it only evaluates the booleans provided by the caller"],"whenToPreferThis":"Use this endpoint when building x402-protocol-aware agents or automation pipelines that need a lightweight, stateless, verifiable check to decide whether retrying a payment-gated API call is safe — especially when you need an auditable evidence hash and confirmation of no data retention. Prefer this over custom retry logic when operating within the Delx Commerce x402 ecosystem.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:40.330Z","isFirstParty":false,"canonicalSlug":"delx-commerce-x402-retry-safety-check-eb8c1c6e"}