Importing inventory from a spreadsheet
If you already track stock in a spreadsheet, import it instead of typing it in. Each row is one device: what you paid, who you bought it from, and — if it has already sold — what it sold for and to whom. Restock builds the items, and the buy and sell orders behind them, from those rows.
Open the importer
Any of these opens Import Inventory:
- Inventory → Import Inventory in the top menu.
- Import inventory on the Buy Orders, Sell Orders or Inventory pages.
Importing needs an active subscription.
1. Prepare your spreadsheet
Not sure where to start? Click Download the template as a CSV. It has every column Restock understands and three example rows: a sold device, a device in stock, and an edit to an existing item.
You don't have to use the template's headings exactly. Headings are matched
without regard to capitals, spaces or hyphens, and common alternatives are
recognised — for example cost or buy price for purchase_price,
supplier or vendor for bought_from, buyer or customer for
sold_to, and invoice for sell_order_ref. Cells reading N/A, none,
TBD or - are treated as empty.
Columns
| Column | Notes |
|---|---|
device_type | Required. One of: phone, tablet, laptop, smartwatch, headphone, misc, gift_card, game_console, desktop, accessory, ring. Can be left out if the row has a 15-digit IMEI — it's then treated as a phone. |
purchase_price | What you paid; must be more than 0. Leave it blank to import the item with no purchase recorded. |
brand, model, storage, color, carrier_lock, condition, grade, battery_health, value, notes | Device details. |
imei, imei_status, serial | Identifiers. Each IMEI and serial must be unique in the file and not already in your inventory. |
status | The item's status. |
bought_from, bought_from_email, bought_from_phone | Who you bought it from. |
purchase_date, buy_order_ref, buy_payment_method | Details of the purchase. |
sold_to, sold_to_email, sold_to_phone | Who you sold it to, if it has sold. |
sale_date, sale_price, sell_order_ref, sell_payment_method | Details of the sale. sale_price is required once any sell column is filled in. |
id | Leave blank for new items. See Editing items you've exported. |
For Excel files, only the first worksheet is read. An import can hold up to 20,000 rows.
An import goes through four steps, shown at the top of the page: Upload → Map columns → Review & fix → Result.
2. Upload it
- Drop your file on the upload box, or click it to choose one. CSV, Excel
(
.xlsx) and JSON files are accepted. - Click Continue to column mapping.
Where Google Sheets is available on your account, you can also pick Google Sheet as the source and choose a spreadsheet and tab from your Google Drive after clicking Connect Google Sheets. A Google Sheet skips the mapping step and goes straight to review.
3. Map columns
Restock lists every column in your file with a few Sample values and what it Imports as. The Match badge says how it got there: Exact (the heading is the column name), Alias (a recognised alternative, like cost), or Chosen (you picked it). Columns set to Don't import are ignored.
Change any Imports as you disagree with. Under Fields not in your file, required fields are marked with *; if one isn't mapped, you'll see No column is mapped to … and the rows that need it will be flagged on the next step.
Click Check N rows to check every row. Nothing is saved yet.
4. Review and fix rows
The counts at the top show Rows, Ready, Need fixing and Imported. Use the tabs above the grid — All, Need fixing, Ready, Imported and Skipped — to narrow it down.
Each row has a status of Valid, Error, Conflict or Committed. Problem cells are highlighted: red cells must be fixed, amber cells need a setting. Hover a highlighted cell to see why.
To fix a cell, click it, type the correct value, and press Enter or Tab (press Escape to cancel). That row is checked again immediately and the counts update. Your fixes are kept if you re-check the file; to throw them away and start from the file as it stands, click Discard corrections.
- Click Leave out under a row's status to keep it out of this import, and Put back to include it again.
- Click Download N rows to fix to get the rows that need fixing as a CSV.
- Click Change column mapping to go back to the mapping step.
- Click Re-validate to check every row again.
Unknown conditions
If your file uses conditions Restock doesn't know yet, you'll see Unknown item conditions. The business owner can click Add missing conditions and re-validate to add them to your device conditions in one go. Anyone else will need to ask the owner.
5. Import
When you're happy, click Import N rows. Only ready rows are imported — rows that still need fixing are left out, and you can download them afterwards.
For each new row, Restock creates:
- An item, available in your inventory.
- A buy order for the purchase, marked complete and paid in full. The
payment method comes from
buy_payment_method, or shows as Imported if it's blank. - A sell order, if any sell column is filled in. The item is then marked as sold.
Rows that share a buy_order_ref (or sell_order_ref) become one order.
Without a reference, rows are grouped by who you bought from (or sold to) and
the date.
If you don't give an order reference, rows are grouped by counterparty and
date. Add buy_order_ref and sell_order_ref if you need the orders to match
your records exactly.
The people you bought from and sold to are matched to your existing customers by email, then by name. Anyone not found is added as a new customer. If a date is missing, the import date is used and the order notes say so.
The Result step shows how many rows were imported. If any were left out,
click Download N rows (CSV): it has the same columns as your file plus an
error column saying why, so you can fix them and import that file again.
Click View inventory to see your items. If the imported devices have IMEIs that haven't been checked, you can click Run IMEI checks to check them — this uses your monthly allowance.
An import can't be undone, so review the rows before you click Import.
Editing items you've exported
Rows with an id update that existing item instead of creating a new one, and
leave its orders alone. To bulk-edit, export your inventory, change the cells
you need, and import the file again.
An export from a different account imports as new items: its ids belong to the other account, so they are ignored.
Import history
Click View recent imports at the bottom of the import page to see your recent imports, with their source, status and a summary such as how many rows were imported. Click View to reopen one — for example, to fix and import rows that had errors.
Related guides
Need more help?
If you can't find what you need here, contact your administrator or support.