Taslağın Modeli Getirilir
Model dosyasını indirir.
GET/earchive/Draft/{UUID}/model
Path parameters
UUID*string (uuid)
Response
Model dosyasını indirir
Body
InvoiceInfoArchiveInvoiceInfoDto (object)
CompanyInfoPartyInfoDto (object)
CustomerInfoPartyInfoDto (object)
InvoiceLinesnullable array of EArchiveInvoiceLineDto (object)
Notesnullable array of string
Request
const response = await fetch('/earchive/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:21:35.004Z",
"CurrencyCode": "text",
"ExchangeRate": 0,
"DespatchDocumentReference": [
{
"IssueDate": "2024-11-21T06:21:35.004Z",
"Value": "text"
}
],
"OrderReference": {
"IssueDate": "2024-11-21T06:21:35.004Z",
"Value": "text"
},
"OrderReferenceDocument": {
"ID": "text",
"IssueDate": "2024-11-21T06:21:35.004Z",
"DocumentType": "text",
"DocumentTypeCode": "text",
"DocumentDescription": "text",
"Attachment": {
"Base64Data": "text",
"MimeCode": "text",
"FileName": "text"
}
},
"AdditionalDocumentReferences": [
{
"ID": "text",
"IssueDate": "2024-11-21T06:21:35.004Z",
"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:21:35.004Z",
"PayeeFinancialAccountID": "text",
"Note": "text"
},
"OKCInfo": {
"ID": "text",
"IssueDate": "2024-11-21T06:21:35.004Z",
"Time": "text",
"ZNo": "text",
"EndPointID": "text",
"DocumentDescription": "text"
},
"ESUReportInfo": {
"ID": "text",
"IssueDate": "2024-11-21T06:21:35.004Z"
},
"InvoicePeriod": {
"StartDate": "2024-11-21T06:21:35.004Z",
"StartTime": "text",
"EndDate": "2024-11-21T06:21:35.004Z",
"EndTime": "text",
"DurationMeasureValue": 0,
"Description": "text"
},
"ReturnInvoiceInfo": [
{
"InvoiceNumber": "text",
"IssueDate": "2024-11-21T06:21:35.004Z"
}
],
"Expenses": [
{
"ExpenseType": "HKSKOMISYON",
"Percent": 0,
"Amount": 0
}
],
"ISDespatch": false,
"SalesPlatform": "NORMAL",
"SendType": "KAGIT",
"InternetInfo": {
"WebSite": "text",
"PaymentMethod": "text",
"PaymentMethodName": "text",
"PaymentAgentName": "text",
"PaymentDate": "2024-11-21T06:21:35.004Z",
"TransporterName": "text",
"TransporterRegisterNumber": "text",
"TransportDate": "2024-11-21T06:21:35.004Z"
},
"AccountingCost": "text",
"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"
},
"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"
}
],
"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("https://apitest.nilvera.com/earchive/Draft/e5b54aee-016b-476f-9a44-a1ac4b7303f5/model");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
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 => 'https://apitest.nilvera.com/earchive/Draft/e5b54aee-016b-476f-9a44-a1ac4b7303f5/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(
'Authorization: Bearer <API KEY>'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
var axios = require('axios');
var config = {
method: 'get',
url: 'https://apitest.nilvera.com/earchive/Draft/e5b54aee-016b-476f-9a44-a1ac4b7303f5/model',
headers: {
'Authorization': 'Bearer <API KEY>'
}
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});