# Stock Export

## What it does

The stock export flow reads inventory quantities from NetSuite (accounting for kit expansions, multiple locations, and rounding rules) and sends them to eBay so your listings show accurate availability. IDC pulls stock levels whenever you update inventory in NetSuite and syncs them to eBay on a schedule. This prevents overselling and keeps buyers informed of true availability.

## 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 eBay locations. See [Configure Stock Sync](/idc/idc-core/apps/stock-sync.md).
* Each item you want to sync must have an eBay offer ID (created by the Item Update flow or manually in eBay Seller Hub).

## How to configure

1. In the eBay app, click the **Stock** tab.
2. Set up **Stock Settings**: specify which NetSuite location(s) hold inventory for eBay, and which item field to use for SKU matching (default: Item ID).
3. Create a **Stock Mapping** for each NetSuite location you want to include. Quantities from all mapped locations are summed and sent to eBay.
4. Save your settings.
5. Enable the Stock Export flow and set a schedule (hourly is typical).

For detailed stock setup instructions, see [Configure Stock Sync](/idc/idc-core/apps/stock-sync.md).

## Settings

| Setting                                    | What it does                                                                                                                                                                                          |
| ------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Republish ENDED Offers when Stock Returns? | When ON, if a listing was auto-ended by eBay due to zero stock and stock returns, IDC automatically re-publishes it. Default is OFF. Enable if you want zero-stock listings to restart automatically. |

## How location mapping works

Each NetSuite location in your stock mapping contributes to the total quantity sent to eBay. IDC sums all mapped locations for each SKU, applies rounding rules if configured, and sends the total to eBay. This lets you manage multi-location inventory from one NetSuite record and keep eBay synchronized.

For example, if you have 50 units in Warehouse A and 30 units in Warehouse B, and both are mapped to "eBay Stock", IDC sends 80 units to eBay.

## Common issues

| Symptom                           | What to try                                                                                                                                                                                            |
| --------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Stock levels not updating in eBay | Check that the Stock Export flow is Active and scheduled. Verify your location mappings are set in the Stock tab. Check the [activity log](/idc/idc-core/logs.md) to see if the flow ran successfully. |
| Wrong quantities being sent       | Verify the location mapping is correct and all locations are included. Check if rounding rules are applied in the Stock Settings.                                                                      |
| ENDED listings not restarting     | Verify "Republish ENDED Offers when Stock Returns?" is enabled. Also check that the eBay Marketplace record has all required publishing fields (category, policies, merchant location).                |


---

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