> For the complete documentation index, see [llms.txt](https://developer.nilvera.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.nilvera.com/en/nilvera-model/archiveinvoice/invoicelines.md). Agents can also search and read this documentation through its [MCP server](https://developer.nilvera.com/~gitbook/mcp).

# InvoiceLines

> This is the field where all details of invoice items (Goods / Services) will be entered.

```csharp
public class EArchiveInvoiceLineDto
{
     public string Index { get; set; }
     public string SellerCode { get; set; }
     public string BuyerCode { get; set; }
     public string Name { get; set; }
     public string Description { get; set; }
     public decimal Quantity { get; set; }
     public string UnitType { get; set; }
     public decimal Price { get; set; }
     public decimal AllowanceTotal { get; set; }
     public decimal KDVPercent { get; set; }
     public decimal KDVTotal { get; set; }
     public List<TaxDto> Taxes { get; set; }
     public string ManufacturerCode { get; set; }
     public string BrandName { get; set; }
     public string ModelName { get; set; }
     public string Note { get; set; }
     public string OzelMatrahReason { get; set; }
     public decimal OzelMatrahTotal { get; set; }
     public string AdditionalInfoId { get; set; }
     public string SerialID { get; set; }
     public string ProductTraceID { get; set; }
     public string BuyerDIBLineCode { get; set; }
     public string SellerDIBLineCode { get; set; }
     public string GTIPNo { get; set; }
     public decimal VatAmountWithoutTevkifat { get; set; }
     public InvestmentIncentiveExpenseType InvestmentIncentiveExpenseType { get; set; }
     public TechSupportDto TechSupport { get; set; }
     public AdditionalItemIdentificationDto AdditionalItemIdentification { get; set; }
}
```

### Index

<mark style="color:blue;">`string`</mark>  <mark style="color:orange;">`Optional`</mark>

> This is the field where the sequence number of the invoice item will be specified.

### SellerCode

<mark style="color:blue;">`string`</mark>  <mark style="color:orange;">`Optional`</mark>

> This is the field where the seller code of the product will be entered.

### BuyerCode

<mark style="color:blue;">`string`</mark>  <mark style="color:orange;">`Optional`</mark>

> This is the field where the recipient code of the product will be entered.

### Name

<mark style="color:blue;">`string`</mark>  <mark style="color:red;">`Required`</mark>

> This is the field where the name of the product will be entered.

### **Description**

<mark style="color:blue;">`string`</mark>  <mark style="color:orange;">`Optional`</mark>

> This is the field where the description of the product will be entered.

### Quantity

<mark style="color:blue;">`decimal`</mark>  <mark style="color:red;">`Required`</mark>

> This is the field where the amount will be entered.

### UnitType

<mark style="color:blue;">`string`</mark>  <mark style="color:red;">`Required`</mark>

> This is the field where the unit type will be entered. The possible values are specified under Unit Codes in the code lists section.

### Price

<mark style="color:blue;">`decimal`</mark>  <mark style="color:red;">`Required`</mark>

> This is the field where the product price will be entered.

### AllowanceTotal

<mark style="color:blue;">`decimal`</mark>  <mark style="color:red;">`Required`</mark>

> This is the field where the discount amount will be entered.

### KDVPercent

<mark style="color:blue;">`decimal`</mark>  <mark style="color:orange;">`Optional`</mark>

> This is the field where the VAT rate of the product will be entered.

{% hint style="info" %}
**KDV Oranları:** 0,1, 10 ve 20'dir.

If the product has a VAT rate of 0, the tax exemption reason must be stated. See tax exemption object. TaxExemptionReasonInfo is the field where the VAT rate will be entered.
{% endhint %}

### KDVTotal

<mark style="color:blue;">`decimal`</mark>  <mark style="color:orange;">`Optional`</mark>

> This is the field where the VAT total of the product will be entered.

### Taxes

<mark style="color:blue;">`List`</mark>  <mark style="color:orange;">`Optional`</mark>

> This is the field where other taxes to be added to the product will be entered. The possible values are specified under Tax Codes in the code lists section.

```csharp
public class TaxDto
{
     public string TaxCode { get; set; }
     public decimal Total { get; set; }
     public decimal Percent { get; set; }
     public string ReasonCode { get; set; }
     public string ReasonDesc { get; set; }
}
```

> **TaxCode:** This is the field where the tax code is entered.<mark style="color:blue;">`string`</mark>  <mark style="color:red;">`Required`</mark>

> **Total:** This is the field where the tax total will be entered.  <mark style="color:blue;">`decimal`</mark>  <mark style="color:orange;">`It Varies Depending on the Tax.`</mark>

> **Percent:** This is the field where the tax rate will be entered. <mark style="color:blue;">`decimal`</mark>  <mark style="color:orange;">`It Varies Depending on the Tax.`</mark>

{% hint style="info" %}
If it is included under Withholding Codes in the entered tax code lists section, the fields below must be filled.

**ReasonCode:** This is the field where the code will be entered.

**ReasonDesc:** This is the field where the description of the code will be entered.
{% endhint %}

> **Örn:** If the tax entered belongs to VAT Withholding;

```javascript
ArchiveInvoice.InvoiceLines[0].Taxes = [
    {
        TaxCode: "9015",
        Total: 1.72, //1.72 is given as an example.
        Percent: 40,
        ReasonCode: "601",
        ReasonDesc: "Yapım İşleri İle Bu İşlerle Birlikte İfa Edilen Mühendislik"
    }
]
```

### **ManufacturerCode**

<mark style="color:blue;">`string`</mark>  <mark style="color:orange;">`Optional`</mark>

> This is the field where the manufacturer code will be entered.

### **BrandName**

<mark style="color:blue;">`string`</mark>  <mark style="color:orange;">`Optional`</mark>

> This is the field where the brand name will be entered.

### **ModelName**

<mark style="color:blue;">`string`</mark>  <mark style="color:orange;">`Optional`</mark>

> This is the field where the model name will be entered.

### **Note**

<mark style="color:blue;">`string`</mark>  <mark style="color:orange;">`Optional`</mark>

> This is the field where the note will be added.

### AdditionalInfoId

<mark style="color:blue;">`string`</mark> <mark style="color:orange;">`Optional`</mark>

> This field is used if additional information (ID) is to be entered.

### SerialID

<mark style="color:blue;">`string`</mark> <mark style="color:orange;">`Optional`</mark>

> For instant charging (SARJ) invoices, the serial number is entered in this field. For investment incentive invoices, when InvestmentIncentiveExpenseType is "MachineAndSoftware", the Machine ID must be entered in this field.

### ProductTraceID

<mark style="color:blue;">`string`</mark> <mark style="color:orange;">`Optional`</mark>

> For investment incentive invoices, when InvestmentIncentiveExpenseType is "MachineAndSoftware", the machine/equipment sequence number must be entered in this field.

### BuyerDIBLineCode

<mark style="color:blue;">`string`</mark> <mark style="color:orange;">`Optional`</mark>

> For export-registered (IHRACKAYITLI) invoices, when KDVExemptionReasonCode is "702" (Sales within the scope of Inward Processing Authorization and Temporary Admission Regime), the buyer line code is entered in this field.

{% hint style="info" %}
The buyer line code must consist of 11 digits.
{% endhint %}

### SellerDIBLineCode

<mark style="color:blue;">`string`</mark> <mark style="color:orange;">`Optional`</mark>

> For export-registered (IHRACKAYITLI) invoices, when KDVExemptionReasonCode is "702" (Sales within the scope of Inward Processing Authorization and Temporary Admission Regime), the seller line code is entered in this field.

### GTIPNo

<mark style="color:blue;">`string`</mark> <mark style="color:orange;">`Optional`</mark>

> For e-Archive exemption (ISTISNA) invoices, this is the field where the GTIP (Customs Tariff Statistics Position) number must be entered.

> For export-registered invoices, when KDVExemptionReasonCode is **702 (Sales within the scope of Inward Processing Authorization and Temporary Admission Regime)**, the GTIP number must be entered in this field.

### VatAmountWithoutTevkifat

<mark style="color:blue;">`decimal`</mark> <mark style="color:orange;">`Optional`</mark>

> For withholding return invoices, this is the field where the VAT amount without withholding is entered.

{% hint style="info" %}
It will be filled in if the invoice type is **"TEVKIFATIADE"** or **"YTBTEVKIFATIADE"**.
{% endhint %}

### InvestmentIncentiveExpenseType

<mark style="color:blue;">`enum`</mark> <mark style="color:orange;">`Optional`</mark>

> For investment incentive invoices, this is the field where the expense type is specified.

```csharp
public enum InvestmentIncentiveExpenseType
{
    MachineAndSoftware = 1,
    Construction = 2,
    LandAndPlotSale = 3,
    Other = 4
}
```

### TechSupport

<mark style="color:orange;">`Optional`</mark>

> For invoices with the invoice type TEKNOLOJIDESTEK, this is the field where information about the device sold (phone, tablet, computer) is entered.

```csharp
public class TechSupportDto
{
    public List<string> IMEINumbers { get; set; }
    public bool IsTabletOrPc { get; set; }
}
```

{% hint style="warning" %}
This field is only taken into account when **InvoiceType** is **TEKNOLOJIDESTEK**. For other invoice types it is not reflected on the invoice, even if it is sent.
{% endhint %}

> **IMEINumbers:** The IMEI numbers of the phone sold are entered in this field. More than one IMEI number can be entered. The numbers are added to the **AdditionalItemIdentification** field of the related line with **SchemeID = "TELEFON"**, joined with `;` in the format `(IMEI)number1;(IMEI2)number2;(IMEI3)number3`.

> **IsTabletOrPc:** Sent as **true** if the product sold is a tablet or a computer. When **true** is sent, **SchemeID = "TABLET\_PC"** is added to the **AdditionalItemIdentification** field of the related line.

```javascript
// Phone sale (multiple IMEI numbers)
ArchiveInvoice.InvoiceLines[0].TechSupport = {
    IMEINumbers: ["356938035643809", "356938035643817"],
    IsTabletOrPc: false
};
// Value reflected on the invoice -> SchemeID: "TELEFON", ID: "(IMEI)356938035643809;(IMEI2)356938035643817"

// Tablet / computer sale
ArchiveInvoice.InvoiceLines[1].TechSupport = {
    IsTabletOrPc: true
};
// Value reflected on the invoice -> SchemeID: "TABLET_PC"
```

### AdditionalItemIdentification

<mark style="color:orange;">`Optional`</mark>

```csharp
public class AdditionalItemIdentificationDto
{
    public string TagNumber { get; set; }
    public string OwnerName { get; set; }
    public string OwnerTaxNumber { get; set; }
}
```

> **TagNumber:** For Wholesale Market Registration System (HKS) sales and commission invoices, this is the field where the tag (künye) number is entered.

> **OwnerName:** For HKS sales invoices, this is the field where the title of the goods owner is specified.

> **OwnerTaxNumber:** For HKS sales invoices, this is the field where the tax ID number or T.R. ID number of the goods owner is specified.

### OzelMatrahReason

<mark style="color:blue;">`string`</mark>  <mark style="color:red;">`Required`</mark>

> This is the field where the special tax base reason will be entered. The possible values are specified under Special Base Codes in the code lists section.

{% hint style="info" %}
It will be filled in if the invoice type is “OZELMATRAH”.
{% endhint %}

### OzelMatrahTotal

<mark style="color:blue;">`decimal`</mark>  <mark style="color:red;">`Required`</mark>

> This is the field where the special tax base amount will be entered.

{% hint style="info" %}
It will be filled in if the invoice type is “OZELMATRAH”.
{% endhint %}

{% hint style="info" %}
The sales price will be entered as a single item. The VAT shown in the item will be calculated based on the "Special Base Amount".
{% endhint %}
