Taslak Olarak Kaydeder

Giden faturayı taslak olarak kaydeder.

POST/einvoice/Sale/{UUID}/CreateDraft
Path parameters
UUID*string (uuid)
Response

Giden faturayı taslak olarak kaydeder.

Body
UUIDstring (uuid)
InvoiceNumbernullable string
Request
const response = await fetch('/einvoice/Sale/{UUID}/CreateDraft', {
    method: 'POST',
    headers: {},
});
const data = await response.json();
Response
{
  "UUID": "123e4567-e89b-12d3-a456-426614174000",
  "InvoiceNumber": "text"
}
var client = new RestClient("https://apitest.nilvera.com/einvoice/Sale/ea047f3a-009f-4811-bf3c-eb87207552cd/CreateDraft");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <API KEY>");
request.AddHeader("Content-Type", "application/json");
var body = @"{"UUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6","Phone": "string"}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);