{"openapi":"3.1.0","info":{"title":"x402 test purchase","version":"0.1.0","description":"A $0.001 paid call that proves your wallet and x402 client work: returns what we saw in your payment, pass/fail checks, your optional challenge, and an Ed25519-signed receipt (plus a settlement receipt with the tx hash right after). Proves one payment path worked at one moment; not a wallet security audit.","termsOfService":"https://ordstirr.com/agents/terms"},"servers":[{"url":"https://test.ordstirr.com"}],"paths":{"/v1/test-purchase":{"post":{"summary":"Tiny paid call that returns a signed receipt proving your wallet and x402 payment setup work. Optional challenge echoed in the receipt. Price: $0.001 USDC per call.","x-payment-info":{"protocol":"x402","price":{"amount":"0.001","currency":"USD","asset":"USDC","atomic":"1000"},"network":"eip155:8453","pay_to":"0x31CA287B2eCe9849db915AFb4cE522f02dB1A1F6"},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"challenge":{"type":"string","maxLength":128,"description":"Optional text you choose (e.g. a nonce); echoed inside the signed receipt so the proof is bound to your request."},"expect":{"type":"object","additionalProperties":false,"properties":{"payer":{"type":"string","description":"Optional: the wallet you expect to pay; checked."}}}}},"example":{"challenge":"agent-7f3a-2026-11-25"}}}},"responses":{"200":{"description":"Paid answer with a signed receipt.","content":{"application/json":{"example":{"ok":true,"result":"payment_verified","challenge":"agent-7f3a-2026-11-25","payment":{"network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","asset_symbol":"USDC","amount_atomic":"1000","amount_usd":"0.001","pay_to":"0x31CA…","payer":"0x0d90…"},"checks":[{"name":"network_matches","pass":true},{"name":"asset_is_usdc","pass":true},{"name":"amount_matches_price","pass":true},{"name":"pay_to_matches","pass":true},{"name":"payer_present","pass":true}],"settlement":{"status":"settles_after_response","receipt_url":"https://…/v1/receipts/<request_id>"},"checked_at":"2026-11-25T17:00:00.000Z","latency_ms":3,"terms_url":"https://ordstirr.com/agents/terms","notice":"Test purchase: proves your wallet and x402 client can pay. It buys nothing else."}}}},"400":{"description":"Bad input. Not charged."},"402":{"description":"Payment required. The PAYMENT-REQUIRED header and resource.description state the price."},"404":{"description":"Lookup found nothing. Not charged."},"429":{"description":"Rate limited. Not charged."},"503":{"description":"Our side failed (or payments not configured). Not charged."}}}}}}