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_idwarehouse_address_idwarehouse_aisle_idwarehouse_shelf_id |
| Administration | Rows belong to one administration: always filter on administration_id. |
| Operations | GET listGET onePOSTPATCHDELETE |
| Read licenses | BASISBASISAPPURENPC |
| Write licenses | VERKOOPPRODUCTIEINKOOPFINANCIEELBEHEER |
| 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/WarehouseShelfs" \
--data-urlencode '$filter=administration_id eq 1' \
--data-urlencode '$select=warehouse_address_id,warehouse_aisle_id,warehouse_shelf_id,is_primary,description,code' \
--data-urlencode '$top=50' \
-H "Authorization: Bearer $TOKEN"const url = new URL('https://odata-api.fledge.nl/v2-8/WarehouseShelfs');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'warehouse_address_id,warehouse_aisle_id,warehouse_shelf_id,is_primary,description,code');
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/WarehouseShelfs" + "?" + string.Join("&",
"$filter=" + Uri.EscapeDataString("administration_id eq 1"),
"$select=" + Uri.EscapeDataString("warehouse_address_id,warehouse_aisle_id,warehouse_shelf_id,is_primary,description,code"),
"$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/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_idkey | Int32 | Administratienummer |
warehouse_address_idkey | Int32 | Adresnummer |
warehouse_aisle_idkey | Int32 | Magazijn |
warehouse_shelf_idkey | Int32 | 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
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 |
WarehouseAddress | WarehouseAddresses | one |
WarehouseAisle | WarehouseAisles | one |
ProductionOrderAssemblies | ProductionOrderAssemblies | many |
ProductionOrderHeaders | ProductionOrderHeaders | many |
Actions
moveArticleToShelf
POST 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})/moveArticleToShelfarticle_idStringquantityDecimaltarget_lot_numberStringsource_locationWarehouseShelfSourceLocationDtowarehouse_address_idInt32warehouse_aisle_idInt32warehouse_shelf_idInt32lot_numberString
memoStringpurchase_order_line_statusesMoveArticleToShelfPurchaseOrderLineStatusDto[]purchase_order_header_idStringpurchase_order_line_idInt32purchase_order_line_status_idInt32quantityDecimalsales_order_purchase_order_linksMoveArticleToShelfSalesLinkDto[]purchase_order_production_order_linksMoveArticleToShelfProductionLinkDto[]
Returns ArticleTransfer
Licenses: BEHEER, FINANCIEEL, INKOOP, PRODUCTIE, VERKOOP