> 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/expense/expenseinfo.md).

# ExpenseInfo

This object contains the header information of the expense voucher. Details about the object are explained below.

```csharp
public class ExpenseInfoDto
{
    public Guid UUID { get; set; }
    public Guid TemplateUUID { get; set; }
    public string TemplateBase64String { get; set; }
    public ExpenseTypeCode DocumentType { get; set; }
    public string ExpenseSerieOrNumber { get; set; }
    public DateTime IssueDate { get; set; }
    public string CurrencyCode { get; set; }
    public double? ExchangeRate { get; set; }
    public bool IsCargoDelivery { get; set; }
    public ExpenseCarrierInfoDto CarrierInfo { get; set; }
    public bool IsReturnerSameAsReceiver { get; set; }
    public ReturnerInfoDto ReturnerInfo { get; set; }
    public ServiceProviderInfo ServiceProviderInfo { get; set; }
    public ExpenseVerificationInfoDto VerificationInfo { get; set; }
    public ReturnDocumentInfoDto ReturnDocumentInfo { get; set; }
    public List<AdditionalDocumentReferenceDto> AdditionalDocumentReferences { get; set; }
}
```

### UUID

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

> A unique number of the Guid data type used to track the expense voucher.

```javascript
Expense.ExpenseInfo.UUID = 'b8787efb-639d-4efc-85b5-953bf1dbaac0';
```

{% hint style="info" %}
If the field is left empty, the system will add a new UUID to the expense voucher.
{% endhint %}

### TemplateUUID

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

> This field is used for the UUID of the XSLT to be added to the expense voucher. The XSLT belonging to the UUID is added to the expense voucher.

```javascript
Expense.ExpenseInfo.TemplateUUID = '94e8b735-1361-4d6f-a4a6-3745b62239c8';
```

{% hint style="info" %}

* If the TemplateUUID field is **filled** and the TemplateBase64String field is <mark style="color:red;">**empty**</mark>, the design belonging to the entered TemplateUUID will be added to the expense voucher.
* If the TemplateBase64String field is **filled**, the TemplateBase64String value will be added as the design of the expense voucher <mark style="color:red;">**regardless of**</mark> the TemplateUUID field.
* If the TemplateUUID and TemplateBase64String <mark style="color:red;">**fields are left empty**</mark>, the **default** design will be added to the expense voucher.
  {% endhint %}

### TemplateBase64String

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

> The Base64 of the design to be added to the expense voucher is entered here.

{% hint style="info" %}

* If the TemplateUUID field is **filled** and the TemplateBase64String field is <mark style="color:red;">**empty**</mark>, the design belonging to the entered TemplateUUID will be added to the expense voucher.
* If the TemplateBase64String field is **filled**, the TemplateBase64String value will be added as the design of the expense voucher <mark style="color:red;">**regardless of**</mark> the TemplateUUID field.
* If the TemplateUUID and TemplateBase64String <mark style="color:red;">**fields are left empty**</mark>, the **default** design will be added to the expense voucher.
  {% endhint %}

### DocumentType

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

> The field where the type of the expense voucher is entered.

```csharp
public enum ExpenseTypeCode
{
    SATIS,
    IADE
}
```

```javascript
Expense.ExpenseInfo.DocumentType = "SATIS";
```

{% hint style="info" %}

* SATIS: Used to issue a standard expense voucher.
* IADE: Used to issue an expense voucher for the return of sold goods. For this type, the ReturnDocumentInfo field must be filled.
  {% endhint %}

### ExpenseSerieOrNumber

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

> You can enter the 16-digit E-Expense Voucher number or the 3-character series in this field. If you enter a 16-digit number, no further action is taken and the value you entered is set as the document number. If you enter a 3-character series, a number is generated from that series defined on the portal.

```javascript
//Manual Document Number
Expense.ExpenseInfo.ExpenseSerieOrNumber = "EGP2026000000001";

//Series Information
Expense.ExpenseInfo.ExpenseSerieOrNumber = "EGP";
```

{% hint style="info" %}
The next number is automatically assigned from the EGP series registered on the portal.
{% endhint %}

### IssueDate

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

> The date and time of the expense voucher are entered in this field.

```javascript
Expense.ExpenseInfo.IssueDate = "2026-01-23T10:20:39.846Z";
```

### CurrencyCode

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

> The field where the currency of the expense voucher is entered. Possible values are listed in the code lists section under [Currency Codes](https://developer.nilvera.com/en/gib-code-lists.md#para-birim-kodlari).

```javascript
Expense.ExpenseInfo.CurrencyCode = "TRY";
```

### ExchangeRate

<mark style="color:blue;">`double`</mark>  <mark style="color:orange;">`Partially Required`</mark>

> The field where the exchange rate is entered when the expense voucher is issued in a currency other than Turkish lira.

```javascript
Expense.ExpenseInfo.ExchangeRate = 32.50;
```

{% hint style="info" %}
This field must be filled if a currency other than TRY is entered in the CurrencyCode field.
{% endhint %}

### IsCargoDelivery

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

> The field indicating whether the goods subject to the expense voucher are delivered by cargo.

```javascript
Expense.ExpenseInfo.IsCargoDelivery = true;
```

{% hint style="info" %}
If the field is sent as true, the carrier company details must be entered in the CarrierInfo field.
{% endhint %}

### CarrierInfo

<mark style="color:blue;">`ExpenseCarrierInfoDto`</mark>  <mark style="color:orange;">`Partially Required`</mark>

> The field where the details of the carrier (cargo) company transporting the goods are entered.

```csharp
public class ExpenseCarrierInfoDto
{
    public string Name { get; set; }
    public string TaxNumber { get; set; }
    public string TaxOffice { get; set; }
    public string Address { get; set; }
    public string District { get; set; }
    public string City { get; set; }
    public string PostalCode { get; set; }
    public string Country { get; set; }
    public string Phone { get; set; }
    public string Fax { get; set; }
    public string Email { get; set; }
    public string WebSite { get; set; }
    public string AuthCertificateNumber { get; set; }
}
```

> **Name:** The field where the carrier company's title is entered.

> **TaxNumber:** The field where the carrier company's tax number is entered.

> **TaxOffice:** The field where the carrier company's tax office is entered.

> **Address, District, City, PostalCode, Country:** The fields where the carrier company's address details are entered.

> **Phone, Fax, Email, WebSite:** The fields where the carrier company's contact details are entered.

> **AuthCertificateNumber:** The field where the carrier company's authorization certificate number is entered.

```javascript
Expense.ExpenseInfo.CarrierInfo = {
    Name: "Sample Cargo Inc.",
    TaxNumber: "1234567890",
    TaxOffice: "Selçuk",
    Address: "Sample St. No:1",
    District: "Selçuklu",
    City: "Konya",
    Country: "Türkiye"
};
```

{% hint style="info" %}
Must be filled if the IsCargoDelivery field is sent as true.
{% endhint %}

### IsReturnerSameAsReceiver

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

> The field indicating whether the person returning the goods is the same person as the recipient (CustomerInfo).

```javascript
Expense.ExpenseInfo.IsReturnerSameAsReceiver = false;
```

{% hint style="info" %}
If the field is sent as false, the details of the person returning the goods must be entered in the ReturnerInfo field.
{% endhint %}

### ReturnerInfo

<mark style="color:blue;">`ReturnerInfoDto`</mark>  <mark style="color:orange;">`Partially Required`</mark>

> The field where the details of the person returning the goods are entered.

```csharp
public class ReturnerInfoDto
{
    public string Name { get; set; }
    public string Surname { get; set; }
    public string Identifier { get; set; }
    public string Address { get; set; }
    public string District { get; set; }
    public string City { get; set; }
}
```

> **Name:** The field where the returning person's first name is entered.

> **Surname:** The field where the returning person's last name is entered.

> **Identifier:** The field where the returning person's Turkish ID number is entered.

> **Address, District, City:** The fields where the returning person's address, district and city are entered.

```javascript
Expense.ExpenseInfo.ReturnerInfo = {
    Name: "Ahmet",
    Surname: "Yılmaz",
    Identifier: "11111111111",
    Address: "Sample St. No:1",
    District: "Selçuklu",
    City: "Konya"
};
```

{% hint style="info" %}
Must be filled if the IsReturnerSameAsReceiver field is sent as false.
{% endhint %}

### ServiceProviderInfo

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

> The field where the title and tax number of the service provider are entered.

```csharp
public class ServiceProviderInfo
{
    public string Name { get; set; }
    public string TaxNumber { get; set; }
}
```

> **Name:** The field where the service provider's title is entered.

> **TaxNumber:** The field where the service provider's tax number is entered.

```javascript
Expense.ExpenseInfo.ServiceProviderInfo = {
    Name: "Sample Services Inc.",
    TaxNumber: "1234567890"
};
```

### VerificationInfo

<mark style="color:blue;">`ExpenseVerificationInfoDto`</mark>  <mark style="color:orange;">`Partially Required`</mark>

> The field where the verification details are entered, showing which method was used to obtain the recipient's approval.

```csharp
public class ExpenseVerificationInfoDto
{
    public CustomerVerificationType Type { get; set; }
    public string Phone { get; set; }
    public string Code { get; set; }
}

public enum CustomerVerificationType
{
    SMS,
    IADEKODU
}
```

> **Type:** The field where the verification method is entered. It can take the values SMS or IADEKODU.

> **Phone:** The field where the phone number the verification code was sent to is entered.

> **Code:** The field where the verification code received from the recipient is entered.

```javascript
Expense.ExpenseInfo.VerificationInfo = {
    Type: "SMS",
    Phone: "5551234567",
    Code: "123456"
};
```

{% hint style="info" %}
For SMS verification, a 6-digit verification code can be sent to the recipient and verified with the SMS Verification endpoints under the E-EXPENSE API.
{% endhint %}

### ReturnDocumentInfo

<mark style="color:blue;">`ReturnDocumentInfoDto`</mark>  <mark style="color:orange;">`Partially Required`</mark>

> The field where the details of the document issued for the sale of the returned goods are entered.

```csharp
public class ReturnDocumentInfoDto
{
    public ExpenseReturnDocumentType DocumentType { get; set; }
    public string DocumentNumber { get; set; }
    public DateTime IssueDate { get; set; }
}

public enum ExpenseReturnDocumentType
{
    EARSIV_FATURA,
    SATIS_FISI,
    BELGESIZ
}
```

> **DocumentType:** The field where the type of the sales document is entered. It can take the values EARSIV\_FATURA, SATIS\_FISI or BELGESIZ.

> **DocumentNumber:** The field where the number of the sales document is entered.

> **IssueDate:** The field where the date of the sales document is entered.

```javascript
Expense.ExpenseInfo.ReturnDocumentInfo = {
    DocumentType: "EARSIV_FATURA",
    DocumentNumber: "EAR2026000000001",
    IssueDate: "2026-01-20T10:20:39.846Z"
};
```

{% hint style="info" %}
Must be filled for expense vouchers whose DocumentType field is sent as IADE.
{% endhint %}

### AdditionalDocumentReferences

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

> The field you can use to add attachments or other information to the expense voucher. Multiple files can be entered.

```csharp
public class AdditionalDocumentReferenceDto
{
    public string ID { get; set; }
    public DateTime? IssueDate { get; set; }
    public string DocumentType { get; set; }
    public string DocumentTypeCode { get; set; }
    public string DocumentDescription { get; set; }
    public AttachmentDto Attachment { get; set; }
}

public class AttachmentDto
{
    public string Base64Data { get; set; }
    public string MimeCode { get; set; }
    public string FileName { get; set; }
}
```

> **ID:** The value of the attached file or other information can be entered here.

> **IssueDate:** The date of the attached document. (Note: If it is used only as a value entry and not a document, the expense voucher date can be entered.)

> **DocumentType:** The type of the attached document or a fixed value can be written as free text.

> **DocumentTypeCode:** The type of the attached document or a fixed value can be written as free text.

> **DocumentDescription:** The field where the description of the attached document is entered.

> **Attachment:** If a file is to be attached, it can be entered in this field.<br>
>
> * **Base64Data:** The Base64-encoded content of the attached file is entered here.
> * **MimeCode:** The MimeCode of the attached file is entered here. (E.g. image/png)
> * **FileName:** The name of the attached file can be entered here.

```javascript
Expense.ExpenseInfo.AdditionalDocumentReferences = [
    {
        ID: "EK-001",
        IssueDate: "2026-01-23T10:20:39.846Z",
        DocumentType: "Additional Document",
        DocumentTypeCode: "EKBELGE",
        DocumentDescription: "Return report",
        Attachment: {
            Base64Data: "JVBERi0xLjQK...",
            MimeCode: "application/pdf",
            FileName: "return-report.pdf"
        }
    }
];
```

{% hint style="info" %}
Only ' doc, docx, ppt, pptx, pdf, jpg, jpeg, png ' file types can be uploaded.
{% endhint %}
