{"uid":"cap_4CYzsxoozXWC1SCSu9CGf","slug":"refund-and-withdrawal-window-enforcement-decision-procedure-960bd123","name":"Refund and Withdrawal Window Enforcement Decision Procedure","description":"Decision procedure for an autonomous agent enforcing refund eligibility and withdrawal processing windows against a merchant. Inputs: merchant refund policy (window length, conditions, evidence required), withdrawal terms (processing time, fee schedule, cancellation rights), payment rail receipts, and the current clock state. Outputs a ranked action: claim-within-window (submit refund with required evidence and receipt chain), wait-and-recheck (window still open, merchant SLA not yet breached),","url":"https://k2so.wrong.systems/api/services/refund-and-withdrawal-window-enforcement-decisio?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","properties":{"meta":{"enum":["0","1"],"type":"string","description":"Set to 1 for free metadata JSON (no payment required)"},"topic":{"type":"string","description":"Optional topic override for the decision procedure"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","title":"refund-and-withdrawal window enforcement decision procedure for autonomous agent paid response","$schema":"https://json-schema.org/draft/2020-12/schema","required":["ok","paid","service","provider","result"],"properties":{"ok":{"type":"boolean"},"paid":{"type":"boolean"},"result":{"type":"object","required":["ok","service"],"properties":{"ok":{"type":"boolean","description":"Handler success"},"brief":{"type":"string","description":"Decision procedure prose for agents"},"model":{"type":"string"},"topic":{"type":"string"},"service":{"type":"string","description":"Service slug"},"procedure":{"type":"string"},"generatedAt":{"type":"string","description":"ISO-8601 timestamp"},"generationSource":{"enum":["llm","reasoning","deterministic"],"type":"string"}}},"payment":{"type":"object","properties":{"code":{"type":"string"},"payer":{"type":"string"},"detail":{"type":"string"},"selfPay":{"type":"boolean"},"transaction":{"type":"string"}}},"service":{"type":"string"},"provider":{"type":"string","const":"K-2SO"}}}}}}},"responseSchema":{"type":"json","example":{"ok":true,"paid":true,"result":{"ok":true,"brief":"plain prose decision procedure (120+ words)","model":"deepseek/deepseek-v4-flash-0731","topic":"string topic","service":"refund-and-withdrawal-window-enforcement-decisio","procedure":"same as brief","generatedAt":"2026-01-01T00:00:00.000Z","generationSource":"deterministic"},"service":"refund-and-withdrawal-window-enforcement-decisio","provider":"K-2SO"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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":"down","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_nkZs9NVJOhmXRwmkxgU_U","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Provides an AI agent with a ranked action recommendation for enforcing refund eligibility and withdrawal processing windows against a merchant, based on policy terms, receipts, and current time.","exampleAgentPrompt":"I paid merchant XYZ via x402 three days ago and their refund policy says I have 7 days to claim with a receipt — can you check the current time and my payment receipt and tell me whether I should submit the refund claim now or wait, and what evidence I need to include?","exampleUseCases":[{"title":"Agent-enforced refund eligibility check","prompt":"I bought a service from a merchant yesterday and their policy allows refunds within 48 hours with proof of payment — it's been 20 hours, can you look at my receipt and tell me if I should file the refund claim now or hold off?"},{"title":"Withdrawal window SLA breach detection","prompt":"My x402 withdrawal was supposed to be processed within 2 business days and it's been 3 — can you check the withdrawal terms, my payment receipt, and today's date to tell me if the merchant has breached their SLA and what I should do next?"},{"title":"Cancellation rights decision during processing window","prompt":"I initiated a payment 30 minutes ago and the merchant's terms say I can cancel within 1 hour — can you evaluate those cancellation terms against the current time and my receipt and tell me whether I still have the right to cancel and how to do it?"}],"resultDescription":"A structured response containing a ranked action recommendation (e.g. claim-within-window or wait-and-recheck), prose decision procedure text for the agent, the topic and service slug, an ISO-8601 generation timestamp, and the generation source (llm, reasoning, or deterministic). The response also includes payment confirmation fields.","failureModes":["Missing or malformed payment receipt prevents eligibility computation","Clock state not provided causes inability to assess window timing","Merchant policy terms are ambiguous or incomplete, reducing decision confidence","Payment not confirmed results in 402 response requiring x402 payment","Topic override not recognized returns default procedure","LLM generation failure may result in empty or null brief field"],"whenToPreferThis":"Use this endpoint when an autonomous agent needs to make a time-sensitive decision about whether to submit a refund claim, wait for a merchant SLA to elapse, or exercise cancellation rights — specifically in x402 payment contexts where policy windows, evidence requirements, and fee schedules must be evaluated against real-time clock state. Prefer this over general legal or policy lookup endpoints when the decision must be action-ranked and agent-executable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-01T00:27:21.140Z","isFirstParty":false,"canonicalSlug":"refund-and-withdrawal-window-enforcement-decision-procedure-960bd123"}