KwitKwit Docs

Checkout

Hosted checkout sessions and reusable checkout links

llms.txtHosted checkout sessions and reusable checkout links

Checkout session

One-shot flow: create session → redirect customer to checkoutUrl → on success, subscription/invoice created → redirect to successUrl.

Created via API or SDK:

const result = await kwit.checkout.create({
  customerId: customer.id,
  priceId: "price-uuid",
  successUrl: "https://your-app.com/success",
  cancelUrl: "https://your-app.com/cancel",
});

Returns sessionId, checkoutUrl, and created invoice summary.

Reusable links for one or more products - useful for sales pages without your own checkout UI.

  • Dashboard: Checkout links
  • API: POST /v1/checkout-links, GET /v1/checkout-links/:id

Retrieve session

GET /v1/checkout/:sessionId - status OPEN, COMPLETE, or EXPIRED.

See API: Checkout and Checkout links.

On this page