# VoucherInfo

### UUID

> It is the unique number in the Guid data type that will be used to track the receipt.

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

{% hint style="info" %}
If the field is sent empty, a new UUID will be added to the receipt by the system.
{% endhint %}

### TemplateUUID

> This field is used for the UUID of the XSLT that will be added to the receipt. XSLT of the UUID is added to the voucher.

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

{% hint style="info" %}

* If the TemplateUUID field is full and the TemplateBase64String field is empty, the design of the TemplateUUID information entered will be added to the receipt.tir.
* If the TemplateBase64String field is full, TemplateBase64String information will be added as the design of the receipt, regardless of the TemplateUUID field.
* If the TemplateUUID and TemplateBase64String fields are left empty, the default design will be added to the receipt.
  {% endhint %}

### TemplateBase64String

> The Base64 of the design to be added to the receipt is added here.

{% hint style="info" %}

* If the TemplateUUID field is full and the TemplateBase64String field is empty, the design of the TemplateUUID information entered will be added to the receipt.
* If the TemplateBase64String field is full, TemplateBase64String information will be added as the design of the receipt, regardless of the TemplateUUID field.
* If the TemplateUUID and TemplateBase64String fields are left empty, the default design will be added to the receipt.
  {% endhint %}

### VoucherSerieOrNumber

> You can enter the 16-digit e-Self-Employment Receipt number and 3-digit serial information in this field. If you enter a 16-digit receipt number, no action will be taken and the value you entered will be determined as the receipt number. If you enter a 3-digit series, a number is generated based on this series defined on the portal.

```javascript
//Manual Receipt Number
Voucher.VoucherInfo.VoucherSerieOrNumber = "EFT2022000000001";

//Series Information
Voucher.VoucherInfo.VoucherSerieOrNumber = "EFT";
```

{% hint style="info" %}
The next number is automatically assigned to the EFT series registered in the portal.
{% endhint %}

### IssueDate

> The receipt date and time are entered in this field.

```javascript
Voucher.VoucherInfo.IssueDate = "2022-01-23T10:20:39.846Z";
```

### CurrencyCode

> This field is where the currency of the receipt will be entered. The possible values are specified under Currency Codes in the code lists section.

```javascript
Voucher.VoucherInfo.CurrencyCode = "TRY";
```

### ExchangeRate

> This is the field where the exchange rate will be entered when the receipt is issued in a currency other than Turkish lira. Exchange rate information will appear on the receipt.

### SendType

> It is an object of enum data type. This is the field where it will be stated how the receipt was delivered to the recipient. It can take the values KAGIT, ELEKTRONIK.

```csharp
public enum SendType
{ 
     KAGIT = 1,
     ELEKTRONIK = 2
}
```

```javascript
Voucher.VoucherInfo.SendType = "ELEKTRONIK";
```
