{"uid":"cap_g9vNKma2SzFB0m8rbHczI","slug":"prepaid-digital-goods-purchase-gate-for-agents-8f3b9dba","name":"Prepaid Digital Goods Purchase Gate for Agents","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-8080.on.ascii.dev/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":null,"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_pNXiu0wEX5NG2lNktssAQ","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":"Runs a deterministic multi-step decision procedure before an agent spends money on gift cards, eSIMs, or prepaid top-ups via x402, rejecting purchases that fail classification, refundability, denomination, regional validity, or expiry checks.","exampleAgentPrompt":"Before you buy that $25 Amazon gift card for the recipient in Germany, run it through the prepaid digital goods purchase gate to confirm it's regionally valid, non-refundable once issued, and that the denomination doesn't exceed 20% of the task budget.","exampleUseCases":[{"title":"eSIM regional validity check","prompt":"I want to buy a 10 GB eSIM for a user traveling to Japan — can you verify it's valid for that region, check the redemption window, and confirm it's safe to purchase before we settle?"},{"title":"Gift card denomination overspend guard","prompt":"My agent is about to buy a $50 Steam gift card but the total task value is only $60 — run the purchase gate to make sure the denomination isn't overspending on unusable balance before approving."},{"title":"Prepaid mobile top-up expiry check","prompt":"Check whether this $10 prepaid top-up for a T-Mobile number in the US is still within its redemption window and won't expire before the user can redeem it — gate the purchase before we proceed."}],"resultDescription":"Returns a JSON object with an ok boolean, a paid flag, a result object containing a handler success flag, decision procedure prose (brief), the service slug, topic, model used, generation source (llm/reasoning/deterministic), and ISO-8601 timestamp. Also includes payment metadata (payer, transaction, selfPay) confirming the x402 charge was processed.","failureModes":["Item fails classification as prepaid digital goods — gate rejects with ok: false","Denomination exceeds 20% of task value — overspend rejection","Item not valid for delivery region/network — regional validity failure","Redemption window has expired or is too short — expiry rejection","Fulfillment system cannot confirm code/voucher delivery — delivery check failure","Malformed query parameters return schema validation error","Endpoint unavailable returns HTTP error with no result payload"],"whenToPreferThis":"Use this endpoint when an AI agent is about to autonomously purchase any prepaid digital good (gift card, eSIM, prepaid top-up) via x402 and needs a deterministic pre-purchase gate that enforces classification, refundability, denomination budgeting, regional/network validity, and expiry checks in a single call — especially when the purchase is non-refundable once issued and the agent must not overspend on unusable balance.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T06:40:35.431Z","isFirstParty":false,"canonicalSlug":"prepaid-digital-goods-purchase-gate-for-agents-8f3b9dba"}