A parts list (stuklijst): the standard structure of an article, without prices. An article can have several; the one in use has is_primary true and is_blocked false.

Label in Fledge: Stuklijst header

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

Fields

FieldTypeDescription
administration_idkeyInt32Administratienummer
parts_list_header_idkeyStringCalculatienummer
article_idStringArtikelcode
date_createdDateDatum aanmaak
date_updatedDateDatum wijzig
description_1StringOmschrijving
description_2StringOmschrijving
description_3StringOmschrijving
drawing_numberStringTekening nummer: Tekeningnummer
has_back_flushingBooleanBackflushing (j/n)
is_blockedBooleanGeblokkeerd (j/n)

Archived; no longer in use.

is_closedBooleanGesloten (ja/nee)
is_primaryBooleanPrimaire stuklijst

The article's main parts list.

is_templateBooleanSjabloon (j/n)

A template (sjabloon).

memoStringMemo
net_gross_manualInt32Netto/Bruto/Handmatig
parts_list_type_idInt32Calculatie soort
revenue_group_idInt32Omzetgroep
revisionStringRevisie
user_createdInt32User aanmaak
user_updatedInt32User wijzig

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
PartsListTypePartsListTypesone
RevenueGroupRevenueGroupsone
UserCreatedUsersone
UserUpdatedUsersone
DocumentLinksDocumentLinksmany
PartsListAssembliesPartsListAssembliesmany
PartsListMainOperationsPartsListMainOperationsmany
PartsListMaterialsPartsListMaterialsmany
PartsListSubOperationsPartsListSubOperationsmany

Actions

nextId

GET https://odata-api.fledge.nl/v2-8/PartsListHeaders/nextId(…)

Returns PartsListHeaderNextIdResultDto

Licenses: BASIS

recalculate

POST https://odata-api.fledge.nl/v2-8/PartsListHeaders(administration_id=1,parts_list_header_id='{parts_list_header_id}')/recalculate
  • delete_orphan_assemblies Boolean

Licenses: BASIS, BEHEER, PRODUCTIE

Wingman