PurchPURCH NOW
COINBASE X402 PROTOCOL

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.

Request
402 Challenge
Sign & Pay
Response

TWO APIS. INFINITE POSSIBILITIES.

Production-ready commerce APIs that accept USDC micropayments. Built for AI agents, accessible to everyone.

x-purch

E-commerce Checkout API

Place orders for 1 billion+ products across Amazon, Shopify, and other retailers. Pay with USDC, we handle fulfillment via Crossmint.

per orderproduct price + fees
Amazon & Shopify integration
Real-time order tracking
Crossmint fulfillment
VIEW DOCS

x-gifts

Gift Recommendation API

AI-powered gift suggestions from social profiles. Analyze Instagram, X, or TikTok to find the perfect gift with direct checkout links.

per request$0.10 USDC
Instagram, X, TikTok analysis
3 personalized recommendations
24-hour result caching
VIEW DOCS

X-PURCH API

Create orders with a single POST request. The x402 protocol handles payment verification automatically.

POSThttps://x402.purch.xyz/orders/solana

Request

{
  "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"
  }
}

Response

{
  "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": [...]
}

X-GIFTS API

Get AI-powered gift recommendations from social media profiles. Returns personalized suggestions with direct checkout URLs.

POSThttps://x402gifts.purch.xyz/gifts/suggest

Request

{
  "profileUrl": "https://instagram.com/techie_traveler",
  "platform": "instagram"
}

Response

{
  "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
}

WHY X402?

No API Keys

Payment is the authentication. No signup, no rate limits, no key management. Just pay and use.

Instant Settlement

USDC on Solana means sub-second finality. No invoices, no payment delays, no chargebacks.

Pay Per Use

True micropayments. Pay exactly for what you use, when you use it. Perfect for AI agents.

Coinbase Backed

Built on Coinbase's x402 protocol. Enterprise-grade infrastructure with the simplicity of HTTP.

INTEGRATE IN MINUTES

Use our SDK or make raw HTTP requests. The x402 protocol works with any language, any framework.

1

Connect Wallet

Any Solana wallet with USDC. Phantom, Solflare, or programmatic keypairs for agents.

2

Make Request

Send your API request. If payment is required, you'll get a 402 response with a payment challenge.

3

Sign & Retry

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 handling

THE FUTURE OFAI COMMERCE

Join the x402 ecosystem. Build agents that can shop, recommend, and transact — all with cryptographic payments.