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

# warehouseLayout

> The layout of a warehouse location: its racks and how their bins are named, stations, walls, where picking starts and ends, and pick zones, as the warehouse builder draws it and pick routes use it. Null when the location has no layout or isn't one of your locations.

**Required scopes:** [`locations_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-locations_read)

**Store must have one of:** `WMS`

## Arguments

**locationId** `ID!` *required*

The warehouse location. Find one with `locations`.

## Returns

**warehouseLayout** `[WarehouseLayout](/docs/api-reference/v3/reference/inventory/warehouse-layout)`

The map of one warehouse that pick routes are planned on: its racks and their bins, stations, walls, where picking starts and ends, and pick zones. Coordinates are whole grid cells. x counts columns from 0 at the left, y counts rows from 0 at the top, as the warehouse builder draws the map. Every cell inside width x height that holds no rack or station is walkway a picker can walk through.

**fields**

**height** `Int!` *required*

The grid's height in cells.

**location** `[Location!](/docs/api-reference/v3/reference/inventory/location)` *required*

The warehouse location the layout maps.

**fields**

**city** `String`

The city of the location's address.

**company** `String`

The company name associated with the location.

**countryCode** `String`

The country code, e.g. "US".

**createdAt** `[DateTime!](/docs/api-reference/v3/reference/common/date-time)` *required*

When the record was created.

**id** `ID!` *required*

The id of this location.

**inventoryItems** `[InventoryItemConnection!](/docs/api-reference/v3/pagination)` *required*

Traceable inventory units at this warehouse.

**Requires:** [`inventory_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-inventory_read)

**fields**

**Arguments**

**after** `String`

Forward pagination cursor — returns items after it. Pass an `edges[].cursor` or `pageInfo.endCursor` from a previous page.

**before** `String`

Backward pagination cursor — returns items before it. Pass an `edges[].cursor` or `pageInfo.startCursor` from a previous page.

**first** `Int`

Forward pagination: returns the first N items (max 100, default 25). Use with `after`; mutually exclusive with `last`/`before`.

**last** `Int`

Backward pagination: returns the last N items (max 100, default 25). Use with `before`; mutually exclusive with `first`/`after`.

**Fields**

**edges** `[\[InventoryItemEdge!\]!](/docs/api-reference/v3/pagination)` *required*

The list of edges (each a node plus its pagination `cursor`).

**nodes** `[\[InventoryItem!\]!](/docs/api-reference/v3/reference/inventory/inventory-item)` *required*

The nodes in this page, without the edge/cursor wrapper — a convenience over `edges`.

**pageInfo** `[PageInfo!](/docs/api-reference/v3/pagination)` *required*

Pagination metadata for the current page.

**inventoryLevels** `[LocationInventoryLevelConnection!](/docs/api-reference/v3/pagination)` *required*

Per-product inventory levels held at this location.

**Requires:** [`inventory_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-inventory_read)

**fields**

**Arguments**

**after** `String`

Forward pagination cursor — returns items after it. Pass an `edges[].cursor` or `pageInfo.endCursor` from a previous page.

**before** `String`

Backward pagination cursor — returns items before it. Pass an `edges[].cursor` or `pageInfo.startCursor` from a previous page.

**first** `Int`

Forward pagination: returns the first N items (max 100, default 25). Use with `after`; mutually exclusive with `last`/`before`.

**last** `Int`

Backward pagination: returns the last N items (max 100, default 25). Use with `before`; mutually exclusive with `first`/`after`.

**Fields**

**edges** `[\[LocationInventoryLevelEdge!\]!](/docs/api-reference/v3/pagination)` *required*

The list of edges (each a node plus its pagination `cursor`).

**nodes** `[\[LocationInventoryLevel!\]!](/docs/api-reference/v3/reference/inventory/location-inventory-level)` *required*

The nodes in this page, without the edge/cursor wrapper — a convenience over `edges`.

**pageInfo** `[PageInfo!](/docs/api-reference/v3/pagination)` *required*

Pagination metadata for the current page.

**name** `String!` *required*

The location's display name.

**phone** `String`

The contact phone number for the location.

**postalCode** `String`

The postal or ZIP code, e.g. "84101".

**stateCode** `String`

The state or province code, e.g. "UT".

**storageLocations** `[StorageLocationConnection!](/docs/api-reference/v3/pagination)` *required*

Bins and other storage locations within this warehouse.

**Requires:** [`locations_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-locations_read)

**fields**

**Arguments**

**after** `String`

Forward pagination cursor — returns items after it. Pass an `edges[].cursor` or `pageInfo.endCursor` from a previous page.

**before** `String`

Backward pagination cursor — returns items before it. Pass an `edges[].cursor` or `pageInfo.startCursor` from a previous page.

**first** `Int`

Forward pagination: returns the first N items (max 100, default 25). Use with `after`; mutually exclusive with `last`/`before`.

**last** `Int`

Backward pagination: returns the last N items (max 100, default 25). Use with `before`; mutually exclusive with `first`/`after`.

**Fields**

**edges** `[\[StorageLocationEdge!\]!](/docs/api-reference/v3/pagination)` *required*

The list of edges (each a node plus its pagination `cursor`).

**nodes** `[\[StorageLocation!\]!](/docs/api-reference/v3/reference/inventory/storage-location)` *required*

The nodes in this page, without the edge/cursor wrapper — a convenience over `edges`.

**pageInfo** `[PageInfo!](/docs/api-reference/v3/pagination)` *required*

Pagination metadata for the current page.

**street1** `String`

The first line of the street address.

**street2** `String`

The second line of the street address.

**updatedAt** `[DateTime!](/docs/api-reference/v3/reference/common/date-time)` *required*

When the record was last updated.

**pickEnd** `[WarehouseLayoutPoint](/docs/api-reference/v3/reference/inventory/warehouse-layout-point)`

Where pick routes end, usually by packing; a route finishes at the rack nearest this cell. Null finishes at the last bin picked.

**fields**

**x** `Int!` *required*

The column, from 0 at the left.

**y** `Int!` *required*

The row, from 0 at the top.

**pickStart** `[WarehouseLayoutPoint](/docs/api-reference/v3/reference/inventory/warehouse-layout-point)`

Where pick routes start, usually by the cart or tote pickup; a route begins at the rack nearest this cell. Null begins at the first rack in the layout.

**fields**

**x** `Int!` *required*

The column, from 0 at the left.

**y** `Int!` *required*

The row, from 0 at the top.

**racks** `[\[WarehouseLayoutRack!\]!](/docs/api-reference/v3/reference/inventory/warehouse-layout-rack)` *required*

The racks, each on its own cell.

**fields**

**accessibleSides** `[\[WarehouseLayoutSide!\]!](/docs/api-reference/v3/reference/inventory/warehouse-layout-side)` *required*

The sides a picker stands on to reach the rack. Each must face a walkway cell.

**binTemplates** `[\[WarehouseLayoutBinTemplate!\]!](/docs/api-reference/v3/reference/inventory/warehouse-layout-bin-template)` *required*

Patterns that name the rack's bins in place of `levels` and `positions`. Empty uses `levels` and `positions`.

**fields**

**priority** `[StorageLocationPriority](/docs/api-reference/v3/reference/inventory/storage-location-priority)`

SECONDARY marks these bins secondary pick locations. Null follows the rack's `priority`.

**sellable** `Boolean`

Whether stock in these bins can be sold and picked for orders. Null follows the rack's `sellable`.

**storageType** `[StorageLocationType](/docs/api-reference/v3/reference/inventory/storage-location-type)`

The type of the bins this pattern names. Null only for a rack with a single pattern whose types come from `levelStorageTypes`, counting the first range in the pattern as the level.

**template** `String!` *required*

The pattern.

**customBins** `[\[WarehouseLayoutCustomBin!\]!](/docs/api-reference/v3/reference/inventory/warehouse-layout-custom-bin)` *required*

Bins with names of their own, added to the others.

**fields**

**name** `String!` *required*

The bin's full name.

**sellable** `Boolean`

Whether its stock can be sold. Null follows the rack.

**storageType** `[StorageLocationType!](/docs/api-reference/v3/reference/inventory/storage-location-type)` *required*

The bin's type, unless the rack sets `storageType`.

**levelStorageTypes** `[\[WarehouseLayoutLevelStorageType!\]!](/docs/api-reference/v3/reference/inventory/warehouse-layout-level-storage-type)` *required*

Storage types by level, for bins named from `levels` and `positions` or a single untyped template.

**fields**

**fromLevel** `Int!` *required*

The first level of the run, from 1 at the bottom.

**storageType** `[StorageLocationType!](/docs/api-reference/v3/reference/inventory/storage-location-type)` *required*

The type of the bins on these levels.

**toLevel** `Int!` *required*

The last level of the run, inclusive.

**levels** `Int!` *required*

The number of shelves or levels, counted from 1 at the bottom.

**name** `String`

The RACK part of its bin names, often its number within the row. Null names it `R<x>-<y>`.

**naming** `[WarehouseLayoutRackNaming](/docs/api-reference/v3/reference/inventory/warehouse-layout-rack-naming)`

How this rack builds bin names instead of the store's setting. Null uses the store's setting.

**fields**

**minDigits** `Int`

Numeric parts are zero-padded to this many digits: 2 makes level 1 `01`. Null uses the store's setting.

**parts** `[\[WarehouseLayoutBinNamePart!\]!](/docs/api-reference/v3/reference/inventory/warehouse-layout-bin-name-part)` *required*

The parts in each bin name, always in the order ROW, RACK, LEVEL, POSITION, joined by `-`.

**positionMode** `[WarehouseLayoutPositionMode](/docs/api-reference/v3/reference/inventory/warehouse-layout-position-mode)`

How `positions` spread over the levels. Null uses the store's setting.

**overhead** `Boolean!` *required*

Whether the rack is overhead storage that pickers can walk underneath, so its cell stays walkable.

**positions** `[String!]!` *required*

The position labels on a level, left to right, such as 1, 2, 3 or A, B. Each level repeats them unless `naming.positionMode` spreads them.

**priority** `[StorageLocationPriority!](/docs/api-reference/v3/reference/inventory/storage-location-priority)` *required*

SECONDARY makes every bin in the rack a secondary pick location, picked after primary bins.

**row** `String`

The ROW part of its bin names, usually the aisle or row letter. Racks with the same row are picked as one run when the store routes pickers row by row.

**sellable** `Boolean!` *required*

Whether stock in the rack's bins can be sold and picked for orders.

**storageType** `[StorageLocationType](/docs/api-reference/v3/reference/inventory/storage-location-type)`

Makes every bin in the rack this type. Null types them by level, template or custom bin, BIN by default.

**x** `Int!` *required*

The rack's column.

**y** `Int!` *required*

The rack's row on the grid.

**stations** `[\[WarehouseLayoutStation!\]!](/docs/api-reference/v3/reference/inventory/warehouse-layout-station)` *required*

The stations, each on its own cell.

**fields**

**name** `String!` *required*

The station's name, unique in the warehouse.

**x** `Int!` *required*

The station's column.

**y** `Int!` *required*

The station's row.

**updatedAt** `[DateTime](/docs/api-reference/v3/reference/common/date-time)`

When the layout was last saved. Pass it as `expectedUpdatedAt` to `warehouseLayoutUpdate`. Null in a dry run's preview, which isn't saved.

**walls** `[\[WarehouseLayoutWall!\]!](/docs/api-reference/v3/reference/inventory/warehouse-layout-wall)` *required*

The walls.

**fields**

**from** `[WarehouseLayoutPoint!](/docs/api-reference/v3/reference/inventory/warehouse-layout-point)` *required*

One end of the wall, a grid line crossing.

**fields**

**x** `Int!` *required*

The column, from 0 at the left.

**y** `Int!` *required*

The row, from 0 at the top.

**to** `[WarehouseLayoutPoint!](/docs/api-reference/v3/reference/inventory/warehouse-layout-point)` *required*

The other end, in the same row or column as `from`.

**fields**

**x** `Int!` *required*

The column, from 0 at the left.

**y** `Int!` *required*

The row, from 0 at the top.

**width** `Int!` *required*

The grid's width in cells.

**zones** `[\[WarehouseLayoutZone!\]!](/docs/api-reference/v3/reference/inventory/warehouse-layout-zone)` *required*

The pick zones in the order a tote visits them. Empty when the warehouse doesn't pick by zone.

**fields**

**binPatterns** `[\[WarehouseLayoutZoneBinPattern!\]!](/docs/api-reference/v3/reference/inventory/warehouse-layout-zone-bin-pattern)` *required*

Bin name patterns that also put bins in the zone.

**fields**

**enabled** `Boolean!` *required*

Whether the pattern is in use.

**pattern** `String!` *required*

The pattern.

**default** `Boolean!` *required*

Whether this is the default zone, which holds every bin no other zone claims.

**id** `String!` *required*

The zone's id, unique in the layout. Keep it when you change the zone.

**name** `String!` *required*

The zone's name.

**rectangles** `[\[WarehouseLayoutZoneRectangle!\]!](/docs/api-reference/v3/reference/inventory/warehouse-layout-zone-rectangle)` *required*

The cells the zone covers. Zones don't overlap. Empty for the default zone.

**fields**

**height** `Int!` *required*

Rows covered, at least 1.

**width** `Int!` *required*

Columns covered, at least 1.

**x** `Int!` *required*

The leftmost column.

**y** `Int!` *required*

The top row.

## Example

```graphql theme={null}
query {
  warehouseLayout(locationId: "...") {
    height
    updatedAt
    width
  }
}
```


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