Create Product
Requires authentication.
POST /api/v1/merchant/products
Product name
Product description (can be empty string)
Product cost or retail price
Unit of measurement (e.g., “ml”, “g”, “oz”, “pieces”)
Maximum stock level (0-10,000,000,000)
Current stock level (0-10,000,000,000)
Response
Returns201 Created on success.
Update Product
Requires authentication.
PUT /api/v1/merchant/products/{id}
Product ID
Product ID (must match path parameter)
Delete Product
Requires authentication.
DELETE /api/v1/merchant/products/{id}
Product ID to delete
200 OK on success, or 400 Bad Request if the product is in use.
Get All Products
Requires authentication.
GET /api/v1/merchant/products
Product ID
Product name
Product description
Product price
Unit of measurement
Maximum stock level
Current stock level
Services that use this product
Stock Management
Products are automatically consumed when services are performed. The system:- Tracks product usage per service (defined in service settings)
- Decrements stock when bookings are completed
- Alerts when stock falls below threshold
- Shows low stock products on the dashboard
Low Stock Alerts
Products appear in the dashboard’slow_stock_products when inventory is running low. The fill ratio indicates current stock as a percentage of max:
Stock Calculations
When a service using products is booked:Product Units
Common unit types:- Volume: ml, l, oz, fl oz
- Weight: g, kg, oz, lb
- Count: pieces, units, applications
- Custom: Any text string describing the unit
Best Practices
- Consistent Units: Use the same unit system throughout your catalog
- Appropriate Scale: Choose units that make sense for your usage (ml instead of l for small quantities)
- Clear Names: Use descriptive product names that identify the specific item
- Regular Updates: Update stock levels regularly through the update endpoint
- Price Tracking: Use the price field to track product costs for profitability analysis
Integration with Services
Products are linked to services through the service endpoints:- Product #1: 50 units per service
- Product #2: 20 units per service