Taslaklara Yeni Durum Atar

Belgelere toplu olarak yeni durum atar.

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

PUT/einvoice/Draft/Operation/{operationType}
Path parameters
operationType*DraftOperationType (enum)

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

UnPrintPrint
Body
itemsstring (uuid)
Response

Belgelere toplu olarak yeni durum atar.

Body
itemsstring
Request
const response = await fetch('/einvoice/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 client = new RestClient("//einvoice/Draft/Operation/Print");
client.Timeout = -1;
var request = new RestRequest(Method.PUT);
request.AddHeader("Content-Type", "application/json");
request.AddHeader("Accept", "text/plain");
request.AddHeader("Authorization", "Bearer <API KEY>");
var body = @"["ec3be92c-27ed-2004-ccfd-04b425dced54","a07f9c7e-a182-d507-057d-b87d185deb27"]";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);