SGK Invoice is Uploaded as PDF

SGK faturası için pdf olarak dosya yükler

post
Authorizations
Body
filestring · binaryoptional
Typestring · enumoptionalAvailable options:
RegisterCodestringoptional
Responses
post
curl -L \
  --request POST \
  --url '/einvoice/Upload/Sgk' \
  --header 'Authorization: Bearer JWT' \
  --header 'Content-Type: multipart/form-data' \
  --form 'file=binary' \
  --form 'Type=SAGLIK_ECZ' \
  --form 'RegisterCode=text'
{
  "UUID": "d501ad27-a588-46b9-9435-a4ef7e18e39d",
  "InvoiceNumber": "EFT2025000000001"
}
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