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
| URL | https://odata-api.fledge.nl/v2-8/SalesInvoiceLines |
|---|---|
| Key | administration_idfinancial_yearsales_invoice_header_idsales_invoice_line_id |
| Administration | Rows belong to one administration: always filter on administration_id. |
| Operations | GET listGET onePOSTPATCHDELETE |
| Read licenses | VERKOOPFINANCIEELBEHEER |
| Write licenses | VERKOOPFINANCIEELBEHEER |
| 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/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
| Field | Type | Description |
|---|---|---|
administration_idkey | Int32 | Administratienummer |
financial_yearkey | Int32 | Boekjaar |
sales_invoice_header_idkey | String | Factuur nummer |
sales_invoice_line_idkey | Int32 | Factuurregelnummer |
article | String | Artikel |
category | String | Rubriek BTW omzet aangifte |
company_name_1 | String | Bedrijfsnaam |
company_name_2 | String | Bedrijfsnaam |
company_name_3 | String | Bedrijfsnaam |
cost | Decimal | Kostprijs |
customer_reference | String | Uw referentie |
custom_field_price | Decimal | Prijs 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_id | Int32 | Debiteur The customer who ordered. The customer invoiced is SalesInvoiceHeader.debtor_id. |
description_1 | String | Omschrijving |
description_2 | String | Omschrijving: Omschrjving |
description_3 | String | Omschrijving |
discount_1 | Decimal | Korting |
drawing_number | String | Tekeningnummer |
foreign_currency_price_discount | Decimal | Prijskorting VV: Prijskorting vreemde valuta |
intrastat_item_id | String | Intrastat goederencode |
line_function | Int32 | Funktie 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_discount | Decimal | Prijskorting locale valuta |
lot_number | String | Lotnummer/partijregistratie |
memo | String | Memo |
nominal_price | Decimal | Nominale prijs |
our_reference | String | Onze referentie |
packing_note | String | Pakbonnummer The delivery note the quantity was delivered on. |
postage_charge | Decimal | Porto prijs |
price | Decimal | Prijs The net price per unit after discount, without VAT, in the local currency. |
sales_order_header_id | String | Ordernummer The sales order the line was invoiced from. |
production_order_line_id | Int32 | Orderregelnummer Despite its name, an old order line number column; not filled. |
quantity | Decimal | Aantal |
reference | String | Referentie verkooporderregel |
remittance_price | Decimal | Royalty |
revision | String | Revisie |
sales_group_id | Int32 | Omzetgroep The revenue group (omzetgroep) of the order line. |
sales_order_description | String | Verkooporder soort omschrijving |
sales_order_id | Int32 | Verkooporder soort Despite its name, the order type, not the order. |
sales_price_foreign_currency | Decimal | Verkoopprijs VV: Verkoopprijs vreemde valuta |
sales_price_local_currency | Decimal | Verkoopprijs locale valuta The gross price per unit, before discount. |
test_print | Boolean | Proefafdruk |
unit_description | String | Omschrijving eenheid |
unit_factor | Decimal | Factor eenheid |
unit_operator | String | Operator eenheid |
vat_code_id | Int32 | BTW 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.
| Navigation | Entity set | |
|---|---|---|
Administration | Administrations | one |
Article | Articles | one |
IntrastatGoodsCode | IntrastatGoodsCodes | one |
RevenueGroup | RevenueGroups | one |
SalesInvoiceHeader | SalesInvoiceHeaders | one |
VatCode | VatCodes | one |