This operation allows to consult any EviMails existing in the system by the following fields:
- WithUniqueIds [optional]: List of identifiers (UniqueId) separated by "," for evidences for query.
- WithLookupKeys [optional]: List of locators (LookupKey) for evidences for query.
- OnState: It returns only those messages that are in the specified processing state (New, Ready, Read, Sent, Answered, Closed, Failed, Unknown). Contact support (support@evicertia.com) to use this parameter.
- WithOutcome: It returns only those messages that have delivered the specified state (New, Certified, Dispatched, Sent, Delayed, Relayed, Expanded, Delivered, Read, Accepted, Rejected, Failed). Contact support (support@evicertia.com) to use this parameter.
- Limit [optional]: Maximum number of items to be returned. (Default value = 100).
- Offset [optional]: It allows to page the results and only those results from the specified result will be returned.
- IncludeAffidavits [optional] (True (1) o False (0)): It specifies whether your list of Affidavits should be included in the result delivered.
- IncludeAffidavitBlobs [optional] (True (1) o False (0): It specifies whether the bytes of Affidavits should be included in the result. Default value = False.
- IncludeAttachments [optional] (True (1) o False (0)): It specifies whether your list of Attachments should be included in the result delivered.
- IncludeAttachmentBlobs (True (1) o False (0): It specifies whether the bytes of Attachments should be included in the result. Default value = False.
GET https://app.evicertia.com/api/EviMail/Query?WithUniqueIds=17cd5814c89c423dacedaba301357793&IncludeAffidavits=true&includeAffidavitBlobs=false&IncludeAttachments=true&includeAttachmentBlobs=false
Content-Type: application/json
Accept: application/json
Authorization: basic XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX==
Host: app.evicertia.com
The result of this operation will include the following data:
- TotalMatches: Number of logs (total) matching the query.
- Results: List of EviMails included in the response (depending on the Limit/Offset parameters of the original request):
{
"totalMatches": 1,
"results": [
{
"uniqueId": "256e7118-b80b-43e5-bad4-a16101765689",
"lookupKey": "Evi",
"issuer": {
"LegalName": "Juan Gallego"
"emailAddress": "SOAP Evicertia <soapevi@gmail.com>"
},
"recipient": {
"legalName": "Juan ",
"emailAddress": "pruebas_evi@hotmail.com"
},
"subject": "Prueba desde JSON - Enviar",
"body": "file:Plantilla.html",
"state": "Closed",
"creationDate": "0001-01-01T00:00:00",
"lastStateChangeDate": "0001-01-01T00:00:00"
}
]
}