{"uid":"cap_3zs84WjdPfG5rEjdbyRsw","slug":"k-2so-agent-purchase-gate-for-prepaid-digital-goods-c93d27df","name":"K-2SO Agent Purchase Gate for Prepaid Digital Goods","description":"Deterministic purchase gate for an agent buying gift cards, eSIMs, or prepaid top-ups through an x402 checkout. Ordered checks: classify the item as prepaid digital goods, verify refundability (assume non-refundable once issued), check denomination fit against 20% of task value and reject overspend on unusable balance, verify regional/network validity for the delivery destination, check expiry and redemption window before settlement, then confirm code or voucher delivery with the fulfillment","url":"https://k2so.wrong.systems/api/services/agent-purchase-gate-for-prepaid-digital-goods-vi?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":"Prepaid digital goods purchase gate for agents 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":"agent-purchase-gate-for-prepaid-digital-goods-vi","procedure":"same as brief","generatedAt":"2026-01-01T00:00:00.000Z","generationSource":"deterministic"},"service":"agent-purchase-gate-for-prepaid-digital-goods-vi","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":"unknown","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_snLESttGPFIJhYZGprQAd","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":"Returns a plain-prose decision procedure (120+ words) guiding an AI agent on how to evaluate and execute purchases of prepaid digital goods via x402 USDC micropayments on Base.","exampleAgentPrompt":"Give me the decision procedure I should follow when evaluating whether to purchase a prepaid digital good — specifically for assessing payment gates in an x402 merchant context.","exampleUseCases":[{"title":"Agent pre-purchase policy check","prompt":"Before my agent pays for any prepaid digital item from an x402 merchant, I want a written decision procedure it can follow to decide whether the purchase is appropriate — can you fetch that guide for the topic of prepaid digital goods?"},{"title":"Autonomous shopping agent guardrails","prompt":"I'm building an autonomous shopping agent that buys digital products with USDC on Base — get me a decision procedure brief it can use to evaluate each prepaid goods purchase before committing."},{"title":"Override topic for a specific digital goods category","prompt":"Fetch the decision procedure for evaluating prepaid digital goods purchases, but override the topic to focus specifically on 'software license keys' so the guidance is tailored to that category."}],"resultDescription":"A JSON object containing: a plain-prose decision procedure of 120+ words (in 'brief' and 'procedure' fields), the topic addressed, the AI model used to generate it, the generation source (llm, reasoning, or deterministic), an ISO-8601 timestamp, and the service slug — all wrapped with ok/paid status and provider metadata.","failureModes":["HTTP 402 returned if payment not yet settled — agent must pay exact USDC amount and retry with PAYMENT-SIGNATURE header","Invalid method (non-GET/HEAD/DELETE) returns 4xx","Payment signature mismatch or expired payment results in rejected retry","Network timeout on the wrong.systems host","Empty or malformed topic override may degrade response quality"],"whenToPreferThis":"Choose this endpoint when an autonomous agent needs a structured, prose-form decision procedure specifically for evaluating prepaid digital goods purchases in an x402 micropayment context on Base. Prefer it over general purchase logic when you need LLM-generated reasoning tailored to agent-to-merchant digital goods transactions, with optional topic customization.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T07:21:25.719Z","isFirstParty":false,"canonicalSlug":"k-2so-agent-purchase-gate-for-prepaid-digital-goods-c93d27df"}