Label in Fledge: Inkoopordertermijnen

URLhttps://odata-api.fledge.nl/v2-8/PurchaseOrderInstalments
Keyadministration_idpurchase_order_header_idpurchase_order_instalment_id
AdministrationRows belong to one administration: always filter on administration_id.
OperationsGET listGET onePOSTPATCHDELETE
Read licensesBASIS
Write licensesINKOOPBEHEER
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/PurchaseOrderInstalments" \
  --data-urlencode '$filter=administration_id eq 1' \
  --data-urlencode '$select=purchase_order_header_id,purchase_order_instalment_id,amount,date,date_created' \
  --data-urlencode '$top=50' \
  -H "Authorization: Bearer $TOKEN"
const url = new URL('https://odata-api.fledge.nl/v2-8/PurchaseOrderInstalments');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'purchase_order_header_id,purchase_order_instalment_id,amount,date,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/PurchaseOrderInstalments" + "?" + string.Join("&",
    "$filter=" + Uri.EscapeDataString("administration_id eq 1"),
    "$select=" + Uri.EscapeDataString("purchase_order_header_id,purchase_order_instalment_id,amount,date,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/PurchaseOrderInstalments(administration_id=1,purchase_order_header_id='{purchase_order_header_id}',purchase_order_instalment_id={purchase_order_instalment_id})

Fields

FieldTypeDescription
administration_idkeyInt32Administratienummer
purchase_order_header_idkeyStringOrdernummer
purchase_order_instalment_idkeyInt32Volgnummer
amountDecimalBedrag
created_byInt32User aanmaak
dateDateDatum termijn
date_createdDateDatum aanmaak
date_updatedDateDatum wijzig
descriptionStringOmschrijving
financial_yearInt32Boekjaar
invoice_dateDateDatum factuur
memoStringMemo
payment_term_idInt32Betalingskonditie
purchase_order_invoice_headerStringFactuurnummer
rubricStringRubriek BTW omzet aangifte
statusBooleanStatus
test_printBooleanProefafdruk
updated_byInt32User 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
PurchaseOrderHeaderPurchaseOrderHeadersone
Wingman