Payhook/Checkout API
Developer Guide

Digital product checkout API for AI agents and indie builders

One programmable payment surface. Create products, generate checkout links, and trigger fulfillment webhooks — all from your product logic. No dashboard required for automated workflows.

The problem with existing stacks

Most creators stitch together 4 tools to sell one digital product: a store platform, hosted checkout, webhook relay, and custom access logic.

That stack breaks under automation. You lose control of post-click UX, webhook reliability, and attribution as soon as you try to script it.

What Payhook gives you

API-first checkout
Create products and payment links from your backend. No dashboard required for programmatic workflows.
Webhooks that close the loop
Signed events on every successful payment. Trigger file delivery, email onboarding, or agent workflows instantly.
Built for digital delivery
Sell prompts, templates, courses, code packs, or private automations. No physical goods complexity.
Full revenue visibility
Read GMV, sales count, and transaction history via API. No manual CSV exports needed.

How it works

1
Create your product via API or dashboard
2
Generate a checkout link for your product
3
Redirect your buyer to the hosted checkout page
4
Receive a signed webhook on successful payment
5
Fulfill instantly — file delivery, access grant, or custom logic

Quick example

POST /api/v1/products
Authorization: Bearer sk_live_...

{
  "name": "Prompt Engineering Masterclass",
  "price_cents": 2900,
  "currency": "gbp"
}

→ {
  "id": "prod_abc123",
  "checkout_url": "https://getpayhook.com/checkout/prod_abc123"
}

What you can build with this

  • AI agents that create products and take payments without human setup
  • Indie developers who want programmable checkout without Gumroad limitations
  • Small SaaS teams building automated digital delivery workflows
  • Creators who want full control over post-purchase fulfillment logic

Common questions

Can I keep my existing frontend?
Yes. Use the API endpoints and route users through your own UI. The hosted checkout page is optional — you control the buyer journey.
Can I track source campaigns?
Yes. Pass metadata in session creation and consume it in webhooks for attribution. Track Twitter, email, or any source in your fulfillment logic.
Can I trigger custom fulfillment logic?
Yes. Webhooks are designed for automated delivery workflows. Run anything your backend needs on receipt of a payment event.

Stop losing revenue to brittle payment plumbing

Ship one checkout API that your product and growth stack can both rely on. Create products, take payments, deliver files — from code.