Overview

The Status URL is used to receive real time updates of message deliveries.

There are two ways to use this functionality. The preferred method is to provide it to your SBT Client Consultant and they will configure it for your account. Alternately, you can include the URL in your send message API’s in the field “status url”.

 

IP Whitelisting

You will need to whitelist the following IP addresses during configuration of callback in your system:

  • Production/Live: 52.202.25.134, 34.193.0.200 and 35.164.173.186
  • Staging/Testing: 3.226.203.173 and 54.149.28.201

Code Examples:

C#

StringBuilder str = new StringBuilder();
str.Append("==========StatusURL Message Start===========");
str.Append(Environment.NewLine);
str.Append("Code = " + Request["code"]);
str.Append(Environment.NewLine);
str.Append("message = " + Request["message"]);
str.Append(Environment.NewLine);
str.Append("SendTo = " + Request["sendTo"]);
str.Append(Environment.NewLine);
str.Append("OrgCode = " + Request["orgcode"]);
str.Append(Environment.NewLine);
str.Append("Status = " + Request["status"]);
str.Append(Environment.NewLine);
// unique id for the transaction
str.Append("Ticket = " + Request["ticket"]);
str.Append(Environment.NewLine);
str.Append("Note = " + Request["note"]);
str.Append(Environment.NewLine);
str.Append("UniqueID = " + Request["UniqueID"]);
str.Append(Environment.NewLine);
str.Append("MessageCategory = " + Request["MessageCategory"]);
str.Append(Environment.NewLine);
str.Append("MessageSubcategory = " + Request["MessageSubcategory"]);
str.Append(Environment.NewLine);
str.Append("Username= " + Request["Username"]);
str.Append(Environment.NewLine);
str.Append("Remarks= " + Request["Remarks"]);
str.Append(Environment.NewLine);
str.Append("TemplateID= " + Request["TemplateID"]);
str.Append(Environment.NewLine);
str.Append("==========StatusURL Message End===========");
str.Append(Environment.NewLine);

JAVA

StringBuilder str = new StringBuilder();
str.append("==========StatusURL Message Start===========");
str.append("\n");
str.append(("Code = " + request.getAttribute(code)); 
str.append("\n");
str.append(("Message = " + request.getAttribute(message)); 
str.append("\n");
str.append(("SendTo = " + request.getAttribute(sendTo)); 
str.append("\n");
str.append(("OrgCode = " + request.getAttribute(orgcode)); 
str.append("\n");
str.append(("Status = " + request.getAttribute(status));
str.append("\n");
// unique id for the transaction
str.append(("Ticket = " + request.getAttribute(ticket));
str.append("\n");
str.append(("Note = " + request.getAttribute(note));
str.append("\n");
str.append(("UniqueID = " + request.getAttribute(UniqueID));
str.append("\n");
str.append(("MessageCategory = " + request.getAttribute(MessageCategory));
str.append("\n");
str.append(("MessageSubcategory = " + request.getAttribute(MessageSubcategory));
str.append("\n");
str.append(("Username= " + request.getAttribute(Username));
str.append("\n");
str.append(("Remarks= " + request.getAttribute(Remarks));
str.append("\n");
str.append(("TemplateID = " + request.getAttribute(TemplateID));
str.append("==========StatusURL Message End===========");

PHP

<$str = "";
$str .= "==========StatusURL Message Start===========";
$str .= "
\n";
$str .= "code = " .$_REQUEST['code'];
$str .= "
\n";
$str .= "message = " .$_REQUEST['message'];
$str .= "
\n";
$str .= "sendTo = " .$_REQUEST['sendTo'];
$str .= "
\n";
$str .= "orgcode = " .$_REQUEST['orgcode'];
$str .= "
\n";
$str .= "status = " .$_REQUEST['status'];
$str .= "
\n";
$str .= "ticket = " .$_REQUEST['ticket'];
$str .= "
\n";
$str .= "note = " .$_REQUEST['note'];
$str .= "
\n";
$str .= "UniqueID = " .$_REQUEST['UniqueID'];
$str .= "
\n";
$str .= "MessageCategory = " .$_REQUEST['MessageCategory'];
$str .= "
\n";
$str .= "MessageSubcategory = " .$_REQUEST['MessageSubcategory'];
$str .= "
\n";
$str .= "Username= " .$_REQUEST['Username'];
$str .= "
\n";$str .= "Remarks = " .$_REQUEST['Remarks'];
$str .= "
\n";
$str .= "TemplateID = " .$_REQUEST['TemplateID'];
$str .= "
\n";
$str .= "==========StatusURL Message End=============";
echo $str;

Below is Status url fields sample:

 

Click here to test your Status URL