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

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

FieldTypeDescription
administration_idkeyInt32Administratienummer
warehouse_address_idkeyInt32Adresnummer
warehouse_aisle_idkeyInt32Magazijn
warehouse_shelf_idkeyInt32Locatie
codeStringCode
descriptionStringOmschrijving
is_dynamicBooleanDynamisch (ja/nee)
is_primaryBooleanPrimair

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.

NavigationEntity set
AdministrationAdministrationsone
WarehouseAddressWarehouseAddressesone
WarehouseAisleWarehouseAislesone
ProductionOrderAssembliesProductionOrderAssembliesmany
ProductionOrderHeadersProductionOrderHeadersmany

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})/moveArticleToShelf
  • 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

Licenses: BEHEER, FINANCIEEL, INKOOP, PRODUCTIE, VERKOOP

Wingman