Ledger Settings are Created/Updated

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

put

/eledger/Properties

Authorizations
Body
ELedgerPropertiesobject
Responses
curl -L \
  --request PUT \
  --url '/eledger/Properties' \
  --header 'Authorization: Bearer JWT' \
  --header 'Content-Type: application/json-patch+json' \
  --data '{
    "ELedgerProperties": {
      "Nace": "text",
      "Creator": "text",
      "CurrencyCode": "text",
      "TaxType": "IncludeTax",
      "LineCount": 1,
      "IsBranch": true,
      "BranchName": "text",
      "BranchNumber": "text",
      "LedgerPeriod": true,
      "FiscalYearStart": "2025-02-28T07:31:38.400Z",
      "FiscalYearEnd": "2025-02-28T07:31:38.400Z",
      "AccountingPeriod": "AccountingPeriod",
      "IsLiquidate": true,
      "BalanceControl": true,
      "PaymentMethodControl": true,
      "LiquidateYearStart": "2025-02-28T07:31:38.400Z",
      "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);