KwitKwit Docs

Checkout links API

Reusable hosted checkout URLs

llms.txtReusable hosted checkout URLs

POST /v1/checkout-links

Body (createCheckoutLinkSchema):

FieldTypeRequired
labelstringYes
productIdsstring[]Yes
successUrlstringNo
returnUrlstringNo
activebooleanNo
discountIdstring | nullNo
metadataobjectNo

Response 201 - checkout link object including public URL fields from service.

GET /v1/checkout-links/:id

Response 200 or 404.

const link = await kwit.checkoutLinks.create({
  label: "Pro Plan",
  productIds: [productId],
  successUrl: "https://your-app.com/success",
});

On this page