# Straelo Relay x402 Payment Preflight Decision

> Straelo Relay x402 Payment Preflight Decision is a paid API for AI agents from relay.straelo.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-12-02).

Performs an offline, read-only preflight check on an x402 v2 PAYMENT-REQUIRED challenge and returns a deterministic PAY, REVIEW, or DO_NOT_PAY decision by comparing it against declared buyer intent.

## Facts

- Endpoint: POST https://relay.straelo.com/x402-payment-preflight-decision?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/straelo-relay-x402-payment-preflight-decision-1b5b97cb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_IVh_y_N8BW0qvuSS6fq5Y

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 straelo-relay-x402-payment-preflight-decision-1b5b97cb -d '<json body>'
```

Example prompt: Before paying this x402 challenge, run a preflight check: my intent is to pay 'DataProvider' for their 'weather-data' service at 'https://api.dataprovider.com/v1/weather', expecting 0.01 USDC on Base to destination 0xAbC123... — here's the PAYMENT-REQUIRED JSON they returned. Tell me if I should PAY, REVIEW, or DO_NOT_PAY.

## When to prefer this

Use this endpoint when an AI agent needs a safe, offline, deterministic safety gate before deciding whether to authorize or sign an x402 micropayment. It is specifically designed for the x402 v2 protocol and returns a structured PAY/REVIEW/DO_NOT_PAY verdict with mismatch details — making it far more useful than generic validation logic for crypto payment flows. Prefer it over manual intent comparison when you need auditable fingerprinting, material-change detection against prior snapshots, or policy enforcement on asset, network, destination, and amount constraints. Do not use it if you need actual payment execution.

## Known failure modes

- Malformed or missing payment_required JSON returns a validation error
- Missing required intent fields (seller, service, resource) causes a 400-level rejection
- Resource URL not in absolute HTTP(S) format triggers schema validation failure
- Amount provided in atomic units instead of decimal USDC may produce incorrect comparison
- Previous snapshot schema mismatch prevents change detection, returning partial result
- Network downtime at relay.straelo.com results in connection error (no fallback — this is an offline computation endpoint so availability depends on the host)

## How this service works

Check an x402 payment request before signing or paying and return a deterministic PAY, REVIEW or DO_NOT_PAY decision.
USE WHEN: agent needs deterministic verification of a payment requirement before deciding whether to pay.
DO NOT USE WHEN: agent expects this tool to execute the payment.
Offline/read-only preflight: no network calls, signing, settlement, or payment execution. Decision derives from comparing declared intent against the supplied x402 v2 PAYMENT-REQUIRED; mismatches yield

## Output

A deterministic decision object containing one of three verdicts — PAY, REVIEW, or DO_NOT_PAY — along with the specific mismatches found between the buyer's declared intent and the observed x402 v2 challenge fields (seller, service name, resource URL, asset address, payment destination, network, and amount). Optionally includes a material-change flag when a previous snapshot is provided for stateless change detection.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "intent": {
   "type": "object",
   "required": [
    "seller",
    "service",
    "resource"
   ],
   "properties": {
    "seller": {
     "type": "string",
     "description": "Caller-supplied seller label included in the fingerprint; identity is not externally verified."
    },
    "service": {
     "type": "string",
     "description": "Expected resource.serviceName."
    },
    "resource": {
     "type": "string",
     "format": "uri",
     "description": "Expected exact absolute HTTP(S) resource URL."
    },
    "expected_asset": {
     "type": "string",
     "description": "Optional expected EVM asset address."
    },
    "expected_amount": {
     "type": "string",
     "description": "Optional expected USDC decimal amount, not atomic units."
    },
    "expected_pay_to": {
     "type": "string",
     "description": "Optional expected EVM payment destination."
    },
    "amount_tolerance": {
     "type": "string",
     "description": "Optional permitted USDC decimal increase."
    },
    "expected_network": {
     "type": "string",
     "description": "Optional expected CAIP-2 network."
    }
   },
   "description": "Buyer-declared payment policy: expected seller label, service, resource URL, and optional payment constraints (asset, network, destination, amount, tolerance) used to evaluate consistency against the observed x402 challenge."
  },
  "payment_required": {
   "type": "object",
   "description": "Observed x402 v2 PAYMENT-REQUIRED challenge decoded as JSON."
  },
  "previous_snapshot": {
   "type": "object",
   "description": "Optional prior snapshot for stateless material-change detection against a prior result."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "changes": [],
  "matched": {},
  "coverage": {},
  "decision": "PAY",
  "evidence": {},
  "snapshot": {},
  "assessment": "CONSISTENT",
  "mismatched": {},
  "reason_codes": [],
  "checks_skipped": [],
  "external_calls": [],
  "checks_performed": [],
  "payment_fingerprint": "sha256"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/straelo-relay-x402-payment-preflight-decision-1b5b97cb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from relay.straelo.com](https://www.zero.xyz/host/relay.straelo.com/llms.txt)
