# StockSense AI — sample upload template # Upload ONE dataset at a time via POST /api/upload (multipart/form-data): # field "file" = the CSV rows for a single section below (header row + data rows) # field "dataset" = one of: products | sales_history | inventory # Encoding conventions: dates are ISO YYYY-MM-DD; booleans are true/false; # discount_level / margin are fractions 0-1; substitute_skus is pipe-separated (a|b|c). # Remove the "# SECTION" and comment lines for the section you are uploading. # SECTION: products sku_id,product_name,category,subcategory,brand,model,price,margin,lifecycle_stage,seasonality_flag,substitute_skus SKU-00019,"TCL Headphones",Electronics,Headphones,"TCL",TCL-119,4550,0.09,mature,false,SKU-00034 # SECTION: sales_history date,sku_id,branch_id,channel,units_sold,revenue,discount_level,transaction_count,return_count 2025-01-06,SKU-00019,BR-CAI-01,store,1,4550,0,1,0 # SECTION: inventory date,sku_id,branch_id,stock_on_hand,available_to_sell,stock_on_order,reserved_stock,warehouse_stock,days_of_cover 2026-07-06,SKU-00019,BR-CAI-01,460,447,0,13,426,193