# Stock Export

## What it does

The Stock Export flow reads inventory quantities from NetSuite and sends them to Shopify on a schedule. This keeps your Shopify store's stock levels accurate, preventing overselling and ensuring customers see the true availability of items. IDC maps NetSuite locations to Shopify locations, so stock is synced per location when your setup requires it.

## Before you start

* The Stock Export flow must be enabled in the Shopify app. Check the Flows section to confirm its status.
* Your NetSuite locations must be mapped to Shopify locations if you sync stock by location. See [Configure Stock Sync](/idc/idc-core/apps/stock-sync.md) for the mapping steps.

## How to configure

1. In the IDC dashboard, open the Shopify app.
2. Click the **Stock** tab.
3. You'll see location mapping options. If your Shopify store uses multiple fulfillment locations, map each NetSuite location to its corresponding Shopify location ID.
4. Click **Save** to apply the mappings.
5. In the Flows section, find the Stock Export flow and click **Schedule** to set a run frequency (e.g., every 1 hour).

See [Configure a Flow](/idc/idc-core/apps/configure-flow.md) for detailed scheduling instructions.

## Settings

The Stock Export flow has no configurable settings. It automatically exports all inventory quantities based on your location mapping.

## How location mapping works

If you have multiple fulfillment locations in both NetSuite and Shopify, IDC's location mapping ensures stock is sent to the correct location. For example, if you have a "Warehouse A" in NetSuite and a corresponding location in Shopify, IDC syncs Warehouse A's stock to that Shopify location. Without a mapping, IDC sends total stock to Shopify's default location.

If you use a single location, no mapping is required — IDC will send all stock to Shopify automatically.

## Common issues

| Symptom                                | What to try                                                                                                                                      |
| -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| Stock levels not updating in Shopify   | Check that the Stock Export flow is enabled and scheduled. Verify the flow ran successfully in the activity log.                                 |
| Wrong quantities being sent            | Verify the location mapping under the Stock tab matches your NetSuite locations. Ensure you're viewing stock from the correct NetSuite location. |
| Stock is empty in Shopify after export | Check that your NetSuite items have on-hand quantities. Verify the item IDs match between NetSuite and Shopify.                                  |


---

# 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/shopify/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.
