# Conditional Settlement Rule Attachment for x402 Payments

> Conditional Settlement Rule Attachment for x402 Payments 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-16).

Returns an agent-facing decision procedure for encoding and attaching verifiable conditions (delivery proof, time bounds, multi-party approval, refund triggers) to an x402 payment so that rules travel with the settlement on-chain.

## Facts

- Endpoint: GET https://k2so-8080.on.ascii.dev/api/services/conditional-settlement-rule-attachment-procedure?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/conditional-settlement-rule-attachment-for-x402-payments-1a2ad9b3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__8HwxqBFtIh2aDtpQqsKp

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 conditional-settlement-rule-attachment-for-x402-payments-1a2ad9b3
```

Example prompt: Walk me through how to attach a conditional settlement rule to an x402 payment — specifically one that only finalizes after delivery proof is confirmed — including how to encode it as an on-chain predicate, what verification steps to run, and what refund path to follow if the condition is breached.

## When to prefer this

Choose this endpoint when an AI agent needs structured, actionable guidance on making x402 payments conditional — i.e., when the payment logic itself must embed rules (delivery proof, time windows, multi-sig approval, refund triggers) rather than relying on off-chain enforcement. Prefer this over generic smart-contract documentation when you need an agent-optimized decision procedure with breach and kill-criteria handling already reasoned through.

## Known failure modes

- Payment not made: returns 402 if the $0.002 USDC x402 payment header is missing or invalid
- Topic not recognized: may return an unhelpful or generic procedure if the topic override is unsupported
- LLM generation failure: result.ok may be false with no procedure prose if the backend reasoning step fails
- Stale content: generatedAt timestamp may reveal outdated guidance if the service hasn't refreshed its reasoning
- Network timeout: the k2so-8080.on.ascii.dev host may be intermittently unreachable as a non-enterprise service

## How this service works

Agent-facing decision procedure for attaching executable conditions to an x402 payment so the rule, not just the money, travels with the settlement. Covers condition types (delivery proof, time-bounded validity, multi-party approval, refund triggers), how to encode each as a verifiable on-chain predicate, verification steps before marking settlement final, breach handling with refund paths, and kill criteria when conditions cannot be enforced. Inputs: payment intent, counterparty address,

## Output

The endpoint returns a structured decision-procedure document (prose) covering: which condition type to select (delivery proof, time-bounded validity, multi-party approval, or refund trigger), how to encode each as a verifiable on-chain predicate, pre-settlement verification steps, breach handling with refund paths, and kill criteria when conditions cannot be enforced. Also returns metadata like the generating model, ISO-8601 timestamp, and generation source.

## 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": "Conditional settlement rule attachment for x402 payments 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": "strin
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/conditional-settlement-rule-attachment-for-x402-payments-1a2ad9b3/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)
