{"uid":"cap_09miaRNVcC47dkXJjmz93","slug":"badhttp-402-pay-base-x402-payment-test-endpoint-021c57d1","name":"badhttp /402/pay/base — x402 Payment Test Endpoint","description":"A stateless catalogue of HTTP edge cases for testing clients, SDKs and agents: slow responses, broken JSON, redirect loops, truncated bodies, flaky endpoints, and x402 paywalls that misbehave.","url":"https://badhttp.dev/402/pay/base","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"properties":{"type":"string"}}},"responseSchema":{"type":"json","example":{"paid":true,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payer":"0x0000000000000000000000000000000000000000","pay_to":"0x2b14ad50d63c7fee5a33847f95153ac37a690170","network":"eip155:8453","explorer":"https://basescan.org/tx/0x0000000000000000000000000000000000000000000000000000000000000000","scenario":"/402/pay","amount_usd":0.01,"real_money":true,"facilitator":"https://example.invalid","transaction":"0x0000000000000000000000000000000000000000000000000000000000000000","network_name":"base","amount_atomic":"10000"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_F8OAXjx2_UhUo9Clo-C6t","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Accepts a real $0.01 USDC x402 micropayment on Base and returns a confirmation object with transaction details, demonstrating a live x402 paywall flow.","exampleAgentPrompt":"Make a real $0.01 USDC x402 payment to the badhttp test paywall on Base and show me the transaction hash and confirmation details so I can verify my payment client is working correctly.","exampleUseCases":[{"title":"Validate x402 SDK integration","prompt":"Run a live x402 payment test against badhttp's Base paywall for $0.01 USDC and show me the full response — I want to confirm my SDK is sending the payment header correctly and getting back a valid transaction hash."},{"title":"Agent payment capability smoke test","prompt":"Have my agent pay the badhttp x402 test endpoint on Base with $0.01 USDC and tell me whether it got a paid=true confirmation back, so I know the agent can handle 402 payment challenges in production."},{"title":"Inspect x402 payment response structure","prompt":"Hit the badhttp $0.01 USDC paywall on Base and show me exactly what comes back — the payer address, pay-to address, asset contract, network, and explorer link — so I can model my own 402 response format after it."}],"resultDescription":"A JSON object confirming the payment was processed, including: paid (boolean), asset contract address (USDC on Base), payer address, pay-to address, network identifier (eip155:8453), network name ('base'), a Basescan explorer URL for the transaction, the scenario path, amount in USD ($0.01), amount in atomic units (10000), real_money flag (true), facilitator URL, and the transaction hash.","failureModes":["Payment header missing or malformed — server returns 402 with payment requirements","Insufficient USDC balance — payment rejected before confirmation","Wrong network — payment sent on non-Base chain will not be accepted","Facilitator unavailable — transaction may fail or timeout","Replay of same transaction — may be rejected as duplicate","Network congestion on Base — slow confirmation or timeout"],"whenToPreferThis":"Choose this endpoint when you need to test a live, real-money x402 micropayment flow on Base mainnet with USDC, specifically to validate that your x402 client, SDK, or AI agent can correctly handle HTTP 402 challenges, submit payments, and parse the confirmation response. It is intentionally designed as a misbehaving/edge-case server, making it ideal for integration testing and agent hardening rather than production payment use.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:37:17.768Z","isFirstParty":false}