---
title: "Gönderilecek irsaliyeyi ön izler."
method: POST
path: "/Send/Model/Preview"
tags: ["Send"]
---

# Gönderilecek irsaliyeyi ön izler.

`POST /Send/Model/Preview`

Model olarak gönderilecek irsaliyeyi ön izlemek için bu ucu kullanabilirsiniz.

## Request body

- SendPreviewModelCommand
  - `EDespatch` EDespatchDto
    - `DespatchInfo` DespatchInfoDto
      - `UUID` string, uuid
      - `IssueDate` string, date-time
      - `TemplateBase64String` string, nullable
      - `TemplateUUID` string, uuid
      - `ActualDespatchDateTime` string, date-time
      - `PayableAmount` number, double
      - `CurrencyCode` string, nullable
      - `DespatchType` 'MATBUDAN' | 'SEVK'
      - `DespatchProfile` 'TEMELIRSALIYE' | 'HKSIRSALIYE' | 'IDISIRSALIYE'
      - `DespatchSerieOrNumber` string, nullable
      - `MatbuIssueDate` string, date-time, nullable
      - `MatbuNumber` string, nullable
      - `ShipmentNumber` string, nullable
    - `DespatchSupplierInfo` DespatchSupplierInfoDto
      - `PartyIdentifications` IDTypeDto[], nullable
        - `SchemeID` string, nullable
        - `Value` string, nullable
      - `WebSite` string, nullable
      - `Address` string, nullable
      - `District` string, nullable
      - `City` string, nullable
      - `PostalCode` string, nullable
      - `Country` string, nullable
      - `TaxOffice` string, nullable
      - `Phone` string, nullable
      - `Email` string, nullable
      - `Fax` string, nullable
      - `TaxNumber` string, nullable
      - `Name` string, nullable
    - `DeliveryCustomerInfo` DeliveryCustomerInfoDto
      - `PartyIdentifications` IDTypeDto[], nullable
        - `SchemeID` string, nullable
        - `Value` string, nullable
      - `Address` string, nullable
      - `District` string, nullable
      - `City` string, nullable
      - `PostalCode` string, nullable
      - `Country` string, nullable
      - `TaxOffice` string, nullable
      - `TaxNumber` string, nullable
      - `Name` string, nullable
      - `Phone` string, nullable
      - `Email` string, nullable
      - `Fax` string, nullable
      - `WebSite` string, nullable
    - `BuyerCustomerInfo` BuyerCustomerInfoDto
      - `Address` string, nullable
      - `District` string, nullable
      - `City` string, nullable
      - `PostalCode` string, nullable
      - `Country` string, nullable
      - `TaxOffice` string, nullable
      - `Phone` string, nullable
      - `Email` string, nullable
      - `Fax` string, nullable
      - `TaxNumber` string, nullable
      - `Name` string, nullable
      - `WebSite` string, nullable
    - `SellerSupplierInfo` SellerSupplierInfoDto
      - `Address` string, nullable
      - `District` string, nullable
      - `City` string, nullable
      - `PostalCode` string, nullable
      - `Country` string, nullable
      - `TaxOffice` string, nullable
      - `Phone` string, nullable
      - `Email` string, nullable
      - `Fax` string, nullable
      - `TaxNumber` string, nullable
      - `Name` string, nullable
      - `WebSite` string, nullable
    - `OriginatorCustomerInfo` OriginatorCustomerInfoDto
      - `Address` string, nullable
      - `District` string, nullable
      - `City` string, nullable
      - `PostalCode` string, nullable
      - `Country` string, nullable
      - `TaxOffice` string, nullable
      - `Phone` string, nullable
      - `Email` string, nullable
      - `Fax` string, nullable
      - `TaxNumber` string, nullable
      - `Name` string, nullable
      - `WebSite` string, nullable
    - `Notes` string[], nullable
    - `DespatchLines` DespatchLineDto[], nullable
      - `DeliveredUnitType` string, nullable
      - `DeliveredUnitName` string, nullable
      - `Name` string, nullable
      - `SellerCode` string, nullable
      - `BuyerCode` string, nullable
      - `Description` string, nullable
      - `DeliveredQuantity` number, double
      - `QuantityPrice` number, double
      - `LineTotal` number, double
      - `AdditionalItemIdentification` string, nullable
      - `OutstandingQuantity` number, double
      - `OutstandingUnitType` string, nullable
      - `OutstandingUnitName` string, nullable
      - `OutstandingReason` string, nullable
      - `ManufacturerCode` string, nullable
      - `BrandName` string, nullable
      - `ModelName` string, nullable
      - `LabelNumber` string, nullable
    - `ShipmentDetail` ShipmentDetailDto
      - `ShipmentInfo` ShipmentInfoDto
        - `DriverPerson` DriverPersonDto[], nullable
          - `FirstName` string, nullable
          - `LastName` string, nullable
          - `TaxNumber` string, nullable
        - `LicensePlateID` string, nullable
      - `Delivery` DeliveryDto
        - `AddressInfo` AddressInfoDto
          - `Address` string, nullable
          - `District` string, nullable
          - `City` string, nullable
          - `Country` string, nullable
          - `PostalCode` string, nullable
          - `Phone` string, nullable
          - `Fax` string, nullable
          - `Mail` string, nullable
          - `WebSite` string, nullable
        - `CarrierInfo` CarrierInfoDto
          - `Address` string, nullable
          - `District` string, nullable
          - `City` string, nullable
          - `PostalCode` string, nullable
          - `Country` string, nullable
          - `TaxNumber` string, nullable
          - `Phone` string, nullable
          - `TaxOffice` string, nullable
          - `Name` string, nullable
          - `Email` string, nullable
          - `WebSite` string, nullable
          - `Fax` string, nullable
      - `TransportEquipment` string[], nullable
    - `AdditionalDocumentReference` AdditionalDocumentReferenceDto[], nullable
      - `ID` string, nullable
      - `IssueDate` string, date-time, nullable
      - `DocumentType` string, nullable
      - `DocumentTypeCode` string, nullable
      - `DocumentDescription` string, nullable
      - `Attachment` AttachmentDto
        - `Base64Data` string, nullable
        - `MimeCode` string, nullable
        - `FileName` string, nullable
    - `OrderReference` OrderReferenceDto
      - `ID` string, nullable
      - `IssueDate` string, date-time, nullable
      - `DocumentReference` AdditionalDocumentReferenceDto
        - `ID` string, nullable
        - `IssueDate` string, date-time, nullable
        - `DocumentType` string, nullable
        - `DocumentTypeCode` string, nullable
        - `DocumentDescription` string, nullable
        - `Attachment` AttachmentDto
          - `Base64Data` string, nullable
          - `MimeCode` string, nullable
          - `FileName` string, nullable
  - `CustomerAlias` string, nullable

## Response `200`

Gönderilecek irsaliyeyi ön izler.

- string

## Other responses

- `400` — Geçersiz İstek | Gönderdiğiniz istekte geçersiz veriler bulunduğu anlamında gelmektedir | Detaylar için <a target="_blank" href="https://developer.nilvera.com/hata-kodlari#badrequest-400">tıklayınız</a>
- `403` — Yetkisiz Erişim | Bu uca erişmek için gerekli yetkiye sahip olmadığınız durumda dönülür
- `404` — Parametrede belirtilen kayıt bulunamadığında dönülür | Detaylar için <a target="_blank" href="https://developer.nilvera.com/hata-kodlari#notfound-404">tıklayınız</a>
- `409` — Gönderdiğiniz istek sistemde daha önce bulunduğunda dönülür | Detaylar için <a target="_blank" href="https://developer.nilvera.com/hata-kodlari#conflict-409">tıklayınız</a>
- `422` — Gönderdiğiniz istek geçerli fakat iş kuralları gereği geçersiz değerler içerdiğinde dönülür | Detaylar için <a target="_blank" href="https://developer.nilvera.com/hata-kodlari#unprocessableentity-422">tıklayınız</a>

---

[API](https://skmtc.net/nilvera/apis/general-api.md) · [All operations](https://skmtc.net/nilvera/apis/general-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/nilvera/general-api/revisions/a9e2a6392384/schema)
