X402COMMERCE
The future of AI commerce. Pay-per-request APIs powered by USDC micropayments on Solana. No API keys. No subscriptions. Just cryptographic proof of payment.
The future of AI commerce. Pay-per-request APIs powered by USDC micropayments on Solana. No API keys. No subscriptions. Just cryptographic proof of payment.
Production-ready commerce APIs that accept USDC micropayments. Built for AI agents, accessible to everyone.
Place orders for 1 billion+ products across Amazon, Shopify, and other retailers. Pay with USDC, we handle fulfillment via Crossmint.
AI-powered gift suggestions from social profiles. Analyze Instagram, X, or TikTok to find the perfect gift with direct checkout links.
Create orders with a single POST request. The x402 protocol handles payment verification automatically.
https://x402.purch.xyz/orders/solana{
"email": "john@example.com",
"payerAddress": "9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM",
"productUrl": "https://www.amazon.com/dp/B0C8PSMPTH",
"physicalAddress": {
"name": "John Doe",
"line1": "123 Main St",
"city": "San Francisco",
"state": "CA",
"postalCode": "94102",
"country": "US"
}
}{
"orderId": "550e8400-e29b-41d4-a716-446655440000",
"clientSecret": "eyXams...",
"serializedTransaction": "AQABAg...",
"payerAddress": "9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM",
"chain": "solana",
"paymentStatus": "pending",
"paymentCurrency": "usdc",
"quote": {
"status": "valid",
"totalPrice": { "amount": "29.99", "currency": "usdc" }
},
"lineItems": [...]
}Get AI-powered gift recommendations from social media profiles. Returns personalized suggestions with direct checkout URLs.
https://x402gifts.purch.xyz/gifts/suggest{
"profileUrl": "https://instagram.com/techie_traveler",
"platform": "instagram"
}{
"success": true,
"username": "techie_traveler",
"profilePicUrl": "https://...",
"gifts": [
{
"title": "Portable Power Bank 20000mAh",
"price": 45.99,
"image": "https://...",
"reason": "Perfect for their frequent travels",
"asin": "B0BSHV8MRZ",
"productUrl": "https://www.amazon.com/dp/B0BSHV8MRZ",
"x402CheckoutUrl": "https://x402.purch.xyz/orders/solana"
}
],
"interests": ["travel", "photography", "tech"],
"themes": ["adventure", "minimalist"],
"cached": false
}Payment is the authentication. No signup, no rate limits, no key management. Just pay and use.
USDC on Solana means sub-second finality. No invoices, no payment delays, no chargebacks.
True micropayments. Pay exactly for what you use, when you use it. Perfect for AI agents.
Built on Coinbase's x402 protocol. Enterprise-grade infrastructure with the simplicity of HTTP.
Use our SDK or make raw HTTP requests. The x402 protocol works with any language, any framework.
Any Solana wallet with USDC. Phantom, Solflare, or programmatic keypairs for agents.
Send your API request. If payment is required, you'll get a 402 response with a payment challenge.
Sign the payment with your wallet and retry with the X-PAYMENT header. Done.
npm install @coinbase/x402or use the Coinbase x402 SDK for automatic payment handlingJoin the x402 ecosystem. Build agents that can shop, recommend, and transact — all with cryptographic payments.