Yeni Seri Oluşturur

Yeni seri oluşturur.

POST/ebill/Series
Body
Namenullable string
IsActiveboolean
IsDefaultboolean
Response

Yeni seri oluşturur.

Body
IDinteger (int32)
Namenullable string
IsDefaultboolean
IsActiveboolean
CreatedDatestring (date-time)
Detailsnullable array of SerieDetailResponse (object)
Request
const response = await fetch('/ebill/Series', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json-patch+json"
    },
    body: JSON.stringify({}),
});
const data = await response.json();
Response
{
  "Name": "text",
  "IsDefault": false,
  "IsActive": false,
  "CreatedDate": "2024-11-21T08:54:40.143Z",
  "Details": [
    {
      "Year": "text",
      "LastIssueDate": "2024-11-21T08:54:40.143Z"
    }
  ]
}

var options = new RestClientOptions("https://apitest.nilvera.com")
{
  MaxTimeout = -1,
};
var client = new RestClient(options);
var request = new RestRequest("/ebill/Series", Method.Post);
request.AddHeader("Authorization", "Bearer <API KEY>");
request.AddHeader("Content-Type", "application/json");
var body = @"{
"Name": "string",
"IsActive": true,
"IsDefault": true}";
request.AddStringBody(body, DataFormat.Json);
RestResponse response = await client.ExecuteAsync(request);
Console.WriteLine(response.Content);