Taslağın Modeli Getirilir
Model dosyasını indirir.
GET/evoucher/Draft/{UUID}/model
Path parameters
UUID*string (uuid)
Response
Model dosyasını indirir.
Body
VoucherInfoVoucherInfoDto (object)
CompanyInfoPartyInfoDto (object)
CustomerInfoPartyInfoDto (object)
VoucherLinesnullable array of EVoucherLineDto (object)
Notesnullable array of string
Request
const response = await fetch('/evoucher/Draft/{UUID}/model', {
method: 'GET',
headers: {},
});
const data = await response.json();
Response
{
"VoucherInfo": {
"UUID": "123e4567-e89b-12d3-a456-426614174000",
"TemplateUUID": "123e4567-e89b-12d3-a456-426614174000",
"TemplateBase64String": "text",
"VoucherSerieOrNumber": "text",
"IssueDate": "2024-11-21T06:36:57.048Z",
"CurrencyCode": "text",
"SendType": "KAGIT",
"ExchangeRate": 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"
},
"VoucherLines": [
{
"Name": "text",
"GrossWage": 0,
"Price": 0,
"KDVPercent": 0,
"KDVTotal": 0,
"Taxes": [
{
"TaxCode": "text",
"Total": 0,
"Percent": 0,
"ReasonCode": "text",
"ReasonDesc": "text"
}
],
"GVWithholdingPercent": 0,
"GVWithholdingTotal": 0
}
],
"Notes": [
"text"
]
}
var client = new RestClient("https://apitest.nilvera.com/evoucher/Draft/4275ee6d-c64f-41d7-85ca-ae6544776ec9/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/evoucher/Draft/4275ee6d-c64f-41d7-85ca-ae6544776ec9/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/evoucher/Draft/4275ee6d-c64f-41d7-85ca-ae6544776ec9/model',
headers: {
'Authorization': 'Bearer <API KEY>'
}
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});