Example
Usage rates groups two infrastructure services:Category fields
Create a category
UsePOST /product_categories to create the Usage rates category.
Assign products to a category
Setproduct_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.
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
UseDELETE /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_categoriesDelete a product category
DELETE /product_categories/{code}