Schema/Schematron Control is Performed on the Ledger

Deftere şema/şematron kontrolü uygulanır.

POST/eledger/Documents/Schematron
Body
Periodnullable string
Yearnullable string
Response

Deftere şema/şematron kontrolü uygulanır.

Body
IsValidboolean
Errorsnullable array of ValidationError (object)
Request
const response = await fetch('/eledger/Documents/Schematron', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json-patch+json"
    },
    body: JSON.stringify({}),
});
const data = await response.json();
Response
{
  "IsValid": false,
  "Errors": [
    {
      "ValidationType": "Schema",
      "FileName": "text",
      "FileType": "text",
      "Error": {
        "errorMessage": "text"
      }
    }
  ]
}
var options = new RestClientOptions("https://apitest.nilvera.com")
{
    MaxTimeout = -1
};
var client = new RestClient(options);
var request = new RestRequest("/eledger/Documents/Schematron", Method.Post);
request.AddHeader("Content-Type", "application/json");
request.AddHeader("Authorization", "Bearer <API KEY>");

var body = @"
{
    ""Period"": ""string"",
    ""Year"": ""string""
}";
request.AddStringBody(body, DataFormat.Json);
RestResponse response = await client.ExecuteAsync(request);
Console.WriteLine(response.Content);