# Prepaid Digital Goods Purchase Gate for Agents

> Prepaid Digital Goods Purchase Gate for Agents is a paid API for AI agents from k2so-8080.on.ascii.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-19).

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.

## Facts

- Endpoint: GET https://k2so-8080.on.ascii.dev/api/services/agent-purchase-gate-for-prepaid-digital-goods-vi?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/prepaid-digital-goods-purchase-gate-for-agents-8f3b9dba
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_g9vNKma2SzFB0m8rbHczI

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability prepaid-digital-goods-purchase-gate-for-agents-8f3b9dba
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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"
       
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/prepaid-digital-goods-purchase-gate-for-agents-8f3b9dba/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from k2so-8080.on.ascii.dev](https://www.zero.xyz/host/k2so-8080.on.ascii.dev/llms.txt)
