# DespatchInfo

### UUID

> It is the unique number to be used to track the delivery note in the Guid data type.

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

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

### TemplateUUID

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

```javascript
EDespatch.DespatchInfo.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 entered TemplateUUID information will be added to the delivery note.

If the TemplateBase64String field is full, TemplateBase64String information will be added as the design of the delivery note, regardless of the TemplateUUID field.

If the TemplateUUID and TemplateBase64String fields are left empty, the default design will be added to the delivery note.
{% endhint %}

### TemplateBase64String

> Base64 of the design to be added to the delivery note is added here.

{% hint style="info" %}

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

### DespatchType

> It is an object of enum data type. It can take the following values. The selection should be made according to the delivery note type.

```csharp
    public enum DespatchType 
    {
        MATBUDAN = 0,
        SEVK = 1
    }
```

```javascript
EDespatch.DespatchInfo.DespatchType = 0;
```

### DespatchSerieOrNumber

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

```javascript
//Manual Delivery Note Number
EDespatch.DespatchInfo.DespatchSerieOrNumber = "EFT2022000000001";

//Series Information
EDespatch.DespatchInfo.DespatchSerieOrNumber = "EFT";
```

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

### IssueDate

> The delivery note date is entered in this field.

```javascript
EDespatch.DespatchInfo.IssueDate = "2022-01-23T";
```

### ActualDespatchDateTime

> Delivery note time is entered in this field.

```javascript
EDespatch.DespatchInfo.ActualDespatchDateTime= "10:20:39.846Z";
```

### PayableAmount

> This is the field where the amount to be paid on the delivery note will be entered.

```javascript
EDespatch.DespatchInfo.PayableAmount= 18,2;
```

### CurrencyCode

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

```javascript
EDespatch.DespatchInfo.CurrencyCode = "TRY";
```

### DespatchProfile

> It is an object of enum data type. It can take the following values. This is the field where the scenario of the e-delivery note will be specified.

```csharp
    public enum DespatchProfile 
    {
        TEMELIRSALIYE = 1,
        HKSIRSALIYE = 2
    }
```

{% tabs %}
{% tab title="TEMELİRSALİYE" %}

> It is the standard delivery note known as the transportation delivery note.
> {% endtab %}

{% tab title="HKSİRSALİYE" %}

> It is a delivery note created registered in the HKS system.
> {% endtab %}
> {% endtabs %}

### MatbuIssueDate

> The date of the printed delivery note is entered in this field.

```javascript
EDespatch.DespatchInfo.MatbuIssueDate= "2022-01-23T";
```

### MatbuNumber

> You must enter the 16-digit e-Delivery Note number in this field.

```javascript
EDespatch.DespatchInfo.MatbuNumber= "EFT2022000000001";
```
