Receive SMS status
Last updated
Last updated
There are two ways to get SMS status:
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.
Name | Value |
---|---|
Name | Type | Description |
---|---|---|
Status | Status name | Description |
---|---|---|
You provide a link to which we will refer to inform the status of the subscriber.
https://api.client.com/miatel/res.php?id={{id}}&dlvr={{dlvrd}}&status={{status}}&{{statusname}}
The URI string can contain these keywords to be replaced by real values.
Field | Type | Description |
---|---|---|
Content-Type
application/json
Authorization
Bearer <token>
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
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
{{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.