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.

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.

MethodPathPurpose
GET/api/productsList all products (uuid, name, priceUsdc, stock)
GET/api/products/:uuidGet a single product by its public UUID
POST/api/productsCreate a product
PATCH/api/products/:uuidUpdate a product
DELETE/api/products/:uuidDelete a product
POST/api/products/:uuid/buyBuy 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.

  1. POST /api/products/:uuid/buy with no X-PAYMENT header → server returns HTTP 402 with a JSON body listing accepts[0] (network, asset, payTo, maxAmountRequired in USDC atomic units, EIP-712 extras).
  2. Sign EIP-3009 transferWithAuthorization on the USDC contract using those values, base64-encode the x402 payload, and resend the same POST with header X-PAYMENT: <base64>.
  3. On success the server returns 200 with { orderUuid, txHash, buyer, ... } plus an X-PAYMENT-RESPONSE header 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