Sends Invoice as Xml

Faturayı UBL-TR Xml formatında zipli yada açık halde (Xml) olarak gönderir.

Faturayı UBL-TR Xml formatında zipli yada açık halde (Xml) göndermek için bu uç kullanılır.

POST/earchive/Send/Xml
Query parameters
Body
filestring (binary)
Response

Faturayı XML (UBL) olarak gönderir

Body
UUIDstring (uuid)
InvoiceNumbernullable string
Request
const response = await fetch('/earchive/Send/Xml', {
    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("//earchive/Send/Xml");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "multipart/form-data");
request.AddHeader("Accept", "text/plain");
request.AddHeader("Authorization", "Bearer <API KEY>");
request.AddFile("file", "/path/to/file");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);