Whatsapp İşlem Geçmişini Getirir

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

GET/einvoice/Sale/{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/Sale/{UUID}/Whatsapphistories', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
[
  {
    "SID": "text",
    "CreatedDate": "2024-06-21T18:09:24.361Z",
    "To": "text",
    "Status": "text",
    "TaxNumber": "text",
    "UUID": "text",
    "DateUpdated": "2024-06-21T18:09:24.361Z"
  }
]
var client = new RestClient("https://apitest.nilvera.com/einvoice/Sale/ea047f3a-009f-4811-bf3c-eb87207552cd/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);