Import and export of stock
Stock import – step by step
- On the Stock page, open the Import action (e.g. a button that opens an import modal).
- Choose a warehouse (required for import). The modal typically lets you pick from the list or use the default.
- Upload a CSV or Excel file. Expected columns:
- product_id (required)
- variant_id (optional; omit or leave empty for simple products)
- quantity or current_stock — target quantity for that product/variant in the chosen warehouse
- Submit the import.
What happens: The system reads the file and, for each row, finds the corresponding product (and variant if given). Warehouse stock is updated according to the quantities in the file, and each change is recorded in history as an import. The result summary shows how many rows were updated, how many skipped, and any per-row errors (e.g. invalid or missing products).
Export current stock
Use Export current stock on the Stock page to download a CSV with columns: product_id, variant_id, sku, name, current_stock. The current_stock values are the total stock per product/variant across all warehouses.