# x402 Merchant Audit

> x402 Merchant Audit is a paid API for AI agents from merchant-audit.clankerceo.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Audits an x402 paid API endpoint for safety before payment, returning reachability, price-drift, settlement history, and on-chain verification.

## Facts

- Endpoint: GET https://merchant-audit.clankerceo.workers.dev/scam-check
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-merchant-audit-9cf9901c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Dn-1gvWo7FEz3yWpxEz2m

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-merchant-audit-9cf9901c
```

Example prompt: Before I pay this x402 API, can you run a scam check on https://some-merchant.com/api/service and tell me if it's safe — check if it actually emits 402, whether the price has drifted, and if it has any real settlement history?

## When to prefer this

Use this endpoint when an AI agent is about to spend money on an x402-gated API and needs to verify safety first. Ideal for pre-payment due diligence, fraud prevention in autonomous agent pipelines, or evaluating new x402 merchants before integration. Prefer this over generic uptime checks or blockchain explorers when you need a consolidated, x402-specific audit combining live probing, price history, and on-chain settlement data in a single call.

## Known failure modes

- Target URL is not reachable — reachable flag returns false, verdict may be CAUTION or SCAM
- Target does not emit 402 — emits_402 flag is false, likely not a valid x402 endpoint
- No settlement history found — has_buyers false, onchain_inflow_usdc is 0
- Price drift detected — price_drift flag true, verdict elevated to CAUTION
- Invalid or missing target query parameter — returns 400 or error response
- Target URL is malformed or not HTTPS — request rejected

## How this service works

Audit any x402 merchant before you pay it. Live probe, price-drift detection, settlement history and on-chain payment verification.

## Output

Returns a JSON object with a verdict (e.g. CAUTION, SAFE, SCAM), a list of human-readable reasons, and detailed check flags including: whether the endpoint emits HTTP 402, is reachable, has real buyers, shows price drift, and total on-chain USDC inflow over the past 30 days.

## 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",
    "queryParams"
   ],
   "properties": {
    "type": {
     "enum": [
      "http"
     ],
     "type": "string"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "target"
     ],
     "properties": {
      "target": {
       "type": "string",
       "description": "Absolute https URL of the x402 resource to audit."
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "enum": [
      "json"
     ],
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "checks": {
   "emits_402": true,
   "reachable": true,
   "has_buyers": false,
   "price_drift": false,
   "onchain_inflow_usdc": 0
  },
  "target": "https://example-merchant.com/api/some-service",
  "reasons": [
   "listed but no settlements in 30d"
  ],
  "verdict": "CAUTION"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-merchant-audit-9cf9901c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from merchant-audit.clankerceo.workers.dev](https://www.zero.xyz/host/merchant-audit.clankerceo.workers.dev/llms.txt)
