Load as XML

Xml olarak fatura yükler.

POST/einvoice/Upload
Body
filestring (binary)
Response

Xml olarak fatura yükler

Body
UUIDstring (uuid)
InvoiceNumbernullable string
Request
const response = await fetch('/einvoice/Upload', {
    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 client = new RestClient("https://apitest.nilvera.com/einvoice/Upload");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <API KEY>");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);