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_idarticle_idlot_numberwarehouse_address_idwarehouse_aisle_idwarehouse_shelf_id |
| Administration | Rows belong to one administration: always filter on administration_id. |
| Operations | GET listGET onePOSTPATCHDELETE |
| Read licenses | BASIS |
| Write licenses | BASIS |
| Scopes | FLEDGE_PORTALFLEDGE_TERMINAL |
Example requests
A page of rows, with only the fields you need. See Authentication for the token.
curl -G "https://odata-api.fledge.nl/v2-8/ArticleLocations" \
--data-urlencode '$filter=administration_id eq 1' \
--data-urlencode '$select=article_id,lot_number,warehouse_address_id,warehouse_aisle_id,warehouse_shelf_id,is_primary,quantity_economical_stock,quantity_minimum_stock' \
--data-urlencode '$top=50' \
-H "Authorization: Bearer $TOKEN"const url = new URL('https://odata-api.fledge.nl/v2-8/ArticleLocations');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'article_id,lot_number,warehouse_address_id,warehouse_aisle_id,warehouse_shelf_id,is_primary,quantity_economical_stock,quantity_minimum_stock');
url.searchParams.set('$top', '50');
const response = await fetch(url, { headers: { Authorization: `Bearer ${token}` } });
const { value } = await response.json();var url = "https://odata-api.fledge.nl/v2-8/ArticleLocations" + "?" + string.Join("&",
"$filter=" + Uri.EscapeDataString("administration_id eq 1"),
"$select=" + Uri.EscapeDataString("article_id,lot_number,warehouse_address_id,warehouse_aisle_id,warehouse_shelf_id,is_primary,quantity_economical_stock,quantity_minimum_stock"),
"$top=" + Uri.EscapeDataString("50"));
http.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token);
var json = await http.GetStringAsync(url);One row by its key:
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_idkey | Int32 | Administratienummer |
lot_numberkey | String | Lotnummer/partijregistratie The lot (partij); empty for stock without a lot. One location has a row per lot. |
warehouse_address_idkey | Int32 | Adresnummer The warehouse or site (magazijn in the warehouse screens); unique per administration. |
article_idkey | String | Artikelcode |
warehouse_aisle_idkey | Int32 | Magazijn The aisle (gang; magazijn in older screens); unique only within its address. |
warehouse_shelf_idkey | Int32 | 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
Read a related row or list in the same request with $expand, and give it its own $select; a list also needs a $top.
| Navigation | Entity set | |
|---|---|---|
Administration | Administrations | one |
Article | Articles | one |
WarehouseAddress | WarehouseAddresses | one |
WarehouseAisle | WarehouseAisles | one |
WarehouseShelf | WarehouseShelfs | one |