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

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

FieldTypeDescription
administration_idkeyInt32Administratienummer
parts_list_header_idkeyStringCalculatienummer
parts_list_assembly_idkeyInt32Schrapnummer
article_custom_field_set_idInt32Volgnummer
date_createdDateDatum aanmaak
date_updatedDateDatum wijzig
description_1StringOmschrijving
description_2StringOmschrijving
description_3StringOmschrijving
drawing_numberStringTekening nummer: Tekeningnummer
is_completedBooleanAfgehandeld (ja/nee)
memoStringMemo
net_gross_manualInt32Netto/Bruto/Handmatig
phaseInt32Fase
revenue_group_idInt32Omzetgroep
revisionStringRevisie
sequenceInt32Volgorde
total_operation_timeInt32Totaal bewerkingstijd: Totale bewerkingstijd
total_setup_timeInt32Totaal insteltijd: Totale insteltijd
user_createdInt32User aanmaak
user_updatedInt32User wijzig
areaDecimalOppervlakte
article_idStringArtikelcode
levelInt32Niveau

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.

quantityDecimalAantal

The quantity of this assembly for one product of the root.

weightDecimalGewicht

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
ArticleArticlesone
ArticleCustomFieldSetArticleCustomFieldSetsone
PartsListHeaderPartsListHeadersone
RevenueGroupRevenueGroupsone
DocumentLinksDocumentLinksmany
PartsListAssemblyReferencesPartsListAssemblyReferencesmany
PartsListBuyMakePartsPartsListBuyMakePartsmany
PartsListMainOperationsPartsListMainOperationsmany
PartsListMaterialsPartsListMaterialsmany
PartsListOutsourcedItemsPartsListOutsourcedItemsmany
PartsListSubOperationLinksPartsListSubOperationLinksmany
PartsListSubOperationsPartsListSubOperationsmany
Wingman