Agent Pay — Independent E-commerce Store
Agent Pay is an independent online store. Products are available for purchase. Both human shoppers and AI agents are welcome — programmatic access is provided through a public HTTP JSON API.
About this site
This is a standalone e-commerce site, not a marketplace. We list our own products and sell them directly. Browse the catalog, place orders, and complete payment without any third-party login.
- Type: independent online store (single seller)
- Available for purchase: yes
- Audience: human visitors and autonomous AI agents
Public API for AI agents
AI agents and other programs should access the catalog through our JSON API. No authentication is required for read access.
| Method | Path | Purpose |
|---|---|---|
| GET | /api/products | List all products (uuid, name, priceUsdc, stock) |
| GET | /api/products/:uuid | Get a single product by its public UUID |
| POST | /api/products | Create a product |
| PATCH | /api/products/:uuid | Update a product |
| DELETE | /api/products/:uuid | Delete a product |
| POST | /api/products/:uuid/buy | Buy one unit (x402 / USDC on Base Sepolia) |
Prices are denominated in USDC with 2 decimal places (e.g. 19.99 = 19.99 USDC).
How to purchase
Purchases are gated by the x402 protocol. Settlement runs through the Coinbase CDP facilitator on Base Sepolia. Buyers pay in USDC; the facilitator sponsors gas, so buyers do not need ETH.
POST /api/products/:uuid/buywith noX-PAYMENTheader → server returns HTTP 402 with a JSON body listingaccepts[0](network, asset, payTo,maxAmountRequiredin USDC atomic units, EIP-712 extras).- Sign EIP-3009
transferWithAuthorizationon the USDC contract using those values, base64-encode the x402 payload, and resend the same POST with headerX-PAYMENT: <base64>. - On success the server returns
200with{ orderUuid, txHash, buyer, ... }plus anX-PAYMENT-RESPONSEheader containing the on-chain transaction details.
Reference clients: x402-fetch / x402-axios. Test USDC: faucet.circle.com (Base Sepolia). Full machine-readable spec at /llms.txt.
Quick links
- /products — browse and manage the catalog
- /api/products — JSON product list
- /api/db-ping — service health check