Defter Ayarları Oluşturma/Güncelleme Yapılır

Defter ayarları yoksa oluşturur varsa günceller.

put
Authorizations
Body
Responses
200
Defter ayarları yoksa oluşturur varsa günceller.
Responseboolean
put
PUT /eledger/Properties HTTP/1.1
Host: 
Authorization: Bearer JWT
Content-Type: application/json-patch+json
Accept: */*
Content-Length: 632

{
  "ELedgerProperties": {
    "Nace": "text",
    "Creator": "text",
    "CurrencyCode": "text",
    "TaxType": "IncludeTax",
    "LineCount": 1,
    "IsBranch": true,
    "BranchName": "text",
    "BranchNumber": "text",
    "LedgerPeriod": true,
    "FiscalYearStart": "2025-06-25T13:37:17.727Z",
    "FiscalYearEnd": "2025-06-25T13:37:17.727Z",
    "AccountingPeriod": "AccountingPeriod",
    "IsLiquidate": true,
    "BalanceControl": true,
    "PaymentMethodControl": true,
    "LiquidateYearStart": "2025-06-25T13:37:17.727Z",
    "SignMethod": "SmartCard",
    "SplitBillControl": true,
    "DocumentNumberControl": true,
    "AutoNumberControl": true,
    "DateDifferenceValidControl": true,
    "OpeningVoucherControl": true,
    "AutoPaymentMethodControl": true
  }
}
true
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);

Last updated