This operation allows to submit an EviNotice with the following data:

*Note: The PIN code has a life time of 60 minutes, after this time it will be necessary to request another PIN code. The number of 9 attempts to correctly enter the PIN code sent is also established.

Example of request
POST https://app.evicertia.com/api/v2/EviNotice/Submit HTTP/1.1
Accept: application/json
Content-Type: application/json
Authorization: basic XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX==
Host: app.evicertia.com
{
	"Subject": "Hello world",
	"Body": "Lorem ipsum dolor sit amet",
	"RecipientAddress": "pruebas@evicertia.com",
	"IssuerLegalName": "Evicertia",
	"LookupKey": "dev",
	"Attachments": [
		{
			"FileName" : "Example.pdf",
			"Data": "Pdf's B64."
		}
	],
	"CertificationLevel": "Advanced",
	"AffidavitKinds": ["SubmittedAdvanced", "CompleteAdvanced", "OnDemand"],
	"CommitmentChoice": "AcceptOrReject",
	"CommitmentCommentsAllowed": true,
	"PushNotificationUrl": "https://www.mysite.org/url/to/push",
	"PushNotificationFilter": ["Processed", "Sent", "Received"],
	"OnlineRetentionPeriod": 10,
	"Language": "es",
	"AffidavitLanguage": "es"
}

In case of successful sending, the identifier allocated to the evidence that can be used later to consult its state is returned.

Example of request for QERDS Notification
{ 
    "Subject": "Hello world",
	"Body": "Lorem ipsum dolor sit amet",
	"RecipientAddress": "pruebas@evicertia.com",
	"IssuerLegalName": "Evicertia",
	"LookupKey": "dev",
	"CertificationLevel": "QERDS",
    "QERDSEnrollmentAllowed" : true,
    "QERDSProfile" : "Uanataca::VideoId::Email",
    "RecipientLegalIdRequired" : true,
    "RecipientLegalIdKind": "PAS:ES",
    "RecipientLegalIdValue" : "747834734", 
	"AffidavitKinds": ["SubmittedAdvanced", "CompleteAdvanced", "OnDemand"],
	"CommitmentChoice": "AcceptOrReject",
	"CommitmentCommentsAllowed": true,
	"PushNotificationUrl": "https://www.mysite.org/url/to/push",
	"PushNotificationFilter": ["Processed", "Sent", "Received"],
	"OnlineRetentionPeriod": 10,
	"Language": "es",
	"AffidavitLanguage": "es"
}
Example of answer
{
	"Id":"dd24e27d-2d84-4f74-a7f0-a23b018ab798"
}

Push notifications

Example of push notification answer
{
  "Identifier": "0188d313-e2a9-4293-b995-c36324c889a7",
  "Kind": "Received",
  "Date": "2023-06-19T09:54:35.7608150Z",
  "EvidenceId": "0188d313642147089ab0c1398514df49",
  "EvidenceType": "eviNotice",
  "Site": "xxxxxx",
  "OwnerEmail": "xxx@correo.es",
  "AdditionalData": {
    "From": "xxxx@correo.es",
    "To": "xxxx@correo.com",
    "Subject": "notification about your insurance car",
    "State": "Received",
    "CreationDate": "2023-06-19T09:54:03.7486430Z",
    "Progress": "Received of the notification confirmed",
    "Description": "The system confirmed, via open link, that the recipient received the notification with an attached link allowing the user to access the content, but the content has not yet been opened/read.",
    "IpAddress": "188.26.211.105",
    "BrowserData": "Chrome",
    "UserLanguages": "es-ES, es;q=0.9" 
  }
}

Idempotence Activation

There is the option to activate the idempotency capability to avoid sending the same EviNotice more than once in case of repeated submitting. For that, a request with the name "X-Evi-IdempotencyToken" must be added to the request headers, adding as a value some random text (the use of a GUID is recommended).





Examples and further information

More information is given below and examples of the parameters are given, so that they are understood more easily. This section is organized in alphabetical order.