SGK Faturası PDF Olarak Yüklenir

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

POST/einvoice/Upload/Sgk
Body
filestring (binary)
TypeSGKType (enum)
SAGLIK_ECZSAGLIK_OPT
Response

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

Body
UUIDstring (uuid)
InvoiceNumbernullable string
Request
const response = await fetch('/einvoice/Upload/Sgk', {
    method: 'POST',
    headers: {
      "Content-Type": "multipart/form-data"
    },
    body: JSON.stringify({}),
});
const data = await response.json();
Response
{
  "UUID": "123e4567-e89b-12d3-a456-426614174000",
  "InvoiceNumber": "text"
}
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);