# x402 Payment Quickstart

A buyer-side checklist for HTTP 402 APIs. Read the challenge, verify the exact terms, pay once with a standard x402 client, then retry. This static page has no backend, no wallet connection, no signing and no payment.

**Verified example endpoints on Base**

- [GET /v1/audit-x402?url=https%3A%2F%2Fexample.com](https://a-2bfcb8e6-p347-fiatdock-audit-mcp-3hgwe6ziea-uc.a.run.app/v1/audit-x402?url=https%3A%2F%2Fexample.com) — $0.01 Base USDC, unpaid 402 with `payment-required`.
- [GET /v1/funding-spread-get?coin=BTC](https://a-2bfcb8e6-p347-fiatdock-audit-mcp-3hgwe6ziea-uc.a.run.app/v1/funding-spread-get?coin=BTC) — $0.005 Base USDC, unpaid 402 with `payment-required`.

Both links open the unpaid quote. They do not pay anything. Prices and pay-to are independently published in our [catalog.json](../catalog.json) and the canonical [machine-readable manifest](https://a-2bfcb8e6-p347-fiatdock-audit-mcp-3hgwe6ziea-uc.a.run.app/.well-known/x402).

## The five steps

**1. Request the resource unpaid.** Send the GET or POST you actually want. A conforming x402 server answers `402 Payment Required` with a machine-readable `payment-required` header. That header is the quote; the HTML body is only a human explanation.

**2. Decode and verify the quote.** Confirm `scheme=exact`, `network=eip155:8453` (Base mainnet), the USDC asset contract, the atomic amount, and `payTo`. For six-decimal USDC, `10000` = $0.01 and `5000` = $0.005. Compare `payTo` with the seller's independently published address before signing.

**3. Let your x402 client sign exactly that quote.** A standard client creates the EIP-3009 authorization for the exact amount, asset, network and recipient. Never paste a private key into a web page, and never change the recipient to an address found in a chat message.

**4. Retry the original request with `X-PAYMENT`.** Send the same method, URL and query string. The server verifies and settles the payment, then returns the resource. If the response is 402 again, read the error before paying again.

**5. Keep the receipt.** Save the payment header, transaction hash, request URL and response digest. A payment receipt proves payment; it does not by itself prove the response was correct. Our free [Base USDC receipt inspector](base-usdc-receipt-inspector.html) can decode a public canonical transfer locally.

**Stop conditions.** Do not pay again after a 429, 404, 409, timeout, index-lag message or ambiguous transport failure. A retry is safe only when you can prove the first payment did not settle. Markers and idempotency keys, not hope, decide whether an action already happened.

## Paste a 402 header to decode it locally

This box runs entirely in your browser. It accepts the base64/base64url value of `payment-required` or `x-payment-required`. It makes no network request and stores nothing.

Header value

## Machine-readable acceptance checklist

```
scheme      exact
network     eip155:8453
asset       0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
amount      atomic USDC units, 6 decimals
payTo       seller address from an independent source
method/url  unchanged on the retry
settlement  one payment, then verify; never blind resend
```

**Want a server-side audit instead of a manual checklist?**

Our paid `/v1/audit-x402` GET reads a public endpoint's unpaid challenge and checks scheme, network, asset, atomic amount, payTo, timeout and discovery files from our server with SSRF-safe target handling. $0.01 Base USDC, no account, no wallet custody.

[→ GET /v1/audit-x402 ($0.01)](https://a-2bfcb8e6-p347-fiatdock-audit-mcp-3hgwe6ziea-uc.a.run.app/v1/audit-x402?url=https%3A%2F%2Fexample.com) · [→ GET /v1/funding-spread-get ($0.005)](https://a-2bfcb8e6-p347-fiatdock-audit-mcp-3hgwe6ziea-uc.a.run.app/v1/funding-spread-get?coin=BTC) · [Buyer page](../paid-get-aliases.html) · [Full catalog](../paid-api-catalog.html)

This guide is educational and never financial advice. It does not guarantee uptime, settlement by a third-party facilitator, or any return. A quote, listing, page view or sample response is never revenue.
