Taslağın Modeli Getirilir
Model dosyasını indirir.
GET/ebill/Draft/{UUID}/model
Path parameters
UUID*string (uuid)
Response
Model dosyasını indirir.
Body
BillInfoBillInfoDto (object)
CompanyInfoPartyInfoDto (object)
CustomerInfoPartyInfoDto (object)
SellerInfoEBillSellerInfoDto (object)
BillLinesnullable array of EBillLineDto (object)
Notesnullable array of string
Request
const response = await fetch('/ebill/Draft/{UUID}/model', {
method: 'GET',
headers: {},
});
const data = await response.json();
Response
{
"BillInfo": {
"UUID": "123e4567-e89b-12d3-a456-426614174000",
"TemplateUUID": "123e4567-e89b-12d3-a456-426614174000",
"TemplateBase64String": "text",
"BillSerieOrNumber": "text",
"IssueDate": "2024-11-21T08:43:18.699Z",
"CurrencyCode": "text",
"ExchangeRate": 0,
"RelatedDocument": {
"Type": "EFATURA",
"Code": "text"
},
"ValidityPeriod": {
"StartDate": "2024-11-21T08:43:18.699Z",
"EndDate": "2024-11-21T08:43:18.699Z"
}
},
"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"
},
"SellerInfo": {
"User": "text",
"TableNo": "text",
"Address": "text",
"District": "text",
"City": "text",
"Country": "text",
"PostalCode": "text",
"Phone": "text",
"Fax": "text",
"Mail": "text",
"WebSite": "text"
},
"BillLines": [
{
"Name": "text",
"Quantity": 0,
"UnitType": "text",
"Price": 0,
"KDVPercent": 0,
"KDVTotal": 0
}
],
"Notes": [
"text"
]
}
var options = new RestClientOptions("https://apitest.nilvera.com")
{
MaxTimeout = -1,
};
var client = new RestClient(options);
var request = new RestRequest("/ebill/Draft/1357ba09-29e1-4e65-b600-6247ddd57f93/model", Method.Get);
request.AddHeader("Authorization", "Bearer <API KEY>");
RestResponse response = await client.ExecuteAsync(request);
Console.WriteLine(response.Content);
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://apitest.nilvera.com/ebill/Draft/1357ba09-29e1-4e65-b600-6247ddd57f93/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',
maxBodyLength: Infinity,
url: 'https://apitest.nilvera.com/ebill/Draft/1357ba09-29e1-4e65-b600-6247ddd57f93/model',
headers: {
'Authorization': 'Bearer <API KEY>'
}
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});