> 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/nilvera-model/edespatch/orderreference.md).

# OrderReference

<mark style="color:blue;">`object`</mark> <mark style="color:orange;">`Seçimli`</mark>

> İrsaliyenin dayanağı olan sipariş bilgilerinin girileceği alandır. Sipariş numarası ve tarihi girilir, istenirse sipariş belgesi de dosya olarak eklenebilir.

```csharp
public class OrderReferenceDto
{
    public string ID { get; set; }
    public DateTime IssueDate { get; set; }
    public AdditionalDocumentReferenceDto DocumentReference { get; set; }
}
```

#### ID

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

> Sipariş numarasının girileceği alandır.

#### IssueDate

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

> Sipariş tarihinin girileceği alandır.

#### DocumentReference

<mark style="color:blue;">`object`</mark> <mark style="color:orange;">`Seçimli`</mark>

> Siparişe ait belgenin (örn. sipariş formu) bilgilerinin ve dosyasının eklenebileceği alandır. Yapısı **AdditionalDocumentReference** nesnesi ile aynıdır; alanların detayları için AdditionalDocumentReference sayfasına bakılabilir.

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

### Örnek

```javascript
EDespatch.OrderReference = {
    ID: "SIP2024000000001",
    IssueDate: "2024-01-15T00:00:00",
    DocumentReference: {
        ID: "SIP2024000000001",
        IssueDate: "2024-01-15T00:00:00",
        DocumentType: "Sipariş Formu",
        Attachment: {
            Base64Data: "JVBERi0xLjQKJ...",
            MimeCode: "application/pdf",
            FileName: "siparis.pdf"
        }
    }
};
```
