{"uid":"cap_qpzSkY8MsNW71iSdpQTEH","slug":"x402-quickstart-test-payment-endpoint-loop2-c4e06d69","name":"x402-quickstart Test Payment Endpoint (loop2)","description":"Complete x402 quickstart bundle: v2 Base USDC seller endpoint + EIP-3009 buyer client + deterministic product bundle + tests.","url":"https://loop2-quickstart.manhliemcn4euwlu.workers.dev/test-pay","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"queryParams":{"type":"object","required":["format"],"properties":{"format":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"format":{"type":"string"},"example":{"type":"string"}}}}},"responseSchema":{"type":"binary","example":"{status:settled, tx, payer}"},"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_5x3k8erccslQx5BucHbT_","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 micropayment of $0.01 USDC via the x402 protocol and returns a settled transaction confirmation with payer details.","exampleAgentPrompt":"Send a $0.01 USDC test payment through the x402 quickstart endpoint and show me the settlement status, transaction hash, and payer address so I can confirm my buyer client is working correctly.","exampleUseCases":[{"title":"Validate x402 buyer client setup","prompt":"Run a test payment of $0.01 USDC through the x402 quickstart endpoint and tell me if it settled — I want to confirm my EIP-3009 buyer client is configured correctly before wiring it into my app."},{"title":"Demo micropayment API to stakeholders","prompt":"Make a live $0.01 USDC payment to the x402 test endpoint right now so I can show my team a real pay-per-call transaction settling on Base in action."},{"title":"Debug x402 payment pipeline","prompt":"Hit the x402 quickstart test-pay endpoint and return the full settlement response including transaction hash and payer address — I'm troubleshooting why my payment pipeline isn't confirming."}],"resultDescription":"Returns a binary payload containing a JSON-like object with: settlement status ('settled'), a transaction hash (tx) on the Base network, and the payer's wallet address. Confirms that the $0.01 USDC micropayment was successfully authorized via EIP-3009 and settled on-chain.","failureModes":["Payment header missing or malformed — endpoint returns HTTP 402 with payment requirements","Insufficient USDC balance — authorization fails, payment rejected","Invalid EIP-3009 signature — transaction not accepted","Network congestion on Base — settlement delayed or timed out","Missing required 'format' query parameter — request rejected with validation error","Expired authorization signature — EIP-3009 validity window passed"],"whenToPreferThis":"Choose this endpoint when you need to test or demonstrate the x402 pay-per-request protocol using USDC on Base with EIP-3009 authorization. It is the canonical quickstart/test surface for validating that a buyer client can successfully authorize, submit, and confirm a $0.01 USDC micropayment — ideal for integration testing, demos, or debugging x402 payment pipelines before connecting to production endpoints.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:36:25.149Z","isFirstParty":false}