LogoLogo
DocsMiatel Platform
  • API
  • SMS API
    • Send SMS
    • Receive SMS status
    • Receive SMS
    • Response codes & errors
  • Flash Call API
    • Send Flash Call
  • Statistics API
    • Apache Kafka Bridge
Powered by GitBook
On this page
  • Refer to our link
  • Response Headers
  • Response body
  • Possible code statuses of the message
  • Response example
  • Provide a link
  • Link example
  • Supported parameters

Was this helpful?

Export as PDF
  1. SMS API

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

application/json

Authorization

Bearer <token>

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

200400{"currency": "EUR","rate": "0.1","segments": 1,"status": 2}

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.

PreviousSend SMSNextReceive SMS

Last updated 11 months ago

Was this helpful?