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

# WarehouseLayoutInput

> A whole warehouse layout. 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. Give a rack per shelving unit or floor spot, the stations, any walls, and where picking starts and ends; Redo names the bins from the racks and works out where each one is. Example, a warehouse with two aisles of racks back to back and a packing station: { "racks": [ { "x": 1, "y": 1, "row": "A", "name": "1", "accessibleSides": ["BOTTOM"], "levels": 3, "positions": ["1", "2"] }, { "x": 2, "y": 1, "row": "A", "name": "2", "accessibleSides": ["BOTTOM"], "levels": 3, "positions": ["1", "2"] }, { "x": 1, "y": 3, "row": "B", "name": "1", "accessibleSides": ["TOP"], "levels": 3, "positions": ["1", "2"] }, { "x": 2, "y": 3, "row": "B", "name": "2", "accessibleSides": ["TOP"], "levels": 3, "positions": ["1", "2"] } ], "stations": [{ "name": "PACK-1", "x": 4, "y": 2 }], "pickStart": { "x": 0, "y": 2 } }. Row A's racks open onto the aisle at y = 2, which row B's racks also face, and with the store's default naming they hold bins A-1-1-1 through B-2-3-2.

**height** `Int`

The grid's height in cells, at most 500, and width x height at most 250000. Omit for one walkway row past the lowest one.

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

Where pick routes end, such as packing. A route finishes at the rack nearest this cell.

**fields**

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

The column, from 0 at the left.

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

The row, from 0 at the top.

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

Where pick routes start, such as the cart pickup. A route begins at the rack nearest this cell.

**fields**

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

The column, from 0 at the left.

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

The row, from 0 at the top.

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

The racks, at least 2 and at most 20000, each on its own cell.

**fields**

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

The sides pickers reach the rack from, 1 to 4. Each should face a walkway cell, and every rack must be reachable from every other.

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

Patterns that name the bins in place of levels and positions, at most 50.

**fields**

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

SECONDARY marks them secondary pick locations. Omit to follow the rack.

**sellable** `Boolean`

Whether their stock can be sold. Omit to follow the rack.

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

The type of the bins it names: BIN, STORAGE, RECEIVING, STATION, SORTING\_TOTE or MESH\_BAG. Omit for BIN; a rack's only pattern without a type, sellable or priority types its bins by `levelStorageTypes` instead.

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

The pattern, at most 200 characters, such as `{ROW}-{RACK}-{1-4}-{A-C}`.

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

Bins with names of their own, at most 1000.

**fields**

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

The bin's full name.

**sellable** `Boolean`

Whether its stock can be sold. Omit to follow the rack.

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

The bin's type: BIN, STORAGE, RECEIVING, STATION, SORTING\_TOTE or MESH\_BAG.

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

Storage types by level; other levels are BIN.

**fields**

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

The first level, from 1 at the bottom.

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

The type: BIN, STORAGE, RECEIVING, STATION, SORTING\_TOTE or MESH\_BAG.

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

The last level, inclusive.

**levels** `Int`

Shelves or levels, 1 to 100, counted from 1 at the bottom.

**name** `String`

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

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

Overrides the store's bin naming for this rack.

**fields**

**minDigits** `Int`

Zero-pads numeric parts to this many digits, 0 to 10. Omit to use the store's setting.

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

The parts in each name, 1 to 4 of them. They are always joined in the order ROW, RACK, LEVEL, POSITION, with `-`.

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

How `positions` spread over the levels. Omit to use the store's setting.

**overhead** `Boolean`

True for overhead storage pickers walk underneath.

**positions** `[String!]`

Position labels on each level, at most 500, such as \["1", "2", "3"]. Needed for bins named by levels and positions; ignored with `binTemplates`.

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

SECONDARY makes every bin a secondary pick location.

**row** `String`

The ROW part of its bin names, usually the aisle or row letter. Racks of one row with the same name would name the same bins, which is refused.

**sellable** `Boolean`

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: BIN, STORAGE, RECEIVING, STATION, SORTING\_TOTE or MESH\_BAG.

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

The rack's column.

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

The rack's row on the grid.

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

The stations. A station missing from the list is removed.

**fields**

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

A name unique in the warehouse, 1 to 100 characters.

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

The station's column.

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

The station's row.

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

Walls pickers can't walk through.

**fields**

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

One end.

**fields**

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

The column, from 0 at the left.

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

The row, from 0 at the top.

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

The other end, in the same row or column.

**fields**

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

The column, from 0 at the left.

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

The row, from 0 at the top.

**width** `Int`

The grid's width in cells, at most 500. Omit for one walkway column past the furthest rack, station or start or end point.

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

Pick zones in the order a tote visits them, at most 9. Give none to pick without zones.

**fields**

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

Bin name patterns that also put bins in the zone. Not on the default zone.

**fields**

**enabled** `Boolean`

Whether the pattern is in use.

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

The pattern, such as `A-*`.

**default** `Boolean`

Makes this the default zone, which holds every bin no other zone claims. At most one.

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

An id unique in the layout, such as `north`. Reuse a zone's id to keep it.

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

The zone's name.

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

The cells it covers, not overlapping other zones. Leave empty for the default zone.

**fields**

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

Rows, at least 1.

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

Columns, at least 1.

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

The leftmost column.

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

The top row.


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