# WarehouseShelfs

> A shelf (vak, schap or locatie) in an aisle: the place stock is kept.

Subject: Warehouse.

A shelf (vak, schap or locatie) in an aisle: the place stock is kept. Its id is unique only within its address and aisle, so always use all three.

Label in Fledge: Magazijn locaties.

| | |
| --- | --- |
| URL | `https://odata-api.fledge.nl/v2-8/WarehouseShelfs` |
| Key | `administration_id`, `warehouse_address_id`, `warehouse_aisle_id`, `warehouse_shelf_id` |
| Administration-specific | yes: always filter on `administration_id` |
| Operations | GET list, GET one, POST, PATCH, DELETE |
| Read licenses | BASIS, BASISAPP, URENPC |
| Write licenses | VERKOOP, PRODUCTIE, INKOOP, FINANCIEEL, BEHEER |
| Scopes | FLEDGE_PORTAL, FLEDGE_TERMINAL |

## Example requests

```http
GET https://odata-api.fledge.nl/v2-8/WarehouseShelfs?$filter=administration_id eq 1&$select=warehouse_address_id,warehouse_aisle_id,warehouse_shelf_id,is_primary,description,code&$top=50
GET https://odata-api.fledge.nl/v2-8/WarehouseShelfs(administration_id=1,warehouse_address_id={warehouse_address_id},warehouse_aisle_id={warehouse_aisle_id},warehouse_shelf_id={warehouse_shelf_id})
```

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `administration_id` (key) | Int32 | Administratienummer |
| `warehouse_address_id` (key) | Int32, not null | Adresnummer |
| `warehouse_aisle_id` (key) | Int32, not null | Magazijn |
| `warehouse_shelf_id` (key) | Int32, not null | Locatie |
| `code` | String | Code |
| `description` | String | Omschrijving |
| `is_dynamic` | Boolean | Dynamisch (ja/nee) |
| `is_primary` | Boolean | Primair. The default shelf (standaard locatie) of its aisle; one per aisle. The app can't delete it. Not the article's default location (ArticleLocations.is_primary). |

## Relations

- `Administration` → [Administrations](https://docs.fledge.nl/en/api/reference/Administrations.md) (one)
- `WarehouseAddress` → [WarehouseAddresses](https://docs.fledge.nl/en/api/reference/WarehouseAddresses.md) (one)
- `WarehouseAisle` → [WarehouseAisles](https://docs.fledge.nl/en/api/reference/WarehouseAisles.md) (one)
- `ProductionOrderAssemblies` → [ProductionOrderAssemblies](https://docs.fledge.nl/en/api/reference/ProductionOrderAssemblies.md) (many)
- `ProductionOrderHeaders` → [ProductionOrderHeaders](https://docs.fledge.nl/en/api/reference/ProductionOrderHeaders.md) (many)

## Actions

- `POST WarehouseShelfs(administration_id=1,warehouse_address_id={warehouse_address_id},warehouse_aisle_id={warehouse_aisle_id},warehouse_shelf_id={warehouse_shelf_id})/moveArticleToShelf` — body: `article_id` String; `quantity` Decimal; `target_lot_number` String; `source_location` WarehouseShelfSourceLocationDto: warehouse_address_id (Int32), warehouse_aisle_id (Int32), warehouse_shelf_id (Int32), lot_number (String); `memo` String; `purchase_order_line_statuses` MoveArticleToShelfPurchaseOrderLineStatusDto[]: purchase_order_header_id (String), purchase_order_line_id (Int32), purchase_order_line_status_id (Int32), quantity (Decimal), sales_order_purchase_order_links (MoveArticleToShelfSalesLinkDto[]), purchase_order_production_order_links (MoveArticleToShelfProductionLinkDto[]) — returns ArticleTransfer

---

Source: https://docs.fledge.nl/en/api/reference/WarehouseShelfs
