Get Model of Draft
Last updated
Last updated
var client = new RestClient("https://apitest.nilvera.com/eproducer/Draft/72d5252d-5c6b-461a-b960-d6f0021cbaa9/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/eproducer/Draft/72d5252d-5c6b-461a-b960-d6f0021cbaa9/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/eproducer/Draft/72d5252d-5c6b-461a-b960-d6f0021cbaa9/model',
headers: {
'Authorization': 'Bearer <API KEY>'
}
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
/eproducer/Draft/{UUID}/model
curl -L \
--url '/eproducer/Draft/{UUID}/model' \
--header 'Authorization: Bearer JWT'
{
"ProducerInfo": {
"UUID": "123e4567-e89b-12d3-a456-426614174000",
"TemplateUUID": "123e4567-e89b-12d3-a456-426614174000",
"TemplateBase64String": "text",
"DeliveryDate": "2025-02-28T07:02:47.194Z",
"ProducerSerieOrNumber": "text",
"IssueDate": "2025-02-28T07:02:47.194Z",
"CurrencyCode": "text",
"ExchangeRate": 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"
}
]
},
"ProducerLines": [
{
"Name": "text",
"Quantity": 1,
"UnitType": "text",
"Price": 1,
"GVWithholdingPercent": 1,
"GVWithholdingAmount": 1,
"Taxes": [
{
"TaxCode": "text",
"Total": 1,
"Percent": 1,
"ReasonCode": "text",
"ReasonDesc": "text"
}
]
}
],
"Notes": [
"text"
]
}
Model dosyasını indirir.