# ArticleLocations

> The stock of one article on one warehouse location (address, aisle, shelf) and lot.

Subject: Warehouse.

The stock of one article on one warehouse location (address, aisle, shelf) and lot. Holds the book stock and, per order status, the quantities booked on the location. Physical stock is not stored: it is quantity_stock minus the listed sales and component statuses and plus the listed purchase and production statuses of the PHYSICAL_INVENTORY_* settings. That is how the stock overview (Voorraadoverzicht) works it out; the article's Voorraad tab, the location tab and the scanner subtract the purchase and production statuses too (see the stock skill).

Label in Fledge: Artikel locaties.

| | |
| --- | --- |
| URL | `https://odata-api.fledge.nl/v2-8/ArticleLocations` |
| Key | `administration_id`, `article_id`, `lot_number`, `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 |
| Write licenses | BASIS |
| Scopes | FLEDGE_PORTAL, FLEDGE_TERMINAL |

## Example requests

```http
GET https://odata-api.fledge.nl/v2-8/ArticleLocations?$filter=administration_id eq 1&$select=article_id,lot_number,warehouse_address_id,warehouse_aisle_id,warehouse_shelf_id,is_primary,quantity_economical_stock,quantity_minimum_stock&$top=50
GET https://odata-api.fledge.nl/v2-8/ArticleLocations(administration_id=1,article_id='{article_id}',lot_number='{lot_number}',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 |
| `lot_number` (key) | String, not null | Lotnummer/partijregistratie. The lot (partij); empty for stock without a lot. One location has a row per lot. |
| `warehouse_address_id` (key) | Int32, not null | Adresnummer. The warehouse or site (magazijn in the warehouse screens); unique per administration. |
| `article_id` (key) | String, not null | Artikelcode |
| `warehouse_aisle_id` (key) | Int32, not null | Magazijn. The aisle (gang; magazijn in older screens); unique only within its address. |
| `warehouse_shelf_id` (key) | Int32, not null | Locatie. The shelf (vak, schap or locatie); unique only within its address and aisle. |
| `changed_by` | Int32 | User wijzig |
| `created_by` | Int32 | User aanmaak |
| `date_creation` | Date | Datum aanmaak |
| `date_last_change` | Date | Datum wijzig |
| `is_primary` | Boolean | Primair. Meant to mark the article's default location, but not reliable. |
| `quantity_economical_stock` | Decimal | Economische voorraad. The economic stock on this location. |
| `quantity_maximum_stock` | Decimal | Maximale voorraad |
| `quantity_minimum_stock` | Decimal | Minimale voorraad. The minimum stock of this location, used when replenishment is per location. |
| `quantity_status_production_order` | String | Aantal status WO. The same for production assembly statuses (__1 up to __20). |
| `quantity_status_production_order_assembly` | String | Aantal WO sub. For components of production orders (__1 up to __5): __1 reserved and __2 issued. |
| `quantity_status_purchase_order` | String | Aantal status IO. The same for purchase order line statuses (__1 up to __20). |
| `quantity_status_sales_order` | String | Aantal status VO. Selected, comes back as quantity_status_sales_order__1 up to __20: the quantity of open sales status lines in each status on this location. |
| `quantity_stock` | Decimal | Aantal voorraad. The book stock (financiële voorraad) on this location and lot, in the article's main unit. |
| `sscc_label_id` | Int64 | SSCC-code id: Uniek volgnummer SSCC-code. Above 0 when the row is a pallet with an SSCC label. |

## Relations

- `Administration` → [Administrations](https://docs.fledge.nl/en/api/reference/Administrations.md) (one)
- `Article` → [Articles](https://docs.fledge.nl/en/api/reference/Articles.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)
- `WarehouseShelf` → [WarehouseShelfs](https://docs.fledge.nl/en/api/reference/WarehouseShelfs.md) (one)

---

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