# 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; }
}
```

### 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;">`Compulsory`</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;">`Compulsory`</mark>

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

### UnitType

<mark style="color:blue;">`string`</mark>  <mark style="color:red;">`Compulsory`</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;">`Compulsory`</mark>

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

### AllowanceTotal

<mark style="color:blue;">`decimal`</mark>  <mark style="color:red;">`Compulsory`</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;">`Compulsory`</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 örnek olarak verilmiştir.
        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.

### OzelMatrahReason

<mark style="color:blue;">`string`</mark>  <mark style="color:red;">`Compulsory`</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;">`Compulsory`</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 %}
