For the complete documentation index, see llms.txt. This page is also available as Markdown.

Taslağın Modeli Getirilir

Model olarak indirir.

get
Authorizations
HTTPRequired

API Key Giriniz

Path parameters
UUIDstring · uuidRequired
Responses
200

Model olarak indirir.

application/json
Notesstring[] · nullableOptional
get/Draft/{UUID}/model
GET /einvoice/Draft/{UUID}/model HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "InvoiceInfo": {
    "UUID": "123e4567-e89b-12d3-a456-426614174000",
    "TemplateUUID": "123e4567-e89b-12d3-a456-426614174000",
    "TemplateBase64String": "text",
    "InvoiceType": "SATIS",
    "InvoiceSerieOrNumber": "text",
    "IssueDate": "2026-01-01T00:00:00.000Z",
    "CurrencyCode": "text",
    "ExchangeRate": 1,
    "InvoiceProfile": "TEMELFATURA",
    "DespatchDocumentReference": [
      {
        "IssueDate": "2026-01-01T00:00:00.000Z",
        "Value": "text"
      }
    ],
    "OrderReference": {
      "IssueDate": "2026-01-01T00:00:00.000Z",
      "Value": "text"
    },
    "OrderReferenceDocument": {
      "ID": "text",
      "IssueDate": "2026-01-01T00:00:00.000Z",
      "DocumentType": "text",
      "DocumentTypeCode": "text",
      "DocumentDescription": "text",
      "Attachment": {
        "Base64Data": "text",
        "MimeCode": "text",
        "FileName": "text"
      }
    },
    "AdditionalDocumentReferences": [
      {
        "ID": "text",
        "IssueDate": "2026-01-01T00:00:00.000Z",
        "DocumentType": "text",
        "DocumentTypeCode": "text",
        "DocumentDescription": "text",
        "Attachment": {
          "Base64Data": "text",
          "MimeCode": "text",
          "FileName": "text"
        }
      }
    ],
    "TaxExemptionReasonInfo": {
      "KDVExemptionReasonCode": "text",
      "OTVExemptionReasonCode": "text",
      "AccommodationTaxExemptionReasonCode": "text"
    },
    "PaymentTermsInfo": {
      "Percent": 1,
      "Amount": 1,
      "Note": "text"
    },
    "PaymentMeansInfo": {
      "Code": "text",
      "ChannelCode": "text",
      "DueDate": "2026-01-01T00:00:00.000Z",
      "PayeeFinancialAccountID": "text",
      "Note": "text"
    },
    "OKCInfo": {
      "ID": "text",
      "IssueDate": "2026-01-01T00:00:00.000Z",
      "Time": "text",
      "ZNo": "text",
      "EndPointID": "text",
      "DocumentDescription": "text"
    },
    "ESUReportInfo": {
      "ID": "text",
      "IssueDate": "2026-01-01T00:00:00.000Z"
    },
    "ReturnInvoiceInfo": [
      {
        "InvoiceNumber": "text",
        "IssueDate": "2026-01-01T00:00:00.000Z"
      }
    ],
    "AccountingCost": "text",
    "InvoicePeriod": {
      "StartDate": "2026-01-01T00:00:00.000Z",
      "StartTime": "text",
      "EndDate": "2026-01-01T00:00:00.000Z",
      "EndTime": "text",
      "DurationMeasureValue": 1,
      "Description": "text"
    },
    "SGKInfo": {
      "RegisterName": "text",
      "DocumentNumber": "text",
      "RegisterCode": "text"
    },
    "Expenses": [
      {
        "ExpenseType": "HKSKOMISYON",
        "Percent": 1,
        "Amount": 1
      }
    ],
    "InvestmentIncentive": {
      "DocumentNumber": "text",
      "DocumentDate": "2026-01-01T00:00:00.000Z"
    },
    "ShipmentNumber": "text",
    "LineExtensionAmount": 1,
    "GeneralKDV1Total": 1,
    "GeneralKDV8Total": 1,
    "GeneralKDV18Total": 1,
    "GeneralKDV10Total": 1,
    "GeneralKDV20Total": 1,
    "GeneralAllowanceTotal": 1,
    "PayableAmount": 1,
    "KdvTotal": 1,
    "InsuranceValueAmount": 1,
    "DeclaredForCarriageValueAmount": 1
  },
  "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"
  },
  "InvoiceLines": [
    {
      "Index": "text",
      "SellerCode": "text",
      "BuyerCode": "text",
      "Name": "text",
      "Description": "text",
      "Quantity": 1,
      "UnitType": "text",
      "Price": 1,
      "AllowanceTotal": 1,
      "KDVPercent": 1,
      "KDVTotal": 1,
      "Taxes": [
        {
          "TaxCode": "text",
          "Total": 1,
          "Percent": 1,
          "ReasonCode": "text",
          "ReasonDesc": "text"
        }
      ],
      "DeliveryInfo": {
        "GTIPNo": "text",
        "DeliveryTermCode": "text",
        "TransportModeCode": "text",
        "PackageBrandName": "text",
        "ProductTraceID": "text",
        "PackageID": "text",
        "PackageQuantity": 1,
        "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",
      "AdditionalInfoId": "text",
      "SerialID": "text",
      "ProductTraceID": "text",
      "InvestmentIncentiveExpenseType": "MachineAndSoftware",
      "LabelNumber": "text",
      "BuyerDIBLineCode": "text",
      "SellerDIBLineCode": "text",
      "GTIPNo": "text",
      "OzelMatrahReason": "text",
      "OzelMatrahTotal": 1,
      "VatAmountWithoutTevkifat": 1,
      "MedicineAndMedicalDevice": {
        "Medicine": [
          {
            "GTIN": "text",
            "BatchNumber": "text",
            "SerialNumber": "text",
            "ExpirationDate": "2026-01-01T00:00:00.000Z"
          }
        ],
        "MedicalDevice": [
          {
            "ProductNumber": "text",
            "LotNumber": "text",
            "SerialNumber": "text",
            "ProductionDate": "2026-01-01T00:00:00.000Z"
          }
        ],
        "ProductType": "MEDICINE"
      },
      "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);
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
  CURLOPT_URL => '//einvoice/Draft/8ab80d6a-4bd3-ef1a-48a1-8fa1f76d9e62/model',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    'Accept: text/plain',
    'Authorization: Bearer <API KEY>'
  ),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;

Last updated