A warehouse or site (magazijn in the warehouse screens, hoofdmagazijn on the scanner), with its address. The top of the three location levels: address, aisle, shelf.

Label in Fledge: Magazijn adressen

URLhttps://odata-api.fledge.nl/v2-8/WarehouseAddresses
Keyadministration_idwarehouse_address_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/WarehouseAddresses" \
  --data-urlencode '$filter=administration_id eq 1' \
  --data-urlencode '$select=warehouse_address_id,is_primary,company_name,description' \
  --data-urlencode '$top=50' \
  -H "Authorization: Bearer $TOKEN"
const url = new URL('https://odata-api.fledge.nl/v2-8/WarehouseAddresses');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'warehouse_address_id,is_primary,company_name,description');
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/WarehouseAddresses" + "?" + string.Join("&",
    "$filter=" + Uri.EscapeDataString("administration_id eq 1"),
    "$select=" + Uri.EscapeDataString("warehouse_address_id,is_primary,company_name,description"),
    "$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/WarehouseAddresses(administration_id=1,warehouse_address_id={warehouse_address_id})

Fields

FieldTypeDescription
administration_idkeyInt32Administratienummer
warehouse_address_idkeyInt32Adresnummer
city_1StringPlaats
city_2StringPlaats
codeStringCode
company_nameStringBedrijfsnaam
country_idInt32Landnummer
descriptionStringOmschrijving
emailStringE-mail
fax_numberStringTelefax
intrastat_traffic_area_idInt32Verkeersgebied code: Verkeersgebiedcode
is_primaryBooleanPrimair

The administration's default warehouse; one per administration. Not the article's default location (ArticleLocations.is_primary). The app shows it but can't change it.

language_idInt32Taalkode
memoStringOpmerking
phone_numberStringTelefoon
street_1StringStraat
street_2StringStraat
street_number_1Int32Nummer
street_number_2StringSubnummer
zip_codeStringPostcode

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
CountryCodeCountryCodesone
ProductionOrderAssembliesProductionOrderAssembliesmany
ProductionOrderHeadersProductionOrderHeadersmany
WarehouseAislesWarehouseAislesmany
Wingman