One assembly of a parts list. The root has level 1; sub assemblies hang under a buy/make part line through PartsListAssemblyReferences.
Label in Fledge: Stuklijst schraps
| URL | https://odata-api.fledge.nl/v2-8/PartsListAssemblies |
|---|---|
| Key | administration_idparts_list_assembly_idparts_list_header_id |
| Administration | Rows belong to one administration: always filter on administration_id. |
| Operations | GET listGET onePOSTPATCHDELETE |
| Read licenses | BASIS |
| Write licenses | BASIS |
| Scopes | FLEDGE_PORTAL |
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/PartsListAssemblies" \
--data-urlencode '$filter=administration_id eq 1' \
--data-urlencode '$select=parts_list_assembly_id,parts_list_header_id,level,quantity,date_created' \
--data-urlencode '$top=50' \
-H "Authorization: Bearer $TOKEN"const url = new URL('https://odata-api.fledge.nl/v2-8/PartsListAssemblies');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'parts_list_assembly_id,parts_list_header_id,level,quantity,date_created');
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/PartsListAssemblies" + "?" + string.Join("&",
"$filter=" + Uri.EscapeDataString("administration_id eq 1"),
"$select=" + Uri.EscapeDataString("parts_list_assembly_id,parts_list_header_id,level,quantity,date_created"),
"$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/PartsListAssemblies(administration_id=1,parts_list_assembly_id={parts_list_assembly_id},parts_list_header_id='{parts_list_header_id}')Fields
| Field | Type | Description |
|---|---|---|
administration_idkey | Int32 | Administratienummer |
parts_list_header_idkey | String | Calculatienummer |
parts_list_assembly_idkey | Int32 | Schrapnummer |
article_custom_field_set_id | Int32 | Volgnummer |
date_created | Date | Datum aanmaak |
date_updated | Date | Datum wijzig |
description_1 | String | Omschrijving |
description_2 | String | Omschrijving |
description_3 | String | Omschrijving |
drawing_number | String | Tekening nummer: Tekeningnummer |
is_completed | Boolean | Afgehandeld (ja/nee) |
memo | String | Memo |
net_gross_manual | Int32 | Netto/Bruto/Handmatig |
phase | Int32 | Fase |
revenue_group_id | Int32 | Omzetgroep |
revision | String | Revisie |
sequence | Int32 | Volgorde |
total_operation_time | Int32 | Totaal bewerkingstijd: Totale bewerkingstijd |
total_setup_time | Int32 | Totaal insteltijd: Totale insteltijd |
user_created | Int32 | User aanmaak |
user_updated | Int32 | User wijzig |
area | Decimal | Oppervlakte |
article_id | String | Artikelcode |
level | Int32 | Niveau 1 is the root assembly. The legacy ERP gives every other assembly 2, whatever its depth. Only level eq 1 means something: use it to find the root, never as the depth or to find a parent. Values above 2 exist but are wrong data, written by the new calculation screen. The tree is in the reference table only. |
quantity | Decimal | Aantal The quantity of this assembly for one product of the root. |
weight | Decimal | Gewicht |
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 |
Article | Articles | one |
ArticleCustomFieldSet | ArticleCustomFieldSets | one |
PartsListHeader | PartsListHeaders | one |
RevenueGroup | RevenueGroups | one |
DocumentLinks | DocumentLinks | many |
PartsListAssemblyReferences | PartsListAssemblyReferences | many |
PartsListBuyMakeParts | PartsListBuyMakeParts | many |
PartsListMainOperations | PartsListMainOperations | many |
PartsListMaterials | PartsListMaterials | many |
PartsListOutsourcedItems | PartsListOutsourcedItems | many |
PartsListSubOperationLinks | PartsListSubOperationLinks | many |
PartsListSubOperations | PartsListSubOperations | many |