🎉 Leadquora 3.0 is live — new AI-powered checkout optimizer See what's new →
Quickstart

Your first Leadquora API call

Three minutes from signup to your first successful request. Here's what that looks like.

1. Get your API key

Your API key lives in your dashboard under Settings → API. Every account gets a test-mode and live-mode key.

# Your key looks like:
sk_test_lq_42b9c7a8e1f2d3b5a7c9e2f4b8d1a3c5e7f9b2d4

2. Create your first checkout

POST to /v3/checkouts with your product info — get back a hosted URL you can send shoppers to.

# Using curl
curl https://api.leadquora.com/v3/checkouts \
  -H "Authorization: Bearer sk_test_lq_..." \
  -H "Content-Type: application/json" \
  -d '{
    "product_id": "prod_K8Yp2mQ3nL7v",
    "amount": 9900,
    "currency": "usd",
    "success_url": "https://yoursite.com/thanks"
  }'

3. Handle the webhook

Subscribe to order.completed to fulfill orders in your system the moment payment clears.

// Node.js + Express
app.post('/webhook/leadquora', (req, res) => {
  const sig = req.headers['lq-signature'];
  const event = leadquora.webhooks.construct(req.body, sig);

  if (event.type === 'order.completed') {
    fulfillOrder(event.data.object);
  }
  res.json({ received: true });
});
Reference

Explore the full API

Every endpoint, every parameter, every webhook — documented with interactive examples.

Checkouts API

Create, update, list and expire hosted checkouts. Attach upsells, order bumps, and post-purchase flows programmatically.

View endpoints →

Payments API

Process charges, refunds, captures, authorizations. Manage MIDs, routing rules and reconciliation.

View endpoints →

Subscriptions API

Create, pause, update, swap and cancel subscriptions. Handle trials, plans, billing cycles and dunning programmatically.

View endpoints →

Customers API

Create and manage customer records with full conversation, order and subscription timelines.

View endpoints →

Webhooks

80+ event types. Signed, retried, deduplicated. Filter by event type, by object type, by specific IDs.

View event types →

GraphQL

Query any Leadquora object with surgical precision. Great for headless storefronts and mobile apps.

GraphQL playground →
SDKs

Official libraries for every major language

Type-safe, idiomatic, fully tested. Use the one that fits your stack.

JSNode.js
PyPython
RuRuby
PhPHP
GoGo
SwSwift (iOS)
KtKotlin
RsRust
ReReact
VuVue
AnAngular
.NET.NET / C#

Need help building?

Our developer relations team is available during business hours. For Enterprise customers, we offer dedicated engineering support.

developers@leadquora.com Talk to sales