The SMS webhook.
Request Method
- GET
Webhook payload object common properties
Key | Type | Description |
---|---|---|
msgid | String | unique identifier for this text message |
mobile | String | to phone numebr (country code + number,e.g.,62xxxxxxxxx) |
status | String | status of message (e.g.,DELIVRD、UNDELIV、REJECTD、EXPIRED) |
batchId | String | unique identifier for a batch text messages |
submitTime | String | request time of message, format is yyyyMMddHHmmss |
reportTime | String | time of the message DR, format is yyyyMMddHHmmss |
smsNum | String | numbers of split message |
price | String | price 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();