Receive SMS status
There are two ways to get SMS status:
Refer to our link
It is required to refer to our link https://sms-hub.miatel.ru:8008/sms_status?id={{message_id}}
where {{message_id}}
is the received message id when sending the request.
Response Headers
Name | Value |
---|---|
Content-Type |
|
Authorization |
|
Response body
Name | Type | Description |
---|---|---|
currency | string | Currency of use |
rate | string | Used rate plan if set |
segments | number | Number of short messages delivered. The value may be padded with leading zeros. |
status | number | The final code status of the message |
Possible code statuses of the message
Status | Status name | Description |
---|---|---|
1 | ENROUTE | The message is in enroute state |
2 | DELIVERED | Message is delivered to destination |
3 | EXPIRED | Message validity period has expired |
4 | DELETED | Message has been deleted |
5 | UNDELIVERABLE | Message is undeliverable |
6 | ACCEPTED | Message is in accepted state (i.e. has been manually read on behalf of the subscriber by customer service) |
7 | UNKNOWN | Message is in invalid state |
8 | REJECTED | Message is in a rejected state |
Response example
Provide a link
You provide a link to which we will refer to inform the status of the subscriber.
Link example
https://api.client.com/miatel/res.php?id={{id}}&dlvr={{dlvrd}}&status={{status}}&{{statusname}}
Supported parameters
The URI string can contain these keywords to be replaced by real values.
Field | Type | Description |
---|---|---|
{{id}} | string | The message ID allocated to the message by the SMSC when originally submitted. |
{{from}} | string | Source side |
{{to}} | string | Destination side |
{{status}} | number | The final code status of the message. |
{{sub}} | number | Number of short messages originally submitted. The value may be padded with leading zeros. |
{{dlvrd}} | number | Number of short messages delivered. The value may be padded with leading zeros. |
{{statusname}} | string | The final status of the message. |
Last updated