Products
A product is an entry in your catalog: something you sell, such as a support agent, a model API or a contract review service. It names the thing, says how it’s taxed and what your customers see on invoices, and holds no pricing of its own. Prices, rate cards, plans, orders and events all point at it, so a product is the one place your catalog, your usage and your invoices agree on what was sold.
Use a product to:
- Price what you sell with prices and rate cards that name it.
- Attribute usage, because every event names the product it was for.
- Sell it on orders, directly or through a plan.
- Tax it correctly by giving it your tax provider’s code once, for every price on it.
Products are in the products=v1 private beta: send Paid-Beta: products=v1 with each request.
How products fit together
- Create the product: its name, display name and tax code.
- Price it with one or more prices or rate cards, such as a monthly platform fee and a usage price per resolved ticket.
- Sell it by putting those prices on an order, or in a plan that orders are created from.
- Send events that name the product, so its usage is billed against those prices.
Create a product
Litware sells an AI support agent, priced per resolved ticket. It adds the agent to its catalog:
API
Dashboard
Create a product with a name, and the label and tax code your customers’ invoices use:
Anywhere the API asks for a product, pass its prod_ ID or your externalId. A value that starts prod_ is looked up as a Paid ID first. Store the prod_ ID wherever you can, and use your own ID from systems that can’t store it, such as the service that sends events. To find a product by part of its name, display name or productCode, search with POST /v1/products/search, in the search=v1 beta.
Price it
A product has no pricing of its own. Price it with one or both of:
- Prices: a usage, recurring, one-time or percent-of charge.
- Rate cards: many usage rates by dimension, such as one per model.
A product bills each meter through either a price or a rate card, never both. Retrieving a product doesn’t return its pricing: list prices with the product filter.
Tax the product
taxCode is your tax provider’s code for what the product is. List tax codes to see the codes your account can use, from its connected tax provider: taxCode must be an active one. Update a tax code to activate or deactivate it; the tax provider connection itself stays in the dashboard. Tax codes are in the tax=v1 private beta.
Each charge is taxed with the first code it finds:
The code is chosen when an invoice is finalized, and recorded on its lines. With no tax provider connected, codes are stored but not used.
How it bills
In November, Litware’s support agent resolves 1,240 tickets for Northwind Traders. The agent’s usage price charges $1.50 per resolved ticket: unitAmount: "150", in cents, with no tax code of its own.
Change or retire a product
Update a product with only the fields to change. Two changes need care:
externalId: events sent under the old ID fail afterwards. Changing it fails while a meter is scoped to the product, because the meter matches on that ID.taxCode: the new code must be active, and applies to invoices finalized afterwards.
To stop selling a product, choose how final it is:
An archived product stays readable and on its invoices, and can’t be given new prices. Setting active: true on an archived product fails.