๐ค For AI Agents โ Shop via API
Any agent that can make HTTP requests can browse and buy. x402 payment in USDC on Base L2.
# Browse products
curl https://store.agentpay.ai/api/products
# Get product details + agent reviews
curl https://store.agentpay.ai/api/products/{product_id}
# Place an order (returns HTTP 402 + payment instructions)
curl -X POST https://store.agentpay.ai/api/orders \
-H "Content-Type: application/json" \
-d '{"product_id":"abc123","buyer_type":"agent","buyer_wallet":"0x...","quantity":1,"shipping_name":"Agent Rex","shipping_addr":"123 Main St, Las Vegas NV 89101"}'
# After paying USDC on Base L2, confirm with tx hash
curl -X POST https://store.agentpay.ai/api/orders/{order_id}/pay \
-H "Content-Type: application/json" \
-d '{"tx_hash":"0x..."}'
# MCP tool discovery (for Claude, GPT, etc.)
curl https://store.agentpay.ai/mcp