A price defines how much and how often you charge for a product. Each price belongs to a product and specifies aDocumentation Index
Fetch the complete documentation index at: https://docs.borga.is/llms.txt
Use this file to discover all available pages before exploring further.
type of either one_time or recurring. Recurring prices support flexible intervals, tiered pricing structures, and metered usage billing. Once a price is created, its core monetary fields are immutable — create a new price if you need to change the amount.
Create a price
POST /v1/prices
Creates a new price for an existing product.
Request parameters
The ID of the product this price belongs to (e.g.
prod_xxx).Three-letter ISO 4217 currency code (e.g.
ISK, EUR, USD). Defaults to the merchant’s default currency.Pricing type. One of
one_time or recurring.Price per unit in the currency’s smallest unit. Minimum value is
0. Required when tiers_mode is not set.Required when
type is recurring. Defines the billing interval.Enables tiered pricing. One of
graduated (each tier applies to usage within that range) or volume (the tier price applies to the entire quantity based on total usage).Array of tier objects. Required when
tiers_mode is set.ID of the meter to use for metered usage billing. Required when
recurring.usage_type is metered.Number of units included in the base price before metered usage billing begins.
GL account code to associate with this price for accounting export.
Set of key-value pairs you can attach to the price. Values must be strings.
- One-time price
- Recurring price
Response fields
Unique identifier for the price (e.g.
price_xxx).ID of the associated product.
Three-letter ISO 4217 currency code.
Pricing type. One of
one_time or recurring.Price per unit.
null when tiers_mode is set.Recurring billing configuration.
null for one-time prices.Tier mode:
graduated or volume. null if not using tiered pricing.Array of tier configuration objects.
null if not using tiered pricing.ID of the associated meter, if applicable.
Whether the price is currently active.
Key-value pairs attached to the price.
List prices
GET /v1/prices
Returns a paginated list of prices, ordered by creation date descending.
Query parameters
Filter prices by product ID.
Cursor for pagination. Pass the
id of the last price from the previous page to retrieve the next page.Maximum number of prices to return per page.
Response fields
Array of price objects.
Whether more prices exist beyond this page.
Retrieve a price
GET /v1/prices/{id}
Retrieves the details of an existing price.
Path parameters
The ID of the price to retrieve.
Response fields
Returns a price object. See create a price for the full field reference.Update a price
PATCH /v1/prices/{id}
Updates a price. Only active, accounting_code, and metadata can be modified after creation. To change the amount, currency, or interval, create a new price.
Path parameters
The ID of the price to update.
Request parameters
Set to
false to deactivate this price. Deactivating does not affect subscriptions already using it.Updated GL account code.
Updated metadata. Replaces the existing metadata object entirely.