Şablon Oluşturur

Şablon oluşturur.

POST/earchive/Templates
Body
Namenullable string
IsActiveboolean
IsDefaultboolean
Base64Stringnullable string
Response

Faturayı model olarak gönderir

Body
IDinteger (int32)
UUIDnullable string
Namenullable string
IsActiveboolean
IsDefaultboolean
CreationDatestring (date-time)
TemplateIDinteger (int32)
Request
const response = await fetch('/earchive/Templates', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json-patch+json"
    },
    body: JSON.stringify({}),
});
const data = await response.json();
Response
{
  "UUID": "text",
  "Name": "text",
  "IsActive": false,
  "IsDefault": false,
  "CreationDate": "2024-11-21T06:26:42.699Z"
}
var client = new RestClient("https://apitest.nilvera.com/earchive/Templates");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <API KEY>");
request.AddHeader("Content-Type", "application/json");
var body = @"{"Name": "string",
"IsActive": true,
"IsDefault": true,
"Base64String": "string"}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);