Mail İşlem Geçmişini Getirir

Mailin işlem geçmişini getirir.

GET/einvoice/Sale/{UUID}/Mailhistories
Path parameters
UUID*string (uuid)
Response

Mailin işlem geçmişini getirir.

Body
Emailnullable string
MessageIdnullable string
Statusnullable string
IsSuccessboolean
EventMailEventType (enum)
processeddeliveredopenclickbouncedroppeddeferredunsubscribe
CreatedDatestring (date-time)
EventDatestring (date-time)
Request
const response = await fetch('/einvoice/Sale/{UUID}/Mailhistories', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
[
  {
    "Email": "text",
    "MessageId": "text",
    "Status": "text",
    "IsSuccess": false,
    "Event": "processed",
    "CreatedDate": "2024-07-23T15:48:20.026Z",
    "EventDate": "2024-07-23T15:48:20.026Z"
  }
]
var client = new RestClient("https://apitest.nilvera.com/einvoice/Sale/ea047f3a-009f-4811-bf3c-eb87207552cd/Mailhistories");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <API KEY>");
request.AddHeader("Content-Type", "application/json");
var body = @"["22d6b2ca-ba6b-47dc-a07e-846cc0e51a0e"]";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);