> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lavaflo.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Supplier imports and Airtable

> An import is a saved source plus a column mapping.

Sources: CSV upload, Excel upload, a file at a URL (fetched on a schedule), or an **Airtable** base.

## WooCommerce product CSV

Lavaflo reads WooCommerce's own product CSV, the file you get from **Products → Export** in WooCommerce or from the WooCommerce sample template. Upload it and every column maps automatically. You can also download a filled-in template from the mapping screen, or export your whole Lavaflo catalog in the same format with **Export CSV** on the Products page, edit it in Excel and import it back.

| WooCommerce column | What Lavaflo does with it |
| - | - |
| Type | simple, variable, grouped, external; `variation` rows become sizes of their Parent. "virtual" and "downloadable" in the same cell set those options. |
| SKU, ID, Parent | Matching is by SKU. Parent can be a SKU or `id:123`. A row with no SKU gets a stable one: `WOO-<ID>`, or for a size, the parent's SKU plus the option. Importing the same file again updates instead of duplicating. |
| Published | 1 = published, 0 = private, -1 = draft |
| Is featured?, Visibility in catalog, Sold individually?, Allow customer reviews?, Purchase note, Position | Saved as the product's store settings and sent to WooCommerce |
| In stock?, Stock, Backorders allowed?, Low stock amount | A number in Stock means stock is counted. A blank Stock uses In stock? (1, 0 or backorder) as the status. |
| Regular price, Sale price, Date sale price starts / ends | Prices and the sale schedule, on products and on each size |
| Weight, Length, Width, Height | Stored as numbers in your store's units, the same units as in the column names |
| Categories | Comma-separated; `Parent > Child` for subcategories. Missing categories are created. |
| Tags, Shipping class, Tax status, Tax class | As in WooCommerce |
| Images | Comma-separated URLs. On a size's row, the first image becomes that size's photo. |
| Attribute N name / value(s) / visible / global / default | Attributes and their options; the default is the option picked first on the product page. On a size's row, the value is that size's option. |
| Upsells, Cross-sells, Grouped products | SKUs or `id:123`, linked once every row is in |
| Download N name / URL, Download limit, Download expiry days | Files for downloadable products |
| Meta: anything | Kept as a custom field and sent back to WooCommerce |

**Rows in the wrong columns.** If a row has an extra or missing comma, its values shift into the wrong columns (a price under Categories, "taxable" under Tax class). Lavaflo flags those rows as errors and names the columns, instead of importing wrong data. Fix the row and upload again.

## Airtable

1. At airtable.com/create/tokens, create a personal access token with the `data.records:read` scope and access to your base.
2. In Lavaflo: Suppliers & imports → New import → Airtable. Paste the token (stored encrypted), the base ID (starts with `app`, from the base URL) and the table name. Optionally a view, to import only some records.
3. *Read columns from source*, check the suggested mapping, and *Run import*.

Attachment fields become image URLs. Linked records become text.

## Mapping cookbook

| Your column | Map to |
| - | - |
| Item #, Part No, SKU | SKU |
| Vendor SKU (when it differs from yours) | Supplier SKU |
| Cost, Wholesale, Dealer cost | Cost (COGS) |
| Retail, MSRP, Price | Price |
| Qty, On hand | Stock quantity (sets the number) |
| Department, Category | Category (`Garden > Mulch` makes a nested path) |
| Size, Color | Attribute → Size / Color. Values are matched to your existing values (and saved spellings); unknown ones wait in [Review](https://docs.lavaflo.app/taxonomies.md#review-queue) |
| Brand, Manufacturer | Brand (one per product; a WooCommerce CSV uses the first listed) |
| Parent SKU | Parent SKU: rows sharing one become sizes of one product |
| Image, Photos (URLs) | Image URLs |

## Rules

* **Markup** sets a price from cost when a row has none (e.g. 100% → double). **Round to** .99 rounds up to the next .99.
* **Create new products** can be turned off so a feed only updates what exists.
* **Auto-approve** applies scheduled runs without review when they only change the fields you pick (e.g. cost and stock). New products and errors always wait.

## Preview, apply, roll back

Every run shows New / Changed / Unchanged / Errors with field-level before → after. Untick rows to skip them. **Roll back** puts changed fields back, reverses stock, and removes products the run created (unless they've already sold).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.