KwitKwit Docs

Getting started

Set up your organization and make your first API call

llms.txtSet up your organization and make your first API call

Create an account

Sign up at kwit.dev and complete organization onboarding.

Connect payments

In Settings → Billing, add your zahls API credentials and configure webhooks so Kwit can tokenize cards and receive payment confirmations.

Create a product

In Products, define pricing (amount, currency, billing interval). Note the product ID for API calls.

Issue an API key

Go to Developers → API Keys. Create a key with prefix kwit_live_. Store it securely - it is shown once.

Call the API

curl -X POST https://api.kwit.dev/v1/customers \
  -H "Authorization: Bearer kwit_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"email":"user@example.com","name":"Jane Doe"}'

Or use the SDK:

import Kwit from "@kwit/sdk";

const kwit = new Kwit("kwit_live_YOUR_KEY");
const customer = await kwit.customers.create({
  email: "user@example.com",
  name: "Jane Doe",
});

Start a checkout

const checkout = await kwit.checkout.create({
  customerId: customer.id,
  priceId: "YOUR_PRICE_ID",
  successUrl: "https://your-app.com/success",
  cancelUrl: "https://your-app.com/cancel",
});
// Redirect end-user to checkout.checkoutUrl

For local development, point the SDK at your server with baseUrl if you run apps/server locally (default production base is https://api.kwit.dev/v1).

On this page