Every
update also exists as patch. All deletes are confirmation-gated.
Product categories
create takes --name and --code (required), --description and --invoice-display-name. list accepts --search-term.
Deleting a category deletes its products, their filters, rate cards and rates. A category attached to a plan cannot be deleted.
Products
list filters by --product-type, --product-category-code, --without-product-category and --search-term. get accepts --expands for nested relationships, such as product_category or billable_metric.
Deleting a product deletes its filters, rate cards and rates. A product attached to a plan cannot be deleted.
Product filters
Only metered products have filters.create takes --name, --code and --values (required). --values is a JSON array of {"key","value"} entries matched against the billable metric’s filter keys. Omit value, or set it to null, to select every configured value for that key.
On update, supplying --values replaces the whole value set. The code cannot change while the product is used by a plan or Contract, and values cannot change while a Contract has a rate card scoped to the filter.
See product catalog and product filters for the model.