Taslağı Düzenleyip Gönderir
Taslak belgeyi düzenleyerek gönderir.
Taslak olarak oluşturduğunuz belgeyi düzenleyerek göndermek için bu ucu kullanabilirsiniz.
POST/eproducer/Draft/EditAndSend
Body
ProducerProducerDto (object)
Response
Taslak belgeyi düzenleyerek gönderir.
Body
UUIDstring (uuid)
ProducerNumbernullable string
Request
const response = await fetch('/eproducer/Draft/EditAndSend', {
method: 'POST',
headers: {
"Content-Type": "application/json-patch+json"
},
body: JSON.stringify({}),
});
const data = await response.json();
Response
{
"UUID": "123e4567-e89b-12d3-a456-426614174000",
"ProducerNumber": "text"
}
var client = new RestClient("https://apitest.nilvera.com/eproducer/Draft/EditAndSend");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <API KEY>");
request.AddHeader("Content-Type", "application/json");
var body = @"{
"Producer": {
"ProducerInfo": {
"UUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"TemplateUUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"TemplateBase64String": "string",
"DeliveryDate": "2023-01-11T13:31:29.921Z",
"ProducerSerieOrNumber": "string",
"IssueDate": "2023-01-11T13:31:29.921Z",
"CurrencyCode": "string",
"ExchangeRate": 0
},
"CompanyInfo": {
"TaxNumber": "string",
"Name": "string",
"TaxOffice": "string",
"PartyIdentifications": [
{
"SchemeID": "string",
"Value": "string"
}
],
"AgentPartyIdentifications": [
{
"SchemeID": "string",
"Value": "string"
}
],
"Address": "string",
"District": "string",
"City": "string",
"Country": "string",
"PostalCode": "string",
"Phone": "string",
"Fax": "string",
"Mail": "string",
"WebSite": "string"
},
"CustomerInfo": {
"TaxNumber": "string",
"Name": "string",
"TaxOffice": "string",
"PartyIdentifications": [
{
"SchemeID": "string",
"Value": "string"
}
],
"AgentPartyIdentifications": [
{
"SchemeID": "string",
"Value": "string"
}
],
"Address": "string",
"District": "string",
"City": "string",
"Country": "string",
"PostalCode": "string",
"Phone": "string",
"Fax": "string",
"Mail": "string",
"WebSite": "string"
},
"ProducerLines": [
{
"Name": "string",
"Quantity": 0,
"UnitType": "string",
"Price": 0,
"Taxes": [
{
"TaxCode": "string",
"Total": 0,
"Percent": 0,
"ReasonCode": "string",
"ReasonDesc": "string"
}
],
"GVWithholdingPercent": 0,
"GVWithholdingAmount": 0
}
],
"Notes": [
"string"
]
}
}";
request.AddParameter("application/json", body, ParameterType.RequestBody);
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/EditAndSend',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>'{
"Producer": {
"ProducerInfo": {
"UUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"TemplateUUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"TemplateBase64String": "string",
"DeliveryDate": "2023-01-11T13:31:29.921Z",
"ProducerSerieOrNumber": "string",
"IssueDate": "2023-01-11T13:31:29.921Z",
"CurrencyCode": "string",
"ExchangeRate": 0
},
"CompanyInfo": {
"TaxNumber": "string",
"Name": "string",
"TaxOffice": "string",
"PartyIdentifications": [
{
"SchemeID": "string",
"Value": "string"
}
],
"AgentPartyIdentifications": [
{
"SchemeID": "string",
"Value": "string"
}
],
"Address": "string",
"District": "string",
"City": "string",
"Country": "string",
"PostalCode": "string",
"Phone": "string",
"Fax": "string",
"Mail": "string",
"WebSite": "string"
},
"CustomerInfo": {
"TaxNumber": "string",
"Name": "string",
"TaxOffice": "string",
"PartyIdentifications": [
{
"SchemeID": "string",
"Value": "string"
}
],
"AgentPartyIdentifications": [
{
"SchemeID": "string",
"Value": "string"
}
],
"Address": "string",
"District": "string",
"City": "string",
"Country": "string",
"PostalCode": "string",
"Phone": "string",
"Fax": "string",
"Mail": "string",
"WebSite": "string"
},
"ProducerLines": [
{
"Name": "string",
"Quantity": 0,
"UnitType": "string",
"Price": 0,
"Taxes": [
{
"TaxCode": "string",
"Total": 0,
"Percent": 0,
"ReasonCode": "string",
"ReasonDesc": "string"
}
],
"GVWithholdingPercent": 0,
"GVWithholdingAmount": 0
}
],
"Notes": [
"string"
]
}
}',
CURLOPT_HTTPHEADER => array(
'Authorization: Bearer <API KEY>',
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
var axios = require('axios');
var data = JSON.stringify({
"Producer": {
"ProducerInfo": {
"UUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"TemplateUUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"TemplateBase64String": "string",
"DeliveryDate": "2023-01-11T13:31:29.921Z",
"ProducerSerieOrNumber": "string",
"IssueDate": "2023-01-11T13:31:29.921Z",
"CurrencyCode": "string",
"ExchangeRate": 0
},
"CompanyInfo": {
"TaxNumber": "string",
"Name": "string",
"TaxOffice": "string",
"PartyIdentifications": [
{
"SchemeID": "string",
"Value": "string"
}
],
"AgentPartyIdentifications": [
{
"SchemeID": "string",
"Value": "string"
}
],
"Address": "string",
"District": "string",
"City": "string",
"Country": "string",
"PostalCode": "string",
"Phone": "string",
"Fax": "string",
"Mail": "string",
"WebSite": "string"
},
"CustomerInfo": {
"TaxNumber": "string",
"Name": "string",
"TaxOffice": "string",
"PartyIdentifications": [
{
"SchemeID": "string",
"Value": "string"
}
],
"AgentPartyIdentifications": [
{
"SchemeID": "string",
"Value": "string"
}
],
"Address": "string",
"District": "string",
"City": "string",
"Country": "string",
"PostalCode": "string",
"Phone": "string",
"Fax": "string",
"Mail": "string",
"WebSite": "string"
},
"ProducerLines": [
{
"Name": "string",
"Quantity": 0,
"UnitType": "string",
"Price": 0,
"Taxes": [
{
"TaxCode": "string",
"Total": 0,
"Percent": 0,
"ReasonCode": "string",
"ReasonDesc": "string"
}
],
"GVWithholdingPercent": 0,
"GVWithholdingAmount": 0
}
],
"Notes": [
"string"
]
}
});
var config = {
method: 'post',
url: 'https://apitest.nilvera.com/eproducer/Draft/EditAndSend',
headers: {
'Authorization': 'Bearer <API KEY>',
'Content-Type': 'application/json'
},
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});