# x402 Agent Payment Policy Compiler

> x402 Agent Payment Policy Compiler is a paid API for AI agents from gpt55.558686.xyz, paid per call via x402, $0.012/call, status unknown (last checked 2026-10-19).

Compiles agent spending rules into a structured buyer-owned payment policy with spend caps, service allowlists, MCP/Flowise guard configs, x402 prepay checklists, denial examples, and audit log schema.

## Facts

- Endpoint: POST https://gpt55.558686.xyz/v1/tools/x402-agent-payment-policy-compiler?utm_source=zero.xyz
- Price: $0.012/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-agent-payment-policy-compiler-08dc795a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VzxkKtuHuA0cHpSbI0Csx

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 x402-agent-payment-policy-compiler-08dc795a -d '<json body>'
```

Example prompt: Compile a buyer-owned x402 payment policy for my agent: daily budget of $5 USDC, max $0.05 per call, hourly budget $1 USDC, allow only api.openai.com and gpt55.558686.xyz, deny everything else, expect payment to 0xABC...123 on Base mainnet in USDC, no automatic repurchase, pause after 3 consecutive failures — and include MCP guard config, Flowise guard config, x402 prepay checklist, denial examples, and audit log schema.

## When to prefer this

Choose this endpoint when you need a deterministic, structured payment policy for an AI agent using x402/USDC payments on Base — especially when you want MCP or Flowise guard integration, spend caps, service allowlists, and audit log schemas generated without calling an upstream LLM. Ideal for developers building autonomous agent wallets or payment guardrails.

## Known failure modes

- Input exceeds 700000 characters — request rejected
- daily_budget_usdc or max_usdc_per_call out of allowed range — validation error
- Missing required fields result in incomplete policy sections
- Payment not received via x402 USDC on Base — 402 response before processing
- consecutive_failures_before_pause outside 1-10 range — schema validation failure

## Output

A deterministic structured payment policy document including: spend caps (per-call, hourly, daily), service allowlist and denylist, expected payTo address and network checks, expected asset validation, MCP guard configuration, Flowise guard configuration, x402 prepay checklist, example denial scenarios, and an audit log schema — all scoped to the buyer's agent.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "properties": {
      "expected_asset": {
       "type": "string",
       "maxLength": 120
      },
      "denied_services": {
       "type": "string",
       "maxLength": 10000
      },
      "expected_pay_to": {
       "type": "string",
       "maxLength": 80
      },
      "allowed_services": {
       "type": "string",
       "maxLength": 10000
      },
      "expected_network": {
       "type": "string",
       "maxLength": 80
      },
      "daily_budget_usdc": {
       "type": "number",
       "maximum": 10000,
       "minimum": 0.0001
      },
      "max_usdc_per_call": {
       "type": "number",
       "maximum": 100,
       "minimum": 0.0001
      },
      "hourly_budget_usdc": {
       "type": "number",
       "maximum": 10000,
       "minimum": 0.0001
      },
      "allow_automatic_repurchase": {
       "type": "boolean"
      },
      "consecutive_failures_before_pause": {
       "type": "integer",
       "maximum": 10,
       "minimum": 1
      }
     },
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "tool": {
       "type": "string"
      },
      "fetchedAt": {
       "type": "string"
      }
     },
     "additionalProperties": true
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-agent-payment-policy-compiler-08dc795a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from gpt55.558686.xyz](https://www.zero.xyz/host/gpt55.558686.xyz/llms.txt)
