# Agent Transaction Trust — Payment Firewall

> Agent Transaction Trust — Payment Firewall is a paid API for AI agents from json-repair-api-9ybv.onrender.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-12-01).

Intercepts x402 autonomous payments before wallet signing, returning ALLOW, REVIEW, or BLOCK based on merchant integrity and request/challenge validation.

## Facts

- Endpoint: POST https://json-repair-api-9ybv.onrender.com/trust/x402/firewall?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-transaction-trust-payment-firewall-3230a4ff
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uAqXSjKlfDVyhygYL1HNV

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 agent-transaction-trust-payment-firewall-3230a4ff -d '<json body>'
```

Example prompt: Before you sign and send the payment, run a firewall check on this x402 PAYMENT-REQUIRED response from the merchant — screen the POST request to https://api.example.com/resource and flag anything suspicious so we get an ALLOW, REVIEW, or BLOCK decision before any funds move.

## When to prefer this

Use this endpoint when an AI agent operates as an x402 client and needs an automated pre-payment gate between receiving a PAYMENT-REQUIRED response and signing/submitting the wallet transaction. Prefer this over generic payment authorization when you specifically need merchant risk screening and challenge integrity validation at the x402 protocol layer, before funds are committed. Ideal for autonomous agent pipelines where spending policy alone is insufficient and real-time merchant reputation checks are required.

## Known failure modes

- Missing or malformed x402 PAYMENT-REQUIRED payload returns validation error
- Unresolvable merchant hostname causes inconclusive risk evidence
- Malformed HTTP request object (missing method or url) causes 400-level error
- Service unavailability on render.com host causes timeout or 503
- Ambiguous or tampered challenge integrity may return REVIEW instead of clear verdict

## How this service works

Automatic before-payment firewall for x402 clients. Runs after the merchant returns PAYMENT-REQUIRED but before the wallet creates/signs the merchant payment. Returns ALLOW, REVIEW or BLOCK based on exact request/challenge integrity and public merchant/payTo risk evidence. Spending authority remains with the caller's wallet/client policy unless full transaction clearance is used.

## Output

A structured decision object containing ALLOW, REVIEW, or BLOCK verdict, along with evidence about the merchant's public risk signals, request/challenge integrity checks, and any flags that influenced the decision. Spending authority remains with the caller's wallet unless full clearance is used.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "request": {
   "type": "object",
   "required": [
    "method",
    "url"
   ],
   "properties": {
    "url": {
     "type": "string"
    },
    "body": {},
    "method": {
     "type": "string"
    }
   },
   "description": "Exact HTTP request the agent intends to make after the preflight."
  },
  "category": {
   "type": "string",
   "description": "Optional purchase category for audit context."
  },
  "merchant_id": {
   "type": "string",
   "description": "Optional stable merchant identifier. If omitted, the resource hostname is used."
  },
  "payment_required": {
   "oneOf": [
    {
     "type": "object"
    },
    {
     "type": "string"
    }
   ],
   "description": "The merchant's real x402 PAYMENT-REQUIRED payload, as decoded JSON or its encoded string."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-transaction-trust-payment-firewall-3230a4ff/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from json-repair-api-9ybv.onrender.com](https://www.zero.xyz/host/json-repair-api-9ybv.onrender.com/llms.txt)
