Taslaklara Yeni Durum Atar

Belgelere toplu olarak yeni durum atar.

Belgelere toplu olarak yeni durum atamak için bu uç kullanılabilir.

PUT/ebill/Draft/Operation/{operationType}
Path parameters
operationType*OperationType (enum)

Yazdırılmadı, Yazdırıldı

UnPrintPrint
Body

UUID

itemsstring (uuid)
Response

Belgelere toplu olarak yeni durum atar.

Body
itemsstring
Request
const response = await fetch('/ebill/Draft/Operation/{operationType}', {
    method: 'PUT',
    headers: {
      "Content-Type": "application/json-patch+json"
    },
    body: JSON.stringify([
      "123e4567-e89b-12d3-a456-426614174000"
    ]),
});
const data = await response.json();
Response
[
  "text"
]

var options = new RestClientOptions("https://apitest.nilvera.com")
{
  MaxTimeout = -1,
};
var client = new RestClient(options);
var request = new RestRequest("/ebill/Draft/Operation/UnPrint", Method.Put);
request.AddHeader("Authorization", "Bearer <API KEY>");
request.AddHeader("Content-Type", "application/json");
var body = @"["1357ba09-29e1-4e65-b600-6247ddd57f93"]";
request.AddStringBody(body, DataFormat.Json);
RestResponse response = await client.ExecuteAsync(request);
Console.WriteLine(response.Content);