Where x402 Applies
| Surface | When 402 Happens |
|---|---|
| Verification API | POST /api/v1/verification — caller has no credits |
| Gate check API | GET /api/v1/proofs/check — caller has no credits |
| MCP tools | Tool call returns payment-needed when no credits |
| Hosted checkout | When the embedding app or server makes billable API calls without credits |
Flow
- Request — Call verification or gate check.
- 402 — API returns
402 Payment Requiredwith quote. - Pay — Pay quoted amount in USDC (e.g., Base).
- Retry — Resend request with
PAYMENT-SIGNATURE: <receipt>.
Using x402 Through Verifiers and Checkout
- Verifiers — Verification consumes credits. If you call the API directly and have no credits, you get 402. Pay, retry with receipt, verification proceeds.
- Gates — Gate checks consume credits. Use
VerifyGateorGET /api/v1/proofs/check. Same flow: no credits → 402 → pay → retry. - Hosted checkout — Users at
https://neus.network/verifycomplete verifiers. Payer is resolved server-side (sponsor, gate creator, or user signature). x402 applies when your server makes gate checks or verification calls on behalf of users and runs out of credits. - Agents — Delegate with
scope: "payments:x402"so the agent can pay per use when acting on your behalf.
Header
Who Pays (Server Resolution)
- x402 receipt — Pay-per-use (you just paid)
- Sponsor grant — App-sponsored
- Gate billing — Gate creator pays
- Signature — User self-pay
- No payer — Demo cap (limited free)