# SalesInvoiceLines

> One line of a sales invoice.

Subject: Sales invoices.

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_id`, `financial_year`, `sales_invoice_header_id`, `sales_invoice_line_id` |
| Administration-specific | yes: always filter on `administration_id` |
| Operations | GET list, GET one, POST, PATCH, DELETE |
| Read licenses | VERKOOP, FINANCIEEL, BEHEER |
| Write licenses | VERKOOP, FINANCIEEL, BEHEER |
| Scopes | FLEDGE_PORTAL |

## Example requests

```http
GET https://odata-api.fledge.nl/v2-8/SalesInvoiceLines?$filter=administration_id eq 1&$select=financial_year,sales_invoice_header_id,sales_invoice_line_id,custom_field_price,debtor_id,line_function&$top=50
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_id` (key) | Int32 | Administratienummer |
| `financial_year` (key) | Int32, not null | Boekjaar |
| `sales_invoice_header_id` (key) | String, not null | Factuur nummer |
| `sales_invoice_line_id` (key) | Int32, not null | 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

- `Administration` → [Administrations](https://docs.fledge.nl/en/api/reference/Administrations.md) (one)
- `Article` → [Articles](https://docs.fledge.nl/en/api/reference/Articles.md) (one)
- `IntrastatGoodsCode` → [IntrastatGoodsCodes](https://docs.fledge.nl/en/api/reference/IntrastatGoodsCodes.md) (one)
- `RevenueGroup` → [RevenueGroups](https://docs.fledge.nl/en/api/reference/RevenueGroups.md) (one)
- `SalesInvoiceHeader` → [SalesInvoiceHeaders](https://docs.fledge.nl/en/api/reference/SalesInvoiceHeaders.md) (one)
- `VatCode` → [VatCodes](https://docs.fledge.nl/en/api/reference/VatCodes.md) (one)

---

Source: https://docs.fledge.nl/en/api/reference/SalesInvoiceLines
