{"uid":"cap_GjmTa2rhQ0-WUwTieJNTp","slug":"delx-commerce-x402-refund-eligibility-check-1564d930","name":"Delx Commerce X402 Refund Eligibility 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-eligibility-check?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"settled":{"type":"boolean","description":"Settled supplied to X402 Refund Eligibility Check; used only for this bounded calculation and processed in memory without retention."},"delivered":{"type":"boolean","description":"Delivered supplied to X402 Refund Eligibility Check; used only for this bounded calculation and processed in memory without retention."},"failure_code":{"type":"string","maxLength":8192,"description":"Failure Code supplied to X402 Refund Eligibility Check; used only for this bounded calculation and processed in memory without retention."},"eligible_codes":{"type":"array","items":{"type":"string","maxLength":8192},"maxItems":256,"description":"Eligible Codes supplied to X402 Refund Eligibility Check; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"eligible":true,"failure_code":"post_settlement_delivery_failed"},"schema":"delx/util-x402-refund-eligibility-check/v1","status":"pass","evidence":{"retained":false,"input_sha256":"c7ff113147f00d1cbabc89249c1c35e396554cac50edbc709fcefae782738ef1","external_calls":0},"operation":"delivery_contract:x402_refund_eligibility_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_2rsvhB9LxIgIlReuvbVYG","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 a failed X402 payment delivery is eligible for a refund based on settlement status, delivery outcome, and failure code.","exampleAgentPrompt":"Check whether a settled but undelivered x402 payment with failure code 'post_settlement_delivery_failed' is eligible for a refund, given the eligible codes list includes 'post_settlement_delivery_failed' and 'timeout'.","exampleUseCases":[{"title":"Post-settlement delivery failure refund check","prompt":"A payment was settled but the content was never delivered and we got failure code 'post_settlement_delivery_failed' — can you check if that qualifies for a refund given our eligible codes are 'post_settlement_delivery_failed' and 'network_timeout'?"},{"title":"Automated agent payment dispute resolution","prompt":"My AI agent just had a settled x402 transaction where delivery failed with code 'timeout'. Check if that failure code makes it eligible for a refund against the list of approved refund codes."},{"title":"Verifying refund policy compliance before issuing refund","prompt":"Before we issue a refund, check: the payment was settled, delivery was unsuccessful, and the failure code is 'connection_refused' — does that pass our eligible codes check for 'connection_refused' and 'post_settlement_delivery_failed'?"}],"resultDescription":"Returns a JSON object indicating whether the payment is eligible for a refund (true/false), the matched failure code, the operation name, processing status, and a SHA-256 hash of the input for auditability — with a guarantee of no external calls or data retention.","failureModes":["Missing or invalid 'settled' or 'delivered' boolean fields causing validation error","Failure code not present in eligible_codes list resulting in eligible=false","eligible_codes array exceeding 256 items causing rejection","Malformed failure_code string exceeding 8192 characters","Payment protocol error (HTTP 402) if USDC payment is not included or insufficient"],"whenToPreferThis":"Use this endpoint when an AI agent needs a fast, verifiable, auditable in-memory computation to determine x402 refund eligibility without any data retention or external side effects. Prefer this over custom logic when operating within the x402 payment protocol ecosystem on Base or Solana, especially when you need cryptographic evidence of the computation via input hash for dispute resolution.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T04:48:57.045Z","isFirstParty":false,"canonicalSlug":"delx-commerce-x402-refund-eligibility-check-1564d930"}