x4PayAPI Market

What PayAPI's test payment sends (canary payer spec)

Listing on PayAPI is free, and PayAPI takes 0% of each job. Before a listing gets the Verified badge, PayAPI makes one small real payment to your paid route (our "test payment", internally the canary). This page says exactly what that payment looks like, so your server accepts it first time.

Last updated: 27 November 2026

1. The short version (Base)

Base test payment

Field
What our payer does
x402 version
v2 preferred. If your 402 body is v1 but your PAYMENT-REQUIRED header is a valid v2 challenge, we pay the v2 header. v1-only servers are paid as v1.
Request header we send
v2: PAYMENT-SIGNATURE. v1: X-PAYMENT. The value is base64 JSON of the x402 PaymentPayload, built by the official x402 SDK. We send one header, never both.
Where we read your 402
The JSON body accepts[] first. If the body has no accepts[], the base64 PAYMENT-REQUIRED header (also X-PAYMENT-REQUIRED).
Scheme
exact only (EIP-3009 transferWithAuthorization). Not upto, not batch-settlement.
Network
eip155:8453 (Base mainnet). Legacy v1 name base is also read. Testnets are never paid.
Asset
Circle-native USDC on Base: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913. extra.name must be USD Coin and extra.version 2.
Amount
amount (v2) or maxAmountRequired (v1), as an integer in USDC base units (6 decimals). 10000 = $0.01.
payTo
Must equal the wallet on your listing exactly. If it does not, we do not pay. This check is never relaxed.
Extensions
We echo the extensions object from your 402 back in our payload.
Settlement
We do not settle for you. Your server (via your facilitator) verifies our signed authorisation and submits it on-chain. If your server does not submit it, nothing moves and nothing is charged.
Price cap
$0.10 per call. Routes priced above $0.10 are not tested from PayAPI's balance (see section 4).
Retries
One paid attempt per route per day.
Success
HTTP 200 with your real product, plus a PAYMENT-RESPONSE (v1: X-PAYMENT-RESPONSE) header with the transaction hash. We also confirm the USDC transfer on Base ourselves.

2. Other chains

Your listing still needs a Base accept. Other rails are read in addition to Base, not instead of it.

Other chains

Chain
Network string we accept
Circle-native USDC
Notes
Solana
solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp (v1 aliases solana, solana-mainnet, solana-mainnet-beta are read)
mint EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
exact only. extra.feePayer is required (your facilitator pays the fee). Same header rule: v2 PAYMENT-SIGNATURE, v1 X-PAYMENT. Devnet is never paid.
Algorand
algorand:wGHE2Pwdvd7S12BL5FaOP20EGYesN73k (the full-hash form algorand:wGHE2Pwdvd7S12BL5FaOP20EGYesN73ktiC1qzkkit8= is also read). The short algorand is not a valid x402 network.
ASA 31566704
x402 v2 only, exact only, header PAYMENT-SIGNATURE. extra.feePayer is optional.
Polygon, Arc, Avalanche, Sei
eip155:137, eip155:5042, eip155:43114, eip155:1329
Circle-native USDC only (bridged USDC.e never counts)
Registered but switched off for test payments today. TBD when they open.
Sui
sui:mainnet
Circle-native USDC only (Wormhole wUSDC never counts)
Test payer not enabled yet. TBD.

3. A 402 our payer can pay first time (Base, v2)

{
  "x402Version": 2,
  "resource": { "url": "https://api.example.com/v1/quote?symbol=ETH", "mimeType": "application/json" },
  "accepts": [{
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "10000",
    "payTo": "<the Base wallet on your PayAPI listing>",
    "maxTimeoutSeconds": 300,
    "extra": { "name": "USD Coin", "version": "2" }
  }]
}

Then your server must: read PAYMENT-SIGNATURE, verify and settle through your facilitator, and return HTTP 200 with the product and a PAYMENT-RESPONSE header.

4. Price above $0.10

PayAPI does not pay a test above $0.10 from its own balance. To get a route above $0.10 tested, send the test price plus 20% for gas, in USDC on Base, to the PayAPI canary wallet 0x171d8021b98c53DCbB3c9C30CBbBeb1b01850fCA. Any sender is fine. We match the deposit, then run one paid test from it. A deposit does not guarantee a listing; the test still has to pass review.

5. Why test payments were refused (21 to 27 Nov 2026) and how to fix each

205 listings refused our signed payment in the week to 27 Nov. In almost every case our payment matched the listing's own 402. The refusal came after the header arrived:

  1. Your server cannot verify any payment (105 listings). Error: payment verification failed: no payment-token verification key. Your verifier or facilitator credentials are not configured in production. Fix: set the verification key or facilitator config, then test one paid call yourself.
  2. Server error after the payment header (36). HTTP 500, 502, 503 or a timeout. Check the paid path runs when a valid header is present, not only the unpaid branch.
  3. Wrong inputs or a path template (18). The listed URL still has {placeholders} or needs a body or query values. List a concrete, working example URL (and method and body for POST).
  4. Your server rejected the payload as not matching its own requirements (12). For example invalid_payment_requirements, extension_echo_mismatch, "payment is not bound to this resource", address_not_registered. Make resource.url in your 402 the exact URL being called, keep extensions stable between the 402 and the paid call, and accept any funded buyer wallet (no allowlist).
  5. 402 again with no reason (12). Your server ignored or failed to decode our header. For v2, read PAYMENT-SIGNATURE. Log the verify result.
  6. Payment backend temporarily down (12). For example "settlement pricing unavailable", "spending-cap store unreachable", 429. Fix the dependency; we retry no sooner than the next day.
  7. Header name mismatch (4). Your 402 says x402Version: 2 but your server only reads X-PAYMENT. Either read PAYMENT-SIGNATURE (v2) or advertise v1 consistently.
  8. Your facilitator refused to settle (4). For example PAYEE_NOT_SERVED_HERE, or a facilitator account with no payment method. Use a facilitator that serves your payTo on Base mainnet.
  9. Extra headers required (2). Idempotency-Key or API auth on top of x402. A listed route must be payable with the x402 header alone.

6. Checklist before you submit

Frequently asked questions

Which header does the test payment send?

v2: PAYMENT-SIGNATURE. v1: X-PAYMENT. The value is base64 JSON of the x402 PaymentPayload, built by the official x402 SDK. We send one header, never both.

What if payTo does not match the wallet on the listing?

payTo must equal the wallet on your listing exactly. If it does not, we do not pay. This check is never relaxed.

What is the price cap for a test from PayAPI's balance?

$0.10 per call. Routes priced above $0.10 are not tested from PayAPI's balance. To get a route above $0.10 tested, send the test price plus 20% for gas, in USDC on Base, to the PayAPI canary wallet 0x171d8021b98c53DCbB3c9C30CBbBeb1b01850fCA. Any sender is fine. We match the deposit, then run one paid test from it. A deposit does not guarantee a listing; the test still has to pass review.

What counts as a successful test payment?

HTTP 200 with your real product, plus a PAYMENT-RESPONSE (v1: X-PAYMENT-RESPONSE) header with the transaction hash. We also confirm the USDC transfer on Base ourselves.

Related: marketplace · for agents · FAQ · how we verify

What PayAPI's test payment sends: x402 headers, Circle USDC on Base, the payTo check, and the $0.10 cap.