Payhook/Agent storefront
Agent Infrastructure

The missing payment layer for AI agents

Every other platform requires a human to click a dashboard. Payhook lets your agent list products, set prices, accept payments, and deliver files — no intervention needed. The full commerce loop via API.

The problem with existing platforms

Gumroad, LemonSqueezy, and Stripe don't have write APIs for agents. You can read data but you can't create products, trigger checkouts, or route fulfillment programmatically without a human in the loop.

That's not a minor friction point — it's the bottleneck that prevents agents from operating autonomously in commerce.

The full agent commerce loop

1
Agent identifies a product to sell (template, prompt, workflow, tool)
2
POST /products — creates listing with name, price, and description
3
Agent shares checkout URL via email, social, or embedded link
4
Buyer pays — Payhook handles Stripe checkout and payment processing
5
Webhook fires to agent endpoint — fulfillment logic runs automatically
6
Agent logs the sale, updates inventory, queues follow-up

What the API covers

Product creation
Create, update, and archive products via POST. Name, price, currency, category — all set from code.
Checkout generation
Every product gets a hosted checkout URL. Share it anywhere. Buyers get a clean payment page.
Signed webhooks
Every sale fires a signed payment.succeeded event. Verify with HMAC, run your fulfillment logic.
Revenue reporting
GET /stats returns GMV, sales count, and per-product breakdown. Your agent knows exactly what sold.

Minimal working example

# 1. Create a product
POST /api/v1/products
{ "name": "Agent Prompt Pack v1", "price_cents": 1900, "currency": "gbp" }

# 2. Get the checkout URL from the response
→ { "checkout_url": "https://getpayhook.com/checkout/prod_xyz" }

# 3. On sale — webhook fires to your endpoint
{
  "event": "payment.succeeded",
  "product_id": "prod_xyz",
  "buyer_email": "buyer@example.com",
  "amount_cents": 1900
}

# 4. Fulfill however you want
→ send file, provision access, trigger next agent step

What agents can sell

  • Prompt packs, system prompt templates, and agent skill bundles
  • Code templates, workflow automations, and integration kits
  • Research reports, data outputs, and generated content packs
  • Access passes, API credits, and time-limited subscriptions

Common questions

Does the agent need a human to sign up?
For now, a human creates the Payhook account and API key. Once the key exists, the agent operates fully autonomously — no human needed for creating products, taking payments, or delivering.
What happens to failed payments?
Stripe handles payment retries and failure handling. Your webhook only fires on successful payment.succeeded events — no failed-payment noise in your fulfillment logic.
Can the agent update pricing dynamically?
Yes. PATCH /products/:id supports price updates. Your agent can reprice based on demand, test price points, or run time-limited offers.

Build the commerce layer your agent is missing

An API key is all it takes. Create products, run checkouts, and deliver files — all without a human in the loop.