Ayarları Oluşturur veya Günceller

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:40:20.139Z",
    "FiscalYearEnd": "2025-06-25T13:40:20.139Z",
    "AccountingPeriod": "AccountingPeriod",
    "IsLiquidate": true,
    "BalanceControl": true,
    "PaymentMethodControl": true,
    "LiquidateYearStart": "2025-06-25T13:40:20.139Z",
    "SignMethod": "SmartCard",
    "SplitBillControl": true,
    "DocumentNumberControl": true,
    "AutoNumberControl": true,
    "DateDifferenceValidControl": true,
    "OpeningVoucherControl": true,
    "AutoPaymentMethodControl": true
  }
}
true
var options = new RestClientOptions("http://localhost:11006")
{
  MaxTimeout = -1,
};
var client = new RestClient(options);
var request = new RestRequest("/Properties", Method.Put);
request.AddHeader("Content-Type", "application/json-patch+json");
request.AddHeader("Authorization", "Bearer <API KEY>");
var body = @"{
    ""Nace"": ""15160"",
    ""Creator"": ""Ali İçellioğlu"",
    ""TaxType"": ""IncludeTax"",
    ""LineCount"": 5000,
    ""IsBranch"": true,
    ""BranchName"": ""Merkez Şube"",
    ""BranchNumber"": ""0001"",
    ""LedgerPeriod"": true,
    ""FiscalYearStart"": ""2023-01-01"",
    ""FiscalYearEnd"": ""2023-12-31"",
    ""AccountingPeriod"": ""AccountingPeriod"",
    ""IsLiquidate"": false,
    ""LiquidateYearStart"": ""2024-01-29T07:32:15.625Z""
}";
request.AddStringBody(body, DataFormat.Json);
RestResponse response = await client.ExecuteAsync(request);
Console.WriteLine(response.Content);

Last updated