Muhasebeci Oluşturur

Muhasebeci eklenir.

POST/eledger/Accountants
Body
Namenullable string
BuildingNumbernullable string
Streetnullable string
Citynullable string
Countrynullable string
PostalCodenullable string
Phonenullable string
Faxnullable string
Emailnullable string
ContractDatestring (date-time)
AccountantTypenullable string
ContractNumbernullable string
Response

Muhasebeci eklenir.

Body
boolean
Request
const response = await fetch('/eledger/Accountants', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json-patch+json"
    },
    body: JSON.stringify({}),
});
const data = await response.json();
Response
false
var options = new RestClientOptions("https://apitest.nilvera.com")
{
  MaxTimeout = -1,
};
var client = new RestClient(options);
var request = new RestRequest("/eledger/Accountants", Method.Post);
request.AddHeader("Content-Type", "application/json-patch+json");
request.AddHeader("Authorization", "Bearer <API KEY>");
var body = @"{
    ""Name"": ""string"",
    ""BuildingNumber"": ""string"",
    ""Street"": ""string"",
    ""City"": ""string"",
    ""Country"": ""string"",
    ""PostalCode"": ""string"",
    ""Phone"": ""string"",
    ""Fax"": ""string"",
    ""Email"": ""string"",
    ""ContractDate"": ""2024-04-02T11:46:43.407Z"",
    ""AccountantType"": ""string"",
    ""ContractNumber"": ""string""
}";
RestResponse response = await client.ExecuteAsync(request);
Console.WriteLine(response.Content);