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
| URL | https://odata-api.fledge.nl/v2-8/WarehouseAddresses |
|---|---|
| Key | administration_idwarehouse_address_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/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
| Field | Type | Description |
|---|---|---|
administration_idkey | Int32 | Administratienummer |
warehouse_address_idkey | Int32 | Adresnummer |
city_1 | String | Plaats |
city_2 | String | Plaats |
code | String | Code |
company_name | String | Bedrijfsnaam |
country_id | Int32 | Landnummer |
description | String | Omschrijving |
email | String | |
fax_number | String | Telefax |
intrastat_traffic_area_id | Int32 | Verkeersgebied code: Verkeersgebiedcode |
is_primary | Boolean | Primair 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_id | Int32 | Taalkode |
memo | String | Opmerking |
phone_number | String | Telefoon |
street_1 | String | Straat |
street_2 | String | Straat |
street_number_1 | Int32 | Nummer |
street_number_2 | String | Subnummer |
zip_code | String | Postcode |
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 |
CountryCode | CountryCodes | one |
ProductionOrderAssemblies | ProductionOrderAssemblies | many |
ProductionOrderHeaders | ProductionOrderHeaders | many |
WarehouseAisles | WarehouseAisles | many |