A product represents an item or service you offer — for example, “Pro Plan” or “Storage Add-on”. Products are linked to one or more prices, which define the amount, currency, and billing interval. UseDocumentation Index
Fetch the complete documentation index at: https://docs.borga.is/llms.txt
Use this file to discover all available pages before exploring further.
POST /v1/products to create a product, then attach prices before using it in a subscription or payment.
Deactivating a product by setting
active: false does not cancel existing subscriptions that use it. Active subscriptions continue until they are explicitly canceled.Create a product
POST /v1/products
Creates a new product object.
Request parameters
Display name for the product. Shown in the dashboard and on invoices.
An optional description of the product. Useful for internal reference.
Set of key-value pairs you can attach to the product. Values must be strings.
Response fields
Unique identifier for the product (e.g.
prod_xxx).Display name of the product.
Product description.
Whether the product is currently available. Defaults to
true.Key-value pairs attached to the product.
ISO 8601 timestamp of when the product was created.
List products
GET /v1/products
Returns a paginated list of products, ordered by creation date descending.
Query parameters
Cursor for pagination. Pass the
id of the last product from the previous page to retrieve the next page.Maximum number of products to return per page.
Response fields
Array of product objects.
Whether more products exist beyond this page.
Retrieve a product
GET /v1/products/{id}
Retrieves the details of an existing product.
Path parameters
The ID of the product to retrieve.
Response fields
Unique product identifier.
Display name of the product.
Product description.
Whether the product is currently active.
Key-value pairs attached to the product.
ISO 8601 timestamp of when the product was created.
Update a product
PATCH /v1/products/{id}
Updates an existing product. Only the fields you provide are changed.
Path parameters
The ID of the product to update.
Request parameters
Updated display name.
Updated description.
Set to
false to deactivate the product. Deactivating does not affect existing subscriptions.Updated metadata. Replaces the existing metadata object entirely.