MAX#

This section describes the features of sending messages to subscribers' devices with the MAX messenger installed. Partners can interact with their customers through a bot in this messenger.

Currently, the Service Provider ensures:

  • sending text messages;

  • receiving message delivery statuses;

  • resending messages via SMS (cascading message): in case of non-delivery to MAX.

Sending Request#

The content of the request complies with the requirements for a standard request (see Request Structure).

 1 {
 2   "login":"YOUR_LOGIN",
 3   "password":"YOUR_PASSWORD",
 4   "destAddr":"SUBSCRIBER'S_NUMBER",
 5   "message":{
 6     "type":"MAX",
 7     "data":{
 8       "text":"MESSAGE TEXT.",
 9       "serviceNumber":"SENDER'S_NAME"
10     }
11   }
12 }

Response#

After sending a message, the Service Provider synchronously returns a response.

Successful MAX Sending#

In case of successful sending, the HTTP code 200 OK is returned.

1  {
2     "mtNum": "7390612217"
3     "id": "1234567"
4  }

MAX Sending Errors#

For results with errors, a response HTTP code will differ from 200 OK (see Error Codes).

1  {
2      "error": {
3          "code": 8,
4          "description": "destAddr is not correct"
5      },
6      "extendedDescription": "Invalid number: 7999999999999999"
7  }

Error Codes#

Code

Description

HTTP-code

1

Service is unavailable

503

2

Invalid IP-address

403

3

Too many connections

429

4

Invalid request

400

5

Invalid login

401

6

Invalid password

401

7

serviceNumber is not defined

400

8

destAddr is not correct

406

9

Message type is not correct

406

10

Prohibited sending duplicates

409

11

Invalid TTL

406

100

100

500

Message Delivery Statuses#

To receive statuses of messages, you need to set up a Delivery Status Service.