Skip to main content
A Product category groups related Products, such as Compute and Bandwidth. Use categories to organize your catalog and group fees on invoices. Categories are optional. Each Product can belong to one category or remain uncategorized. Assigning a category does not set a price or add the Product to a Plan.

Example

Usage rates groups two infrastructure services:
See Overview for an example with standalone Products and Product filters.

Category fields

Create a category

Use POST /product_categories to create the Usage rates category.

Assign products to a category

Set product_category_code to assign a Product to a category. To remove the assignment, set it to null. The Product remains in your catalog. Filters belong to their Product and are not assigned to categories separately.
List the Products in usage_rates to check the assignment. After removing an assignment, check the list of uncategorized Products.

List a category’s products

  • Retrieve the category: GET /api/v2/product_categories/usage_rates.
  • List its products: GET /api/v2/products?product_category_code=usage_rates.
  • List uncategorized products: GET /api/v2/products?without_product_category=true.

Read grouped fees

Category totals summarize the fees within the group. When checking an invoice total, use the group total or its detailed fees, not both. Keep quantities with different units separate.

Update a category

PUT /api/v2/product_categories/{code} accepts partial updates. Omitted fields stay unchanged.

Delete a category

Deleting a category also deletes its Products, filters, Rate Cards and Rates. A category used by a Plan cannot be deleted. To keep a Product and remove only its grouping, clear product_category_code instead.
Use DELETE /api/v2/product_categories/{code} to delete the category.

Products

Fixed and metered products.

Product catalog

Choose a catalog structure.

Create a product category

POST /product_categories

Delete a product category

DELETE /product_categories/{code}