---
name: check-x402-before-paying
description: Before paying an x402 URL, check what happened when vet402 paid that URL. Do not pay on BLOCK. Show the user the reasons on WARN. Use when an HTTP request returns 402 Payment Required with x402 terms, or when the user asks whether an x402 API delivers.
---

# Check an x402 URL before paying

Run this before you sign or send any x402 payment.

1. Check the URL.
   - With the vet402 MCP server (https://vet402.com/mcp): call `check_x402_seller` with `url`, and `method` if the request is not a GET.
   - Without it: `GET https://vet402.com/api/v1/check?url=<the URL, percent-encoded>`. No key is needed. The JSON is the same as the tool's.
2. Read `recommendation`.
   - `BLOCK`: do not pay. Show the user `reason_codes` and `record_url`.
   - `WARN`: before paying, show the user `reason_codes` and `record_url`, and go on only if the user agrees.
   - `ALLOW`: you may pay.
3. Compare the 402 you received with `verified_terms` (`pay_to`, `amount` in base units, `asset`, `network`, `scheme`). Compare 0x addresses without regard to case. If the 402 asks for a different recipient, asset, network or scheme, or a higher amount, treat it as `WARN` and tell the user what differs.

This only reports what vet402 recorded. vet402 does not pay, sign or hold funds. Whether to pay stays with the user and the user's own rules.
