---
title: "Ön izlenen faturayı xml olarak indirir."
method: POST
path: "/Send/Model/Download"
tags: ["Send"]
---

# Ön izlenen faturayı xml olarak indirir.

`POST /Send/Model/Download`

Ön izlenen faturayı xml olarak bu uç ile indirebilirsiniz.

## Request body

- DownloadXmlCommand
  - `EInvoice` EInvoiceDto
    - `InvoiceInfo` InvoiceInfoDto
      - `UUID` string, uuid
      - `TemplateUUID` string, uuid
      - `TemplateBase64String` string, nullable
      - `InvoiceType` 'SATIS' | 'IADE' | 'ISTISNA' | 'TEVKIFAT' | 'IHRACKAYITLI' | 'IPTAL' | 'OZELMATRAH' | 'SGK' | 'TEVKIFATIADE' | 'KOMISYONCU' | 'HKSSATIS' | 'HKSKOMISYONCU' | 'KONAKLAMAVERGISI' | 'SARJ' | 'SARJANLIK' | 'TEKNOLOJIDESTEK' | 'YTBSATIS' | 'YTBISTISNA' | 'YTBIADE' | 'YTBTEVKIFAT' | 'YTBTEVKIFATIADE'
      - `InvoiceSerieOrNumber` string, nullable
      - `IssueDate` string, date-time
      - `CurrencyCode` string, nullable
      - `ExchangeRate` number, double, nullable
      - `InvoiceProfile` 'TEMELFATURA' | 'TICARIFATURA' | 'IHRACAT' | 'YOLCUBERABERFATURA' | 'EARSIVFATURA' | 'KAMU' | 'HKS' | 'ENERJI' | 'ILAC_TIBBICIHAZ' | 'OZELFATURA' | 'YATIRIMTESVIK' | 'IDIS'
      - `DespatchDocumentReference` KeyValueDto[], nullable
        - `IssueDate` string, date-time, nullable
        - `Value` string, nullable
      - `OrderReference` KeyValueDto
        - `IssueDate` string, date-time, nullable
        - `Value` string, nullable
      - `OrderReferenceDocument` 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
      - `AdditionalDocumentReferences` 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
      - `TaxExemptionReasonInfo` TaxExemptionReasonInfoDto
        - `KDVExemptionReasonCode` string, nullable
        - `OTVExemptionReasonCode` string, nullable
        - `AccommodationTaxExemptionReasonCode` string, nullable
      - `PaymentTermsInfo` PaymentTermsDto
        - `Percent` number, double, nullable
        - `Amount` number, double, nullable
        - `Note` string, nullable
      - `PaymentMeansInfo` PaymentMeansDto
        - `Code` string, nullable
        - `ChannelCode` string, nullable
        - `DueDate` string, date-time, nullable
        - `PayeeFinancialAccountID` string, nullable
        - `Note` string, nullable
      - `OKCInfo` OKCInfoDto
        - `ID` string, nullable
        - `IssueDate` string, date-time, nullable
        - `Time` string, nullable
        - `ZNo` string, nullable
        - `EndPointID` string, nullable
        - `DocumentDescription` string, nullable
      - `ESUReportInfo` ESUReportInfoDto
        - `ID` string, nullable
        - `IssueDate` string, date-time, nullable
      - `ReturnInvoiceInfo` ReturnInvoiceInfoDto[], nullable
        - `InvoiceNumber` string, nullable
        - `IssueDate` string, date-time
      - `AccountingCost` string, nullable
      - `InvoicePeriod` InvoicePeriodDto
        - `StartDate` string, date-time, nullable
        - `StartTime` string, nullable
        - `EndDate` string, date-time, nullable
        - `EndTime` string, nullable
        - `DurationMeasureValue` number, double, nullable
        - `Description` string, nullable
      - `SGKInfo` SGKInfoDto
        - `RegisterName` string, nullable
        - `DocumentNumber` string, nullable
        - `RegisterCode` string, nullable
      - `Expenses` ExpensesDto[], nullable
        - `ExpenseType` 'HKSKOMISYON' | 'HKSKOMISYONKDV' | 'HKSNAVLUN' | 'HKSNAVLUNKDV' | 'HKSHAMMALIYE' | 'HKSHAMMALIYEKDV' | 'HKSNAKLIYE' | 'HKSNAKLIYEKDV' | 'HKSGVTEVKIFAT' | 'HKSBAGKURTEVKIFAT' | 'HKSRUSUM' | 'HKSRUSUMKDV' | 'HKSTICBORSASI' | 'HKSTICBORSASIKDV' | 'HKSMILLISAVUNMAFON' | 'HKSMSFONKDV' | 'HKSDIGERMASRAFLAR' | 'HKSDIGERKDV'
        - `Percent` number, double
        - `Amount` number, double
      - `InvestmentIncentive` InvestmentIncentiveDto
        - `DocumentNumber` string, nullable
        - `DocumentDate` string, date-time
      - `ShipmentNumber` string, nullable
      - `LineExtensionAmount` number, double
      - `GeneralKDV1Total` number, double
      - `GeneralKDV8Total` number, double
      - `GeneralKDV18Total` number, double
      - `GeneralKDV10Total` number, double
      - `GeneralKDV20Total` number, double
      - `GeneralAllowanceTotal` number, double
      - `PayableAmount` number, double
      - `KdvTotal` number, double
      - `InsuranceValueAmount` number, double
      - `DeclaredForCarriageValueAmount` number, double
    - `CompanyInfo` PartyInfoDto
      - `TaxNumber` string, nullable
      - `Name` string, nullable
      - `TaxOffice` string, nullable
      - `PartyIdentifications` IDTypeDto[], nullable
        - `SchemeID` string, nullable
        - `Value` string, nullable
      - `AgentPartyIdentifications` IDTypeDto[], nullable
        - `SchemeID` string, nullable
        - `Value` string, nullable
      - `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
    - `CustomerInfo` PartyInfoDto
      - `TaxNumber` string, nullable
      - `Name` string, nullable
      - `TaxOffice` string, nullable
      - `PartyIdentifications` IDTypeDto[], nullable
        - `SchemeID` string, nullable
        - `Value` string, nullable
      - `AgentPartyIdentifications` IDTypeDto[], nullable
        - `SchemeID` string, nullable
        - `Value` string, nullable
      - `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
    - `BuyerCustomerInfo` PartyInfoDto
      - `TaxNumber` string, nullable
      - `Name` string, nullable
      - `TaxOffice` string, nullable
      - `PartyIdentifications` IDTypeDto[], nullable
        - `SchemeID` string, nullable
        - `Value` string, nullable
      - `AgentPartyIdentifications` IDTypeDto[], nullable
        - `SchemeID` string, nullable
        - `Value` string, nullable
      - `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
    - `ExportCustomerInfo` ExportCustomerInfoDto
      - `TaxNumber` string, nullable
      - `LegalRegistrationName` string, nullable
      - `PersonName` string, nullable
      - `PersonSurName` string, nullable
      - `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
    - `InvoiceLines` EInvoiceLineDto[], nullable
      - `Index` string, nullable
      - `SellerCode` string, nullable
      - `BuyerCode` string, nullable
      - `Name` string, nullable
      - `Description` string, nullable
      - `Quantity` number, double
      - `UnitType` string, nullable
      - `Price` number, double
      - `AllowanceTotal` number, double
      - `KDVPercent` number, double
      - `KDVTotal` number, double
      - `Taxes` TaxDto[], nullable
        - `TaxCode` string, nullable
        - `Total` number, double, nullable
        - `Percent` number, double, nullable
        - `ReasonCode` string, nullable
        - `ReasonDesc` string, nullable
      - `DeliveryInfo` DeliveryInfoDto
        - `GTIPNo` string, nullable
        - `DeliveryTermCode` string, nullable
        - `TransportModeCode` string, nullable
        - `PackageBrandName` string, nullable
        - `ProductTraceID` string, nullable
        - `PackageID` string, nullable
        - `PackageQuantity` number, double, nullable
        - `PackageTypeCode` string, nullable
        - `DeliveryAddress` 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
      - `ManufacturerCode` string, nullable
      - `BrandName` string, nullable
      - `ModelName` string, nullable
      - `Note` string, nullable
      - `AdditionalInfoId` string, nullable
      - `SerialID` string, nullable
      - `ProductTraceID` string, nullable
      - `InvestmentIncentiveExpenseType` 'MachineAndSoftware' | 'Construction' | 'LandAndPlotSale' | 'Other'
      - `LabelNumber` string, nullable
      - `BuyerDIBLineCode` string, nullable
      - `SellerDIBLineCode` string, nullable
      - `GTIPNo` string, nullable
      - `OzelMatrahReason` string, nullable
      - `OzelMatrahTotal` number, double, nullable
      - `VatAmountWithoutTevkifat` number, double, nullable
      - `MedicineAndMedicalDevice` MedicineAndMedicalDeviceDto
        - `Medicine` MedicineDto[], nullable
          - `GTIN` string, nullable
          - `BatchNumber` string, nullable
          - `SerialNumber` string, nullable
          - `ExpirationDate` string, date-time
        - `MedicalDevice` MedicalDeviceDto[], nullable
          - `ProductNumber` string, nullable
          - `LotNumber` string, nullable
          - `SerialNumber` string, nullable
          - `ProductionDate` string, date-time
        - `ProductType` 'MEDICINE' | 'MEDICALDEVICE' | 'OTHER'
      - `AdditionalItemIdentification` AdditionalItemIdentificationDto
        - `TagNumber` string, nullable
        - `OwnerName` string, nullable
        - `OwnerTaxNumber` string, nullable
    - `Notes` string[], nullable
  - `CustomerAlias` string, nullable

## Response `200`

Ön izlenen faturayı indirir

- 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)
