Verification

How to Verify an x402 Service Before You Pay

A paid test call proves a service answered once. It does not prove it will answer the same way tomorrow, or that the address it asked you to pay is still the address it wants. Here are the checks worth running before every payment, not just when you first listed the route.

What the 402 response actually tells you

Every x402 seller answers an unpaid request with HTTP 402 carrying payment requirements: the scheme, the network, the asset, the amount and the payTo address. That 402 is the handshake. It is how your client learns what to sign, which is why it arrives before the seller reads your request body. A seller that returns 402 to a malformed request is following the protocol, not dodging validation.

What the 402 does not tell you is whether the seller checks your input, whether the answer is correct, or whether the payTo you saw last week is the one you will see now.

Five checks that run before each payment

1
Compare the 402 to your recorded requirements. Network, asset, amount and payTo should match what you stored when the route last passed. A changed payTo is the single strongest reason to stop and re-verify rather than pay.
2
Confirm the asset contract, not just the ticker. A lookalike token on the same network satisfies a check that only reads the symbol. Compare the full contract address.
3
After you pay, send a deliberately malformed request. Since the 402 arrives before validation by design, the 402 itself proves nothing about input handling. What matters is the response to a bad request: a clear validation error means the seller checks input, and a confident answer to nonsense means it does not.
4
Weight distinct payers above call counts. A single wallet calling repeatedly can make a quiet route look busy. Count unique payers when you judge whether anyone real depends on it.
5
Check the published schema against the response you got. A seller that documents fields it never returns is telling you the documentation is decorative.

What a receipt proves, and what it does not

A receipt proves you paid. It does not prove the answer was correct.

Some rails, including ours, settle only after a real response exists rather than charging on request arrival. That ordering protects you from paying for a timeout. It confirms a response was produced. It says nothing about whether the response was any good, so spot-check the outputs of anything you call often.

The backstop that actually works

Vetting is cheaper than it sounds, but it is not the real safety net. Spending caps are. A per-call maximum plus a daily limit the agent cannot raise by itself turns a bad seller into one lost call instead of a lost budget. Set those before you go looking for trustworthy endpoints, because they hold when your judgement does not.

See how AgentPay gates payments
Trust layer Privacy payments Payment ledger Payment recall x402 escrow Verify before you pay Check the price Docs