Delivery reports

I webhooks sono un semplice strumento per ricevere informazioni sulla ricezione dei messaggi e sulle risposte. Per ricevere le notifiche di ricezione, devi creare un webhook DLR. We'll then push the delivery reports through a POST HTTP request with a JSON string in the body (raw) as follows:

DLR


{
	"date": "2018-01-16T11:55:12+01:00",
	"status": 3,
	"destination": "41781234567",
	"message_id": "621277",
	"campaign_id": "15948909",
	"country_code": "FR"
}
	      
	  
date La data di ricezione
status Lo stato dell’avviso di ricezione
destination Il numero di telefono associato
message_id L’id associato al messaggio se era stato impostato il parametro gsmsmsid
campaign_id L’id associato alla campagna
country_code The country code of the number
status Notifica di ricezione Descrizione
0 NOT_SENT Il messaggio non è ancora stato inviato
1 SENT Il messaggio è stato inviato ma la notifica di ricezione non è ancora disponibile
2 NOT_DELIVERED Il messaggio è stato inviato ma non è ancora stato consegnato
3 DELIVERED Il messaggio è stato inviato e consegnato
4 NOT_ALLOWED Il messaggio è stato inviato ma non è autorizzata la consegna
5 INVALID_DESTINATION Il destinatario non è valido
6 INVALID_SENDER The sender is invalid
7 ROUTE_NOT_AVAILABLE The route is not available
9 REJECTED The message as been rejected
11 NETWORK_ERROR Il messaggio non è stato consegnato a causa di un errore della rete
12 EXPIRED Il messaggio è stato inviato ma la notifica di ricezione è scaduta