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

# Warehouse mapping

> Map each warehouse to the storefronts it ships for, so inventory and incoming deliveries reports by storefront show the right stock. Covers unmapped warehouses and when a warehouse-to-storefront mapping change applies.

The warehouse mapping tells Dema which storefronts each warehouse ships for. Inventory and incoming deliveries reports use it when you break down or filter stock by storefront.

***

## How the mapping is used

Each mapping pairs a warehouse with a storefront. A warehouse can ship for several storefronts, and a storefront can get stock from several warehouses.

| Warehouse | Stock in reports by storefront |
| - | - |
| **Mapped to one storefront** | Counts for that storefront only |
| **Mapped to several storefronts** | Counts in full for each of them |
| **Not mapped** | Counts for every storefront in your account |

> [!NOTE]
>
> Because a shared or unmapped warehouse counts in full for each storefront, the storefront rows of a report can add up to more than your total stock. The total itself counts each warehouse once.

The mapping only affects inventory and incoming deliveries data, not orders. An order's warehouse comes from your e-commerce platform. For Shopify, it's set by the [warehouse names](https://docs.dema.ai/integrations/ecommerce/shopify-order-settings.md#warehouse-names) order settings.

***

## Changing the mapping

If warehouse mapping is enabled for your account, edit it under **Settings → Warehouse mapping**. You can also ask the Dema Agent to show or explain your current mapping.

> [!NOTE]
>
> Reports pick up a mapping change within about an hour, and apply it to past days too. If Dema keeps a daily history of your mapping, each past day instead keeps the mapping it had at the time. Your Customer Success Manager can tell you whether this applies to your account.

> [accordion] Warehouse mapping vs storefront assignment
>
> [Storefront assignment](https://docs.dema.ai/integrations/datawarehouse/fileTransfer.md#storefront-assignment), used for file and data warehouse integrations, decides which storefront an order or return belongs to. The warehouse mapping only decides which storefronts a warehouse's stock counts for.

***

## Need help?

> [card] Contact support
>
> Email us at [support@dema.ai](mailto:support@dema.ai) for further assistance

> [card] [Orders and inventory](https://docs.dema.ai/guides/setup/integrate-orders-and-inventory.md)
>
> How order and inventory data reach Dema


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