Whatsapp İşlem Geçmişini Getirir

Whatsapp ın işlem geçmişini getirir.

GET/einvoice/Draft/{UUID}/Whatsapphistories
Path parameters
UUID*string (uuid)
Response

Whatsapp ın işlem geçmişini getirir.

Body
SIDnullable string
CreatedDatestring (date-time)
Tonullable string
Statusnullable string
TaxNumbernullable string
UUIDnullable string
DateUpdatedstring (date-time)
Request
const response = await fetch('/einvoice/Draft/{UUID}/Whatsapphistories', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
[
  {
    "SID": "text",
    "CreatedDate": "2024-10-14T23:57:11.257Z",
    "To": "text",
    "Status": "text",
    "TaxNumber": "text",
    "UUID": "text",
    "DateUpdated": "2024-10-14T23:57:11.257Z"
  }
]
var client = new RestClient("https://apitest.nilvera.com/einvoice/Draft/9cf58e0d-67d0-4e5b-b75e-5597e3f49f30/Whatsapphistories");
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);