FreeVelox/Documentation
ProductChangelog

The product catalogue

The catalogue is the answer to two questions β€” what do you sell, and for how much. It lives in the official service's database: the products and the prices are rows, not code. The file the platform ships with holds the content a fresh database starts from; from then on the rows are what the site, the checkout and the entitlements read.

What the catalogue holds

Two tables, two different jobs.

TableRowWhat it decides
productsA productThe entitlement and the specification: delivery, edition, seats, benches, labs, features.
product_pricesA priceThe commercial terms: billing scheme, term, amount, currency.

A product defines what a subscription grants. A price defines what it costs and for how long. The same product can carry several prices β€” monthly, annual, buyout β€” and each of them is a separate thing a customer can buy.

Products: what a subscription grants

FieldMeaning
codeThe product's identity: lowercase letters, digits and underscores. Fixed at creation.
nameThe name customers read.
deliveryhosted β€” the quota lives with the official service; self_hosted β€” the quota lives in the licence file on the machine.
editionThe tier: trial, starter, professional or enterprise.
seatsHow many people.
agentsHow many agents the pool may hold.
labsHow many labs.
featuresThe capability bits this product grants.
activeWhether it is on sale.
sort_orderWhere it sits in the catalogue listing.

The feature vocabulary is closed β€” bench.connect, bench.live-view, automation.run, test-cases.manage, reports.build, schedules.run, artifacts.export, identity.sso and audit.log. A product picks from that list; it does not invent capability names.

Prices: what a customer buys

FieldMeaning
idThe price's identity β€” a UUID.
product_codeThe product this price belongs to.
nameThe name of this price, e.g. "Professional, annual".
billing_schemestandard, per_seat or usage_based.
termmonthly, annual or one_time. A one-time price never expires.
price_centsThe amount, in the smallest unit of the currency.
currencyThe currency, e.g. USD.
activeWhether it is on sale.
You buy a price, not a product

A monthly price and an annual price of the same product are two different things: different periods, different unit prices, and β€” for one_time β€” no end date at all. What a purchase records is the price, and the price points back at the product.

How a quantity becomes a quota

The billing scheme decides what the quantity of a purchase means, and therefore what is granted.

Billing schemeThe quantity isWhat is granted
standardHow many copies β€” labslabs = base labs Γ— quantity
per_seatHow many seatsseats = the larger of the product's seats and the quantity
usage_basedHow many benchesagents = the larger of the product's agents and the quantity

The per-seat and per-bench schemes never drop below what the product already carries: buying one Professional still grants ten seats, not eleven.

The trial

The trial is a product like any other β€” saas_trial, with a zero-amount one-time price attached. Starting a trial grants what that product row says, for fourteen days. Change the trial row and the next trial follows the change.

Identifiers are a contract

The product code is the product's identity, and it appears on licences, entitlements and subscriptions alike. It is written once, at creation, and it is not a label you may reword β€” a customer's receipt, a licence file and an entitlement all name the same code.

Price ids are UUIDs. The prices that ship with the platform have a derived id, so re-seeding a database keeps the id β€” and everything already pointing at it β€” intact. Prices you add get a fresh id.

Where the catalogue is read

  • Checkout. /checkout reads the catalogue through GET /v1/products, which returns the products and prices that are on sale. A product added today is purchasable today.
  • The pricing page. The plans on the landing page are written copy, not a listing of the catalogue β€” a new product does not add a card there by itself.
  • Entitlements. What a purchase grants is computed from the catalogue row at the moment of purchase, and then frozen: the entitlement is a snapshot. Editing a product changes what future purchases grant, and leaves the entitlements already granted as they are.

Changing the catalogue

The catalogue is edited in the site's admin console β€” prices, product types, new products. The procedure is in The site admin console.