A booked purchase invoice of a supplier for purchase orders. Numbered per financial year: the key is financial_year with purchase_order_invoice_header_id. Its lines (PurchaseOrderInvoiceLines) name the order lines. Invoices for costs without a purchase order are not here but in CreditorUnsettledItems.
Label in Fledge: Inkooporder factuur header
| URL | https://odata-api.fledge.nl/v2-8/PurchaseOrderInvoiceHeaders |
|---|---|
| Key | administration_idfinancial_yearpurchase_order_invoice_header_id |
| Administration | Rows belong to one administration: always filter on administration_id. |
| Operations | GET listGET onePOSTPATCHDELETE |
| Read licenses | INKOOPFINANCIEEL |
| Write licenses | INKOOPFINANCIEELBEHEER |
| 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/PurchaseOrderInvoiceHeaders" \
--data-urlencode '$filter=administration_id eq 1' \
--data-urlencode '$select=financial_year,purchase_order_invoice_header_id,amount_excluding_vat,approval_date,difference' \
--data-urlencode '$top=50' \
-H "Authorization: Bearer $TOKEN"const url = new URL('https://odata-api.fledge.nl/v2-8/PurchaseOrderInvoiceHeaders');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'financial_year,purchase_order_invoice_header_id,amount_excluding_vat,approval_date,difference');
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/PurchaseOrderInvoiceHeaders" + "?" + string.Join("&",
"$filter=" + Uri.EscapeDataString("administration_id eq 1"),
"$select=" + Uri.EscapeDataString("financial_year,purchase_order_invoice_header_id,amount_excluding_vat,approval_date,difference"),
"$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/PurchaseOrderInvoiceHeaders(administration_id=1,financial_year={financial_year},purchase_order_invoice_header_id='{purchase_order_invoice_header_id}')Fields
| Field | Type | Description |
|---|---|---|
administration_idkey | Int32 | Administratienummer |
financial_yearkey | Int32 | Boekjaar |
purchase_order_invoice_header_idkey | String | Factuurnummer The internal booking number, unique within the financial year. |
amount_credit_limit | Decimal | Bedrag kredietbeperking |
amount_credit_limit_foreign_currency | Decimal | Kredietbeperking vv |
amount_excluding_vat | Decimal | Bedrag factuur excl.: Bedrag factuur exclusief The invoice amount without VAT, in the local currency. |
amount_excluding_vat_foreign_currency | Decimal | Factuur bedrag excl. vv: Bedrag factuur exclusief vv |
amount_goods_total | Decimal | Bedrag goederen |
amount_goods_total_foreign_currency | Decimal | Bedrag goederen vv |
amount_goods_vat_1 | Decimal | Bedrag goederen btw 1 |
amount_goods_vat_1_foreign_currency | Decimal | Goederen bedrag 1 vv |
amount_goods_vat_2 | Decimal | Bedrag goederen btw 2 |
amount_goods_vat_2_foreign_currency | Decimal | Goederen bedrag 2 vv |
amount_goods_vat_3 | Decimal | Bedrag goederen btw 3 |
amount_goods_vat_3_foreign_currency | Decimal | Goederen bedrag 3 vv |
amount_goods_vat_4 | Decimal | Bedrag goederen btw 4 |
amount_goods_vat_4_foreign_currency | Decimal | Goederen bedrag 4 vv |
amount_goods_vat_5 | Decimal | Bedrag goederen btw 5 |
amount_goods_vat_5_foreign_currency | Decimal | Goederen bedrag 5 vv |
amount_to_be_paid | Decimal | Betaalbedrag |
amount_to_be_paid_foreign_currency | Decimal | Betaalbedrag vv |
amount_vat_1 | Decimal | Bedrag btw 1 |
amount_vat_1_foreign_currency | Decimal | Bedrag BTW 1 vv |
amount_vat_2 | Decimal | Bedrag btw 2 |
amount_vat_2_foreign_currency | Decimal | Bedrag BTW 2 vv |
amount_vat_3 | Decimal | Bedrag btw 3 |
amount_vat_3_foreign_currency | Decimal | Bedrag BTW 3 vv |
amount_vat_4 | Decimal | Bedrag btw 4 |
amount_vat_4_foreign_currency | Decimal | Bedrag BTW 4 vv |
amount_vat_5 | Decimal | Bedrag btw 5 |
amount_vat_5_foreign_currency | Decimal | Bedrag BTW 5 vv |
approval_date | DateTimeOffset | Gefiatteerd: Datumtijd fiattering When the invoice was approved (gefiatteerd), by approved_by. |
approval_status | Int32 | Fiatteringsstatus
|
approved_by | Int32 | User gefiatteerd |
booking_proposal_id | String | Boekingsvoorstelnummer |
city_signature_date | String | Plaats dagtekening |
company_name_1 | String | Bedrijfsnaam |
company_name_2 | String | Bedrijfsnaam |
company_name_3 | String | Bedrijfsnaam |
creation_date | Date | Datum aanmaak |
creditor_id | Int32 | Leverancier |
currency_code_description | String | Valuta omschrijving |
currency_code_id | Int32 | Valutanummer |
currency_code | String | Valutakode |
currency_unit | Int32 | Eenheid valuta |
difference | Decimal | Bedrag verschil The part of the invoice not covered by the order lines, such as additional costs, booked on deviation accounts. |
difference_foreign_currency | Decimal | Bedrag verschil vv: Bedrag verschil |
dispute_description | String | Dispuut tekst |
email | String | |
fax_number | String | Telefax |
financial_period | Int32 | Periode nummer |
g_account_amount | Decimal | Bedrag G-rekening |
g_account_percentage | Decimal | Percentage G-rekening |
has_payment_credit_limit | Boolean | Kredietbep. bet.: Kredietbeperking betalen (ja/nee) |
invoice_date | Date | Datum factuur The date of the invoice. |
is_automatically_deducted | Boolean | Automatische incasso (j/n) |
is_disputed | Boolean | Dispuut j/n |
payment_condition_description_1 | String | Omschrijving betk.: Omschrijving betalingsconditie |
payment_condition_description_2 | String | Omschrijving betk.: Omschrijving betalingsconditie |
payment_date | Date | Betaaldatum: Betaal datum |
payment_discount_amount | Decimal | Bedrag betalingskorting |
payment_discount_amount_foreign_currency | Decimal | Betalingskorting vv |
payment_reference | String | Betalingsreferentie |
payment_term_id | Int32 | Betalingskonditie |
percentage_credit_limit | Decimal | Percentage kredietbeperking |
percentage_payment_discount | Decimal | Percentage betalingskorting |
percentage_payment_vat_1 | Decimal | Percentage btw 1 |
percentage_payment_vat_2 | Decimal | Percentage btw 2 |
percentage_payment_vat_3 | Decimal | Percentage btw 3 |
percentage_payment_vat_4 | Decimal | Percentage btw 4 |
percentage_payment_vat_5 | Decimal | Percentage btw 5 |
purchase_order_invoice_layout_id | Int32 | Layout |
rate | Decimal | Koers |
signature_date | Date | Datum dagtekening |
status | Boolean | Status financieel verwerkt Whether the invoice has been processed financially (financieel verwerkt). |
supplier_invoice_number | String | Factuurnummer leverancier The supplier's own invoice number. |
telephone_number | String | Telefoon |
total_amount | Decimal | Factuur bedrag The invoice amount with VAT, in the local currency. |
total_amount_foreign_currency | Decimal | Factuur bedrag vv |
type | Int32 | Type factuur
|
user | Int32 | User aanmaak |
vat_section_credit_restriction | String | Rubriek kredietbeperking |
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 |
ApprovedByUser | Users | one |
CreatedByUser | Users | one |
Creditor | Creditors | one |
CurrencyCode | CurrencyCodes | one |
FinancialPeriod | FinancialPeriods | one |
PaymentTerm | PaymentConditions | one |
DocumentLinks | DocumentLinks | many |
HistoricPurchaseOrders | HistoricPurchaseOrders | many |
PurchaseOrderInvoiceDifferences | PurchaseOrderInvoiceDifferences | many |
PurchaseInvoiceLines | PurchaseOrderInvoiceLines | many |
Actions
nextId
GET https://odata-api.fledge.nl/v2-8/PurchaseOrderInvoiceHeaders/nextId(…)Returns PurchaseOrderInvoiceHeaderNextIdResultDto
Licenses: FINANCIEEL, INKOOP