Taslağın Modeli Getirilir

Model olarak indirir.

GET/einvoice/Draft/{UUID}/model
Path parameters
UUID*string (uuid)
Response

Model olarak indirir.

Body
InvoiceInfoInvoiceInfoDto (object)
CompanyInfoPartyInfoDto (object)
CustomerInfoPartyInfoDto (object)
BuyerCustomerInfoPartyInfoDto (object)
ExportCustomerInfoExportCustomerInfoDto (object)
TaxFreeInfoTaxFreeInfoDto (object)
InvoiceLinesnullable array of EInvoiceLineDto (object)
Notesnullable array of string
Request
const response = await fetch('/einvoice/Draft/{UUID}/model', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "InvoiceInfo": {
    "UUID": "123e4567-e89b-12d3-a456-426614174000",
    "TemplateUUID": "123e4567-e89b-12d3-a456-426614174000",
    "TemplateBase64String": "text",
    "InvoiceType": "SATIS",
    "InvoiceSerieOrNumber": "text",
    "IssueDate": "2024-11-21T06:36:49.778Z",
    "CurrencyCode": "text",
    "ExchangeRate": 0,
    "InvoiceProfile": "TEMELFATURA",
    "DespatchDocumentReference": [
      {
        "IssueDate": "2024-11-21T06:36:49.778Z",
        "Value": "text"
      }
    ],
    "OrderReference": {
      "IssueDate": "2024-11-21T06:36:49.778Z",
      "Value": "text"
    },
    "OrderReferenceDocument": {
      "ID": "text",
      "IssueDate": "2024-11-21T06:36:49.778Z",
      "DocumentType": "text",
      "DocumentTypeCode": "text",
      "DocumentDescription": "text",
      "Attachment": {
        "Base64Data": "text",
        "MimeCode": "text",
        "FileName": "text"
      }
    },
    "AdditionalDocumentReferences": [
      {
        "ID": "text",
        "IssueDate": "2024-11-21T06:36:49.778Z",
        "DocumentType": "text",
        "DocumentTypeCode": "text",
        "DocumentDescription": "text",
        "Attachment": {
          "Base64Data": "text",
          "MimeCode": "text",
          "FileName": "text"
        }
      }
    ],
    "TaxExemptionReasonInfo": {
      "KDVExemptionReasonCode": "text",
      "OTVExemptionReasonCode": "text",
      "AccommodationTaxExemptionReasonCode": "text"
    },
    "PaymentTermsInfo": {
      "Percent": 0,
      "Amount": 0,
      "Note": "text"
    },
    "PaymentMeansInfo": {
      "Code": "text",
      "ChannelCode": "text",
      "DueDate": "2024-11-21T06:36:49.778Z",
      "PayeeFinancialAccountID": "text",
      "Note": "text"
    },
    "OKCInfo": {
      "ID": "text",
      "IssueDate": "2024-11-21T06:36:49.778Z",
      "Time": "text",
      "ZNo": "text",
      "EndPointID": "text",
      "DocumentDescription": "text"
    },
    "ESUReportInfo": {
      "ID": "text",
      "IssueDate": "2024-11-21T06:36:49.778Z"
    },
    "ReturnInvoiceInfo": [
      {
        "InvoiceNumber": "text",
        "IssueDate": "2024-11-21T06:36:49.778Z"
      }
    ],
    "AccountingCost": "text",
    "InvoicePeriod": {
      "StartDate": "2024-11-21T06:36:49.778Z",
      "StartTime": "text",
      "EndDate": "2024-11-21T06:36:49.778Z",
      "EndTime": "text",
      "DurationMeasureValue": 0,
      "Description": "text"
    },
    "SGKInfo": {
      "RegisterName": "text",
      "DocumentNumber": "text",
      "RegisterCode": "text"
    },
    "Expenses": [
      {
        "ExpenseType": "HKSKOMISYON",
        "Percent": 0,
        "Amount": 0
      }
    ],
    "LineExtensionAmount": 0,
    "GeneralKDV1Total": 0,
    "GeneralKDV8Total": 0,
    "GeneralKDV18Total": 0,
    "GeneralKDV10Total": 0,
    "GeneralKDV20Total": 0,
    "GeneralAllowanceTotal": 0,
    "PayableAmount": 0,
    "KdvTotal": 0
  },
  "CompanyInfo": {
    "TaxNumber": "text",
    "Name": "text",
    "TaxOffice": "text",
    "PartyIdentifications": [
      {
        "SchemeID": "text",
        "Value": "text"
      }
    ],
    "AgentPartyIdentifications": [
      {
        "SchemeID": "text",
        "Value": "text"
      }
    ],
    "Address": "text",
    "District": "text",
    "City": "text",
    "Country": "text",
    "PostalCode": "text",
    "Phone": "text",
    "Fax": "text",
    "Mail": "text",
    "WebSite": "text"
  },
  "CustomerInfo": {
    "TaxNumber": "text",
    "Name": "text",
    "TaxOffice": "text",
    "PartyIdentifications": [
      {
        "SchemeID": "text",
        "Value": "text"
      }
    ],
    "AgentPartyIdentifications": [
      {
        "SchemeID": "text",
        "Value": "text"
      }
    ],
    "Address": "text",
    "District": "text",
    "City": "text",
    "Country": "text",
    "PostalCode": "text",
    "Phone": "text",
    "Fax": "text",
    "Mail": "text",
    "WebSite": "text"
  },
  "BuyerCustomerInfo": {
    "TaxNumber": "text",
    "Name": "text",
    "TaxOffice": "text",
    "PartyIdentifications": [
      {
        "SchemeID": "text",
        "Value": "text"
      }
    ],
    "AgentPartyIdentifications": [
      {
        "SchemeID": "text",
        "Value": "text"
      }
    ],
    "Address": "text",
    "District": "text",
    "City": "text",
    "Country": "text",
    "PostalCode": "text",
    "Phone": "text",
    "Fax": "text",
    "Mail": "text",
    "WebSite": "text"
  },
  "ExportCustomerInfo": {
    "TaxNumber": "text",
    "LegalRegistrationName": "text",
    "PersonName": "text",
    "PersonSurName": "text",
    "Address": "text",
    "District": "text",
    "City": "text",
    "Country": "text",
    "PostalCode": "text",
    "Phone": "text",
    "Fax": "text",
    "Mail": "text",
    "WebSite": "text"
  },
  "TaxFreeInfo": {
    "TouristInfo": {
      "Name": "text",
      "SurName": "text",
      "CountryCode": "text",
      "PassportNo": "text",
      "PassportDate": "2024-11-21T06:36:49.778Z",
      "AddressInfo": {
        "Address": "text",
        "District": "text",
        "City": "text",
        "Country": "text",
        "PostalCode": "text",
        "Phone": "text",
        "Fax": "text",
        "Mail": "text",
        "WebSite": "text"
      },
      "FinancialAccountInfo": {
        "BankName": "text",
        "BranchName": "text",
        "ID": "text",
        "CurrencyCode": "text",
        "PaymentNote": "text"
      }
    },
    "TaxRepresentativeInfo": {
      "RegisterNumber": "text",
      "Alias": "text",
      "Address": {
        "Address": "text",
        "District": "text",
        "City": "text",
        "Country": "text",
        "PostalCode": "text",
        "Phone": "text",
        "Fax": "text",
        "Mail": "text",
        "WebSite": "text"
      }
    }
  },
  "InvoiceLines": [
    {
      "Index": "text",
      "SellerCode": "text",
      "BuyerCode": "text",
      "Name": "text",
      "Description": "text",
      "Quantity": 0,
      "UnitType": "text",
      "Price": 0,
      "AllowanceTotal": 0,
      "KDVPercent": 0,
      "KDVTotal": 0,
      "Taxes": [
        {
          "TaxCode": "text",
          "Total": 0,
          "Percent": 0,
          "ReasonCode": "text",
          "ReasonDesc": "text"
        }
      ],
      "DeliveryInfo": {
        "GTIPNo": "text",
        "DeliveryTermCode": "text",
        "TransportModeCode": "text",
        "PackageBrandName": "text",
        "ProductTraceID": "text",
        "PackageID": "text",
        "PackageQuantity": 0,
        "PackageTypeCode": "text",
        "DeliveryAddress": {
          "Address": "text",
          "District": "text",
          "City": "text",
          "Country": "text",
          "PostalCode": "text",
          "Phone": "text",
          "Fax": "text",
          "Mail": "text",
          "WebSite": "text"
        }
      },
      "ManufacturerCode": "text",
      "BrandName": "text",
      "ModelName": "text",
      "Note": "text",
      "SerialID": "text",
      "OzelMatrahReason": "text",
      "OzelMatrahTotal": 0,
      "VatAmountWithoutTevkifat": 0,
      "AdditionalItemIdentification": {
        "TagNumber": "text",
        "OwnerName": "text",
        "OwnerTaxNumber": "text"
      }
    }
  ],
  "Notes": [
    "text"
  ]
}
var client = new RestClient("//einvoice/Draft/8ab80d6a-4bd3-ef1a-48a1-8fa1f76d9e62/model");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("Accept", "text/plain");
request.AddHeader("Authorization", "Bearer <API KEY>");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);