This operation allows to submit from EVICERTIA an EviSMS message with the following data:













NOTE 1.- All information about EviNotice in this help is deprecated. To issue and EviNotice you can use API v2 - EviNoticeSubmit (API V2)









In the case of JSON it should be reported as follows:













"PushNotificationFilter":["STRING"]


POST https://app.evicertia.com/api/EviSms/Submit HTTP/1.1
Accept: application/json
Content-Type: application/json
Authorization: basic XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX==
Host: app.evicertia.com

{
	"LookupKey":"Evi",
	"Text":"Hi This is a certified SMS",
	"IssuerName":"JGM",
	"Recipient":
	{
		"LegalName":"Juan Gallego",
		"PhoneNumber":"+34xxxxx"
	}
	"Options":
	{
		"CertificationLevel":"Advanced",
		"TimeToLive":10500
	}
}


POST https://app.evicertia.com/api/EviSms/Submit HTTP/1.1
Accept: application/json
Content-Type: application/json
Authorization: basic XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX==
Host: app.evicertia.com
{
	"lookupKey": "xxx",
	"subject":"xxx",
	"text": "xxx",
	"issuerName": "xx",
	"recipient":{
		"LegalName":"Juan Gallego",
		"PhoneNumber":"+34xxxxx"
	},
	"Options":{
		"DeliveryMode":"Notify",
		"CommitmentOptions": "Disabled",
		"CertificationLevel":"Advanced",
	},
	"Attachments": {
		"DisplayName": "xxx",
		"Filename": "xxxx",
		"MimeType": "application/pdf",
		"Data": "pdf en base 64"
	}
}

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






{
	"EviId":"dd24e27d-2d84-4f74-a7f0-a23b018ab798"
}


Idempotence Activation

There is the option to activate the idempotency capability to avoid sending the same EviSMS 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 about parameters

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.

Push notifications

This method allows to report changes in the state of an evidence, without the need to periodically check its status.













Every time an evidence changes its state, the user will be notified through a POST to the URL shown as a parameter of the request.Cada vez que una evidencia cambie de estado, se notidficará al usuario un POST a la url que indique como parámetro de la petición.













Please find here below the common information returned for any push notification for an EviSms:








In addition, depending on the type of event, specific properties will be added in AdditionalData:


In the case where additional data is indicated in the PushNotificationExtraData parameter, it will be added in a property called ExtraData inside AdditionalData

{
	"Identifier": "1335",
	"EvidenceId": "d9a581ae02584cf6b925a87000c4be22",
	"EvidenceType": "eviSMS",
	"Kind": "Ready",
	"Date": "2018-01-22T12:56:22.4367924+01:00",
	"Site": "pruebas",
	"Owner": "Pruebas evicertia",
	"OwnerEmail": "pruebas@evicertia.com"
	"AdditionalData": {
		"Source": "Issuer Name",
		"LookupKey": "push-notification-test",
		"State": "In progress",
		"CreationDate": "2018-01-22T12:56:19.1306690+01:00",
		"ExtraData": "{\"myId\": \"99cf386b-1590-4ddb-af68-607b3e7c1194\", \"myCreationDate\": \"2018-01-22T12:54:00.4367924+01:00\"}
	}
}