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);
});
/earchive/Draft/{UUID}/model
curl -L \
--url '/earchive/Draft/{UUID}/model' \
--header 'Authorization: Bearer JWT'
{
"InvoiceInfo": {
"UUID": "123e4567-e89b-12d3-a456-426614174000",
"TemplateUUID": "123e4567-e89b-12d3-a456-426614174000",
"TemplateBase64String": "text",
"InvoiceType": "SATIS",
"InvoiceSerieOrNumber": "text",
"IssueDate": "2025-02-28T16:00:48.228Z",
"CurrencyCode": "text",
"ExchangeRate": 1,
"OrderReference": {
"IssueDate": "2025-02-28T16:00:48.228Z",
"Value": "text"
},
"OrderReferenceDocument": {
"ID": "text",
"IssueDate": "2025-02-28T16:00:48.228Z",
"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": "2025-02-28T16:00:48.228Z",
"PayeeFinancialAccountID": "text",
"Note": "text"
},
"OKCInfo": {
"ID": "text",
"IssueDate": "2025-02-28T16:00:48.228Z",
"Time": "text",
"ZNo": "text",
"EndPointID": "text",
"DocumentDescription": "text"
},
"ESUReportInfo": {
"ID": "text",
"IssueDate": "2025-02-28T16:00:48.228Z"
},
"InvoicePeriod": {
"StartDate": "2025-02-28T16:00:48.228Z",
"StartTime": "text",
"EndDate": "2025-02-28T16:00:48.228Z",
"EndTime": "text",
"DurationMeasureValue": 1,
"Description": "text"
},
"ISDespatch": true,
"SalesPlatform": "NORMAL",
"SendType": "KAGIT",
"InternetInfo": {
"WebSite": "text",
"PaymentMethod": "text",
"PaymentMethodName": "text",
"PaymentAgentName": "text",
"PaymentDate": "2025-02-28T16:00:48.228Z",
"TransporterName": "text",
"TransporterRegisterNumber": "text",
"TransportDate": "2025-02-28T16:00:48.228Z"
},
"AccountingCost": "text",
"LineExtensionAmount": 1,
"GeneralKDV1Total": 1,
"GeneralKDV8Total": 1,
"GeneralKDV18Total": 1,
"GeneralKDV10Total": 1,
"GeneralKDV20Total": 1,
"GeneralAllowanceTotal": 1,
"PayableAmount": 1,
"KdvTotal": 1,
"DespatchDocumentReference": [
{
"IssueDate": "2025-02-28T16:00:48.228Z",
"Value": "text"
}
],
"AdditionalDocumentReferences": [
{
"ID": "text",
"IssueDate": "2025-02-28T16:00:48.228Z",
"DocumentType": "text",
"DocumentTypeCode": "text",
"DocumentDescription": "text",
"Attachment": {
"Base64Data": "text",
"MimeCode": "text",
"FileName": "text"
}
}
],
"ReturnInvoiceInfo": [
{
"InvoiceNumber": "text",
"IssueDate": "2025-02-28T16:00:48.228Z"
}
],
"Expenses": [
{
"ExpenseType": "HKSKOMISYON",
"Percent": 1,
"Amount": 1
}
]
},
"CompanyInfo": {
"TaxNumber": "text",
"Name": "text",
"TaxOffice": "text",
"Address": "text",
"District": "text",
"City": "text",
"Country": "text",
"PostalCode": "text",
"Phone": "text",
"Fax": "text",
"Mail": "text",
"WebSite": "text",
"PartyIdentifications": [
{
"SchemeID": "text",
"Value": "text"
}
],
"AgentPartyIdentifications": [
{
"SchemeID": "text",
"Value": "text"
}
]
},
"CustomerInfo": {
"TaxNumber": "text",
"Name": "text",
"TaxOffice": "text",
"Address": "text",
"District": "text",
"City": "text",
"Country": "text",
"PostalCode": "text",
"Phone": "text",
"Fax": "text",
"Mail": "text",
"WebSite": "text",
"PartyIdentifications": [
{
"SchemeID": "text",
"Value": "text"
}
],
"AgentPartyIdentifications": [
{
"SchemeID": "text",
"Value": "text"
}
]
},
"InvoiceLines": [
{
"Index": "text",
"SellerCode": "text",
"BuyerCode": "text",
"Name": "text",
"Description": "text",
"Quantity": 1,
"UnitType": "text",
"Price": 1,
"AllowanceTotal": 1,
"KDVPercent": 1,
"KDVTotal": 1,
"ManufacturerCode": "text",
"BrandName": "text",
"ModelName": "text",
"Note": "text",
"SerialID": "text",
"OzelMatrahReason": "text",
"OzelMatrahTotal": 1,
"VatAmountWithoutTevkifat": 1,
"ExportRegisteredInfo": {
"DIIBLineCode": "text",
"GTIPNo": "text"
},
"AdditionalItemIdentification": {
"TagNumber": "text",
"OwnerName": "text",
"OwnerTaxNumber": "text"
},
"Taxes": [
{
"TaxCode": "text",
"Total": 1,
"Percent": 1,
"ReasonCode": "text",
"ReasonDesc": "text"
}
]
}
],
"Notes": [
"text"
]
}
Model dosyasını indirir