Events and Reports - Updated 12/20
Outbound-Message Status Update (Delivery Report)
You can receive the outbound message status update reports directly in your application using Termii's Webhook Notiifcation. Add your webhook url in your termii developer console
Options | Description |
---|---|
type | string Represents the type of message that is sent |
id | string Represents the ID of the request sent |
message_id | string Represents the ID of the message sent |
receiver | string Represents the destination phone number |
sender | string Represents a sender ID for sms or Device ID for Whatsapp which can be Alphanumeric |
message | string Text of a message that would be sent to the destination phone number |
sent_at | string Represents the time the message was sent |
cost | string Represent amount charged for the message sent |
status | string Represents the status of the message sent. A message can have any of the following states; DELIVERED | Message delivered to handset , DND Active on Phone Number , Message Failed |
channel | string This is the route through which the message is sent. It is either dnd, whatsapp, or generic |
Webhook Notification Data
{
"type":"outbound",
"message_id":"5964465985113503103",
"receiver":"2343459509389",
"sender":"N-Alert",
"message":"Your Termii confirmation code is 234u53.",
"sent_at":"2020-12-16 11:34:36",
"cost":"3.9",
"command":"deliver",
"status":"DELIVERED | Message delivered to handset",
"channel":"Number Api"
}