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:
| Param | Type | Description |
|---|---|---|
active | true | false | Filter by active flag |
page | number | Page index |
perPage | number | Page 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.