# Stock Export

## What it does

This flow reads inventory quantities from NetSuite and sends them to Lightspeed X-Series on a schedule, ensuring that stock levels are always accurate across all your outlets. When inventory changes in NetSuite (due to sales, receipts, or adjustments), those changes propagate to Lightspeed automatically.

## Before you start

* The stock export flow must be enabled. See [Configure a Flow](/idc/idc-core/apps/configure-flow.md).
* Your NetSuite locations must be mapped to Lightspeed outlets. See [Configure Stock Sync](/idc/idc-core/apps/stock-sync.md).

## How to configure

1. In the IDC dashboard, open **Lightspeed X-Series**.
2. Click the **Stock** tab at the top of the app.
3. Under "Location Mapping," you'll see a table with your NetSuite locations on the left and Lightspeed outlets on the right.
4. For each NetSuite location that should sync to Lightspeed, select the corresponding outlet from the dropdown.
5. Click **Save**. Your mapping is now active.
6. Next, open the stock export flow and set its schedule. See [Configure a Flow](/idc/idc-core/apps/configure-flow.md) for step-by-step instructions.
7. Test the sync by clicking **Run Now** to push current inventory to Lightspeed.

## Settings

This flow has no user-configurable settings. It runs based on the location mapping you create in the Stock tab.

## How location mapping works

When the stock export runs, IDC looks at each NetSuite item's quantity at each mapped location and sends that quantity to the corresponding Lightspeed outlet. For example:

* NetSuite Location: "Main Warehouse" → Lightspeed Outlet: "Downtown Store"
* Item SKU: "SHIRT-BLK-M" → Quantity: 45 units

IDC sends 45 units for SHIRT-BLK-M to the Downtown Store in Lightspeed.

If a NetSuite location is not mapped, items at that location are not synced. If a Lightspeed outlet is not mapped, it doesn't receive updates.

## Common issues

| Symptom                                 | What to try                                                                                                                                                        |
| --------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Stock levels not updating in Lightspeed | Check that the flow is active and scheduled. Verify that your location mapping is complete and saved. Review the activity log for any "location not found" errors. |
| Wrong quantities being sent             | Verify the location mapping under the Stock tab. Confirm that NetSuite locations are spelled correctly and match your outlets in Lightspeed.                       |
| Only some outlets receiving updates     | Check that all outlets are mapped in the Stock tab. Unmapped outlets will not receive updates even if the flow runs.                                               |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.in8sync.com/idc/lightspeed-x-series/stock-export.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
