Musahebe Rapor Şablonu Oluşturur

Muhasebe rapor şablonu oluşturur.

POST/report/Accounting/Template
Body
Namenullable string
Typeinteger (int32)
Columnsnullable array of AccountingReportTemplateColumn (object)
ReportType*ReportType (enum)
InvoiceVoucherProducer
Response

Muhasebe rapor şablonu oluşturur.

Body
Namenullable string
CreatedDatestring (date-time)
Columnsnullable string
Typeinteger (int32)
IDinteger (int32)
Request
const response = await fetch('/report/Accounting/Template', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json-patch+json"
    },
    body: JSON.stringify({
      "ReportType": "Invoice"
    }),
});
const data = await response.json();
Response
{
  "Name": "text",
  "CreatedDate": "2024-11-21T06:21:21.813Z",
  "Columns": "text"
}
var options = new RestClientOptions("https://apitest.nilvera.com")
{
    MaxTimeout = -1,
};

var client = new RestClient(options);
var request = new RestRequest("/report/Accounting/Template", Method.Post);
request.AddHeader("Content-Type", "application/json");
request.AddHeader("Authorization", "APIKEY");

var body = new
{
    Name = "string",
    Type = 0,
    Columns = new List<object>
    {
        new
        {
            Name = "string",
            ID = 0
        }
    },
    ReportType = "Invoice"
};

request.AddJsonBody(body);
RestResponse response = await client.ExecuteAsync(request);
Console.WriteLine(response.Content);

Last updated