XML Olarak Gönderilecek Faturayı Önizler

var options = new RestClientOptions("https://apitest.nilvera.com")
{
  MaxTimeout = -1,
};
var client = new RestClient(options);
var request = new RestRequest("/einvoice/Send/Xml/Preview?Alias=sdfs", Method.Post);
request.AddHeader("Content-Type", "application/xml");
request.AddHeader("Authorization", "Bearer <API KEY>");
request.AddParameter("application/xml", "<file contents here>", ParameterType.RequestBody);
RestResponse response = await client.ExecuteAsync(request);
Console.WriteLine(response.Content);