SGK Invoice is Uploaded as PDF

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

Last updated