One line of a sales invoice. price times quantity is its net amount without VAT in the local currency; the lines add up to the header's amount_goods_net.

Label in Fledge: Verkoopfactuurregels

URLhttps://odata-api.fledge.nl/v2-8/SalesInvoiceLines
Keyadministration_idfinancial_yearsales_invoice_header_idsales_invoice_line_id
AdministrationRows belong to one administration: always filter on administration_id.
OperationsGET listGET onePOSTPATCHDELETE
Read licensesVERKOOPFINANCIEELBEHEER
Write licensesVERKOOPFINANCIEELBEHEER
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/SalesInvoiceLines" \
  --data-urlencode '$filter=administration_id eq 1' \
  --data-urlencode '$select=financial_year,sales_invoice_header_id,sales_invoice_line_id,custom_field_price,debtor_id,line_function' \
  --data-urlencode '$top=50' \
  -H "Authorization: Bearer $TOKEN"
const url = new URL('https://odata-api.fledge.nl/v2-8/SalesInvoiceLines');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'financial_year,sales_invoice_header_id,sales_invoice_line_id,custom_field_price,debtor_id,line_function');
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/SalesInvoiceLines" + "?" + string.Join("&",
    "$filter=" + Uri.EscapeDataString("administration_id eq 1"),
    "$select=" + Uri.EscapeDataString("financial_year,sales_invoice_header_id,sales_invoice_line_id,custom_field_price,debtor_id,line_function"),
    "$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/SalesInvoiceLines(administration_id=1,financial_year={financial_year},sales_invoice_header_id='{sales_invoice_header_id}',sales_invoice_line_id={sales_invoice_line_id})

Fields

FieldTypeDescription
administration_idkeyInt32Administratienummer
financial_yearkeyInt32Boekjaar
sales_invoice_header_idkeyStringFactuur nummer
sales_invoice_line_idkeyInt32Factuurregelnummer
articleStringArtikel
categoryStringRubriek BTW omzet aangifte
company_name_1StringBedrijfsnaam
company_name_2StringBedrijfsnaam
company_name_3StringBedrijfsnaam
costDecimalKostprijs
customer_referenceStringUw referentie
custom_field_priceDecimalPrijs in vv: Prijs in vreemde valuta

Despite its name, the price per unit in the foreign currency; 0 on invoices in the local currency.

debtor_idInt32Debiteur

The customer who ordered. The customer invoiced is SalesInvoiceHeader.debtor_id.

description_1StringOmschrijving
description_2StringOmschrijving: Omschrjving
description_3StringOmschrijving
discount_1DecimalKorting
drawing_numberStringTekeningnummer
foreign_currency_price_discountDecimalPrijskorting VV: Prijskorting vreemde valuta
intrastat_item_idStringIntrastat goederencode
line_functionInt32Funktie van de regel (artikel/tekst/subtotaal)

1 article, 2 text, 4 repair, 9 an extra charge from the order line's specification.

local_currency_price_discountDecimalPrijskorting locale valuta
lot_numberStringLotnummer/partijregistratie
memoStringMemo
nominal_priceDecimalNominale prijs
our_referenceStringOnze referentie
packing_noteStringPakbonnummer

The delivery note the quantity was delivered on.

postage_chargeDecimalPorto prijs
priceDecimalPrijs

The net price per unit after discount, without VAT, in the local currency.

sales_order_header_idStringOrdernummer

The sales order the line was invoiced from.

production_order_line_idInt32Orderregelnummer

Despite its name, an old order line number column; not filled.

quantityDecimalAantal
referenceStringReferentie verkooporderregel
remittance_priceDecimalRoyalty
revisionStringRevisie
sales_group_idInt32Omzetgroep

The revenue group (omzetgroep) of the order line.

sales_order_descriptionStringVerkooporder soort omschrijving
sales_order_idInt32Verkooporder soort

Despite its name, the order type, not the order.

sales_price_foreign_currencyDecimalVerkoopprijs VV: Verkoopprijs vreemde valuta
sales_price_local_currencyDecimalVerkoopprijs locale valuta

The gross price per unit, before discount.

test_printBooleanProefafdruk
unit_descriptionStringOmschrijving eenheid
unit_factorDecimalFactor eenheid
unit_operatorStringOperator eenheid
vat_code_idInt32BTW nummer

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
IntrastatGoodsCodeIntrastatGoodsCodesone
RevenueGroupRevenueGroupsone
SalesInvoiceHeaderSalesInvoiceHeadersone
VatCodeVatCodesone
Wingman