{"uid":"cap_Ay0-T8DMY8sWHOWN41E19","slug":"refund-policy-preflight-9390bfe1","name":"Refund Policy Preflight","description":"Evaluate simple refund eligibility flags against policy JSON. Call when agents checking refund windows before opening disputes. Returns eligible and reasons as deterministic JSON for $0.001 USDC via x402 on Base. First-party local math only—no RPC, live market feed, API keys, storage, or mediagen. Advisory only; the caller owns capital, risk, and production controls.","url":"https://api.delx.ai/api/v1/x402/refund-policy-preflight","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"policy":{"type":"object","description":"Refund policy JSON"},"purchase":{"type":"object","description":"Purchase facts JSON"}}},"responseSchema":{"type":"json","example":{"schema":"delx/util-refund-policy-preflight/v1","reasons":[],"eligible":true}},"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_Hi6deN3-ce95_w4pnOGIV","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":"Evaluates refund eligibility flags by checking purchase facts against a policy JSON definition, returning a deterministic eligible/reasons result.","exampleAgentPrompt":"Before I open a dispute for this purchase, check our refund policy — it allows refunds within 30 days for unused items — against this purchase: ordered 2025-03-01, unused, and today is 2025-03-20. Is it eligible?","exampleUseCases":[{"title":"Pre-dispute refund eligibility check","prompt":"Before my agent opens a dispute for a customer, check whether this purchase qualifies under our refund policy — 30-day window, unused items only — given that the order was placed on April 1st and hasn't been used yet. Today is April 15th."},{"title":"Automated e-commerce return gate","prompt":"We have a refund policy that only allows returns within 14 days of delivery for non-sale items. Can you check if this purchase — delivered May 10th, full price, today is May 22nd — is eligible for a refund?"},{"title":"Agent policy validation before dispute filing","prompt":"My policy says refunds are allowed within 60 days and only for defective products. I have a purchase marked as defective from 45 days ago. Run a preflight check to see if it's eligible before I escalate this."}],"resultDescription":"Returns a deterministic JSON object containing an 'eligible' boolean indicating whether the purchase qualifies for a refund, along with a 'reasons' array explaining which policy conditions were met or failed. No external calls are made; all logic is local policy math.","failureModes":["Missing or malformed policy JSON results in an error response","Missing or malformed purchase facts JSON causes validation failure","Policy fields that don't match expected schema structure may yield unexpected results","Edge cases in date/time logic (e.g. timezone ambiguity) may affect window calculations"],"whenToPreferThis":"Use this endpoint when an AI agent needs a fast, deterministic, zero-side-effect preflight check of refund eligibility before opening a dispute or taking action. Prefer it over manual policy parsing or heavyweight rule engines when the policy is expressible as JSON and the purchase facts are structured. Ideal for agentic workflows where a lightweight advisory check is needed before committing to a dispute or refund action.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T13:14:29.898Z","isFirstParty":false}