Tutorial

Import your batches from a CSV file

Fifteen minutes once, so Foreshelf knows which lot of stock you are actually holding.

1. Open the import screen

From the dashboard use Import batches (CSV), or open the Batches screen and choose Import batches. The dialog is titled Import batches from CSV. Batch import is included on every plan, including Free; nothing else needs to be enabled first.

2. Build the file

Only three columns are required: SKU, quantity and an expiry date. Two more are optional: lot number, received date and unit cost (the cost column is also optional). Column names are matched in English, French and Spanish, ignoring case, accents in the header text, spaces, underscores and dashes — so SKU, Reference, Code article or Variant SKU all work.

sku,lot_number,quantity,expiry_date,received_date,unit_cost
SERUM-30,2426A,120,2027-03-31,2026-11-02,4.85
SERUM-30,2426B,80,2027-06-30,,4.85
CAPS-90,2511C,40,15/01/2028,,
  • Separators , ; tab and | are all accepted (a French Excel file usually uses ;).
  • Dates are read as YYYY-MM-DD, DD/MM/YYYY, MM/DD/YYYY, DD-MM-YYYY, DD.MM.YYYY or 15 Jun 2031.
  • Decimal commas work: 4,85 is read as 4.85.
  • The file must be CSV text, in UTF-8 (a Latin-1 export is also accepted).

3. What Foreshelf fills in for you

  • No lot number: one is generated as AUTO-<date>-<n>, dated on your store's calendar day.
  • No received date: the lot is dated on your store's calendar day (the timezone saved on your store), not on the server's day.
  • No unit cost: the lot keeps the cost Foreshelf already knows for that SKU; if none is known, the value at risk stays unknown rather than being shown as $0.

4. Read the result

The import answers with three counts: created lots, updated lots, and a list of per-row errors such as Row 4: SKU 'X' not found or Row 7: expiry date is required. Valid rows are imported; the bad rows are reported with their line number so you can fix the file and send only those lines again.

If you upload a Shopify product export by mistake, Foreshelf says so and points you to Shopify's own product import instead of importing nonsense.

5. Re-importing the same lot is safe

Sending the same lot number again updates that lot instead of duplicating it, and it never puts back units that were already sold: only the difference between the new total and the old total changes the remaining stock. A typo in a quantity column can therefore be corrected by a second import.

A demo store can open the screen and read the result, but a demo store never writes lots. Next: read a WAIT decision.