SMS Webhook

The SMS webhook.

Request Method

  • GET

Webhook payload object common properties

KeyTypeDescription
msgidStringunique identifier for this text message
mobileStringto phone numebr (country code + number,e.g.,62xxxxxxxxx)
statusStringstatus of message (e.g.,DELIVRD、UNDELIV、REJECTD、EXPIRED)
batchIdStringunique identifier for a batch text messages
submitTimeStringrequest time of message, format is yyyyMMddHHmmss
reportTimeStringtime of the message DR, format is yyyyMMddHHmmss
smsNumStringnumbers of split message
priceStringprice of a message (smsNum more than one, the totalPrice = [smsNum*price])

Test Examples

curl --request GET \
     --url 'https://YOUR-WEBHOOK-URL?msgid=202403191413241919185393216&mobile=62xxxxxxxxxx&status=DELIVRD&batchId=V100000001_2403191413_177&smsNum=1&price=0.1510&reportTime=20240319141300&submitTime=20240319141324' \
     --header 'accept: application/json'
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("https://YOUR-WEBHOOK-URL?msgid=202403191413241919185393216&mobile=62xxxxxxxxxx&status=DELIVRD&batchId=V100000001_2403191413_177&smsNum=1&price=0.1510&reportTime=20240319141300&submitTime=20240319141324")
  .get()
  .addHeader("accept", "application/json")
  .build();

Response response = client.newCall(request).execute();