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

URLhttps://odata-api.fledge.nl/v2-8/ArticleLocations
Keyadministration_idarticle_idlot_numberwarehouse_address_idwarehouse_aisle_idwarehouse_shelf_id
AdministrationRows belong to one administration: always filter on administration_id.
OperationsGET listGET onePOSTPATCHDELETE
Read licensesBASIS
Write licensesBASIS
ScopesFLEDGE_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

FieldTypeDescription
administration_idkeyInt32Administratienummer
lot_numberkeyStringLotnummer/partijregistratie

The lot (partij); empty for stock without a lot. One location has a row per lot.

warehouse_address_idkeyInt32Adresnummer

The warehouse or site (magazijn in the warehouse screens); unique per administration.

article_idkeyStringArtikelcode
warehouse_aisle_idkeyInt32Magazijn

The aisle (gang; magazijn in older screens); unique only within its address.

warehouse_shelf_idkeyInt32Locatie

The shelf (vak, schap or locatie); unique only within its address and aisle.

changed_byInt32User wijzig
created_byInt32User aanmaak
date_creationDateDatum aanmaak
date_last_changeDateDatum wijzig
is_primaryBooleanPrimair

Meant to mark the article's default location, but not reliable.

quantity_economical_stockDecimalEconomische voorraad

The economic stock on this location.

quantity_maximum_stockDecimalMaximale voorraad
quantity_minimum_stockDecimalMinimale voorraad

The minimum stock of this location, used when replenishment is per location.

quantity_status_production_orderStringAantal status WO

The same for production assembly statuses (__1 up to __20).

quantity_status_production_order_assemblyStringAantal WO sub

For components of production orders (__1 up to __5): __1 reserved and __2 issued.

quantity_status_purchase_orderStringAantal status IO

The same for purchase order line statuses (__1 up to __20).

quantity_status_sales_orderStringAantal 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_stockDecimalAantal voorraad

The book stock (financiële voorraad) on this location and lot, in the article's main unit.

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

NavigationEntity set
AdministrationAdministrationsone
ArticleArticlesone
WarehouseAddressWarehouseAddressesone
WarehouseAisleWarehouseAislesone
WarehouseShelfWarehouseShelfsone
Wingman