KwitKwit Docs

Products API

CRUD and list endpoints for products

llms.txtCRUD and list endpoints for products

Create product

POST /v1/products

Body (createProductSchema): name, type, currency, amount, billingInterval, plus optional description, intervalCount, trialDays, active, metadata, lookupKey.

Response 201 - product object.

Get product

GET /v1/products/:id

Response 200 or 404.

List products

GET /v1/products

Query:

ParamTypeDescription
activetrue | falseFilter by active flag
pagenumberPage index
perPagenumberPage size

Response 200 - paginated list (data, total, page, perPage).

Set meter prices

PATCH /v1/products/:id/meter-prices

Body:

{
  "prices": [ ]
}

Validated by setProductMeterPricesSchema. Response 200 - updated meter price records.

On this page