Ledger Settings are Created/Updated
var options = new RestClientOptions("https://apitest.nilvera.com")
{
MaxTimeout = -1,
};
var client = new RestClient(options);
var request = new RestRequest("/eledger/Properties", Method.Put);
request.AddHeader("Content-Type", "application/json");
request.AddHeader("Authorization", "Bearer <API KEY>");
var body = @"{
""ELedgerProperties"": {
""Nace"": ""Your Nace Value"",
""Creator"": ""Your Creator Value"",
""TaxType"": ""IncludeTax"",
""LineCount"": 0,
""IsBranch"": true,
""BranchName"": ""Your Branch Name"",
""BranchNumber"": ""Your Branch Number"",
""LedgerPeriod"": true,
""FiscalYearStart"": ""2024-04-03T11:14:43.050Z"",
""FiscalYearEnd"": ""2024-04-03T11:14:43.050Z"",
""AccountingPeriod"": ""AccountingPeriod"",
""IsLiquidate"": true,
""LiquidateYearStart"": ""2024-04-03T11:14:43.050Z""
}
}";
request.AddStringBody(body, DataFormat.Json);
RestResponse response = await client.ExecuteAsync(request);
Console.WriteLine(response.Content);