Cascading Message Sending#

Description#

Cascading message sending is the sequential sending of a message via different channels over the message’s lifetime (ttl parameter).

The message is resent in case of receiving a status indicating that the message was not successfully sent (if no “DELIVERED“ or “READ“ statuses of the state parameter are received).

The service supports the following types of cascading message:

  • FLASHINGCALL (VOICECODE);

  • MAX;

  • PUSH;

  • SMS;

  • TELEGRAM;

  • TGCODE;

  • VIBER;

  • VK;

  • WHATSAPP.

When sending it can be any sequence of message types.

The default message lifetime is set when configuring the integration connection or transmitted in the ttl parameter when sending the message. The lifetime for each message from the cascade chain is set separately.

Resending of the FlashingCall (Voice Code) type message is possible only for the “DELIVERED“ status.

To receive reports on all types of messages when sending a cascading message chain you need to specify the value “1“ in the registeredDelivery parameter.

Cascading message sending is not available by default. To enable it the Partner needs to contact his supervising manager.

Request Examples#

 1  {
 2    "login":"YOUR_LOGIN",
 3      "password":"YOUR_PASSWORD",
 4      "id":"8770631",
 5      "destAddr":"Subscriber's_Number",
 6      "message":{
 7        "type":"PUSH",
 8        "data":{
 9          "title":"Push message header",
10          "text":"Notification text",
11          "serviceNumber":"SENDER'S_NAME",
12          "ttl":2
13        }
14      },
15      "cascadeChainLink": {
16        "state": "DELIVERED",
17        "message": {
18          "type": "SMS",
19          "data": {
20            "text": "Text of SMS to be resent",
21            "serviceNumber": "SMS_SENDER'S_NAME",
22            "ttl": 2
23          }
24        }
25      }
26    }

Request Parameters#

In order to send the chain of messages of various types, an additional block of CascadeChainLink parameters shall be transmitted in the request.

Parameter

Required

Type

Description

cascadeChainLink

no

object

Cascading message parameters.

{cascadeChainLink}
state

yes

enum

Status by which the message is resent.

More details

Possible values are:

  • DELIVERED (to resend the message if the message is not delivered during the message lifetime);
  • READ (to resend the message if the message is not read during the message lifetime).
{cascadeChainLink}
message

yes

object

Parameters of the message to be resent.

More details

Similar to the message object of the main message.

{cascadeChainLink}
nextLink

no

object

Parameters of the next message to be resent in the chain.

More details

Similar to the cascadeChainLink object.