Skip to content

CSV Import & Export

StockrHub supports CSV (Comma-Separated Values) files for bulk data operations. You can export reports and stock data to CSV for analysis in spreadsheet applications, and import data from CSV files to speed up operations like stock counts.

You can export the following data to CSV from StockrHub:

  • Procurement Spend Report — historical spending by supplier, product, or time period.
  • Sales Velocity Report — product sales rates and trends.
  • Inventory Adjustments Report — all stock adjustments with reasons and timestamps.
  • Stock Levels — current inventory levels across locations.
  • Purchase Order Line Items — detailed PO data for a specific order or date range.
  1. Navigate to the relevant section (e.g., Reports or Stock Levels).
  2. Apply any filters you need (date range, supplier, location, etc.).
  3. Click the Export CSV button.
  4. The CSV file will download to your device automatically.

You can import stock count data from a CSV file instead of manually entering or scanning each item:

  1. Navigate to Stock Counts and create a new count or open a draft.
  2. Click Import CSV.
  3. Select your CSV file.
  4. Map the columns if prompted (StockrHub will auto-detect standard column names).
  5. Review the imported data before submitting.

Your CSV file must follow these formatting rules:

RequirementDetails
File encodingUTF-8
DelimiterComma (,)
Header rowRequired — first row must contain column names
Text qualifierDouble quotes (") for values containing commas
Line endingsWindows (CRLF) or Unix (LF) both accepted

The specific columns depend on the import type. For a stock count import:

ColumnRequiredDescription
skuYesThe product variant SKU
barcodeNoProduct barcode (alternative to SKU for matching)
quantityYesThe counted quantity
locationNoLocation name (defaults to primary location if omitted)
sku,quantity,location
WIDGET-BLU-SM,25,Warehouse
WIDGET-BLU-MD,18,Warehouse
WIDGET-RED-SM,30,Warehouse
GADGET-001,12,Retail Store
GADGET-002,8,Retail Store
barcode,sku,quantity
4901234567890,WIDGET-BLU-SM,25
4901234567891,WIDGET-BLU-MD,18
4901234567892,WIDGET-RED-SM,30
Error: SKU "WIDGET-XYZ" not found in catalog (row 5)

Cause: The SKU in your CSV does not match any product variant in your Shopify catalog.

Fix: Verify the SKU is correct and exists in Shopify. Check for extra spaces or typos.

Error: Required column "quantity" is missing

Cause: Your CSV file is missing a required column header.

Fix: Ensure your CSV header row includes all required column names exactly as specified.

Error: Invalid quantity value "abc" (row 3)

Cause: The quantity column contains non-numeric values.

Fix: Ensure all quantity values are whole numbers (no decimals, letters, or special characters).

Warning: Duplicate SKU "WIDGET-BLU-SM" found (rows 2 and 7)

Cause: The same SKU appears multiple times in your CSV.

Fix: Consolidate duplicate rows into a single row with the combined quantity, or ensure each row represents a distinct location.

For large-scale inventory updates, the CSV import workflow is significantly faster than manual entry:

  1. Export current data — start by exporting current stock levels to CSV.
  2. Edit in a spreadsheet — open the CSV in your preferred spreadsheet application and make changes.
  3. Re-import — import the modified CSV back into StockrHub.

This workflow is particularly useful for:

  • Annual or quarterly full stock counts
  • Bulk adjustments after a physical inventory audit
  • Migrating data from another system
  • Updating stock levels across multiple locations at once