Cascading Message Sending#
Description#
Cascading message sending is the sequential sending of a message via different channels over the message’s lifetime.
The message is resent in case of receiving a status indicating that the message was not successfully sent.
The service supports the following types of cascading message:
FlashingCall;
Push;
SMS;
Viber;
VK;
WhatsApp.
When sending it can be any sequence of message types.
The order and options for such resending can be configured on the Service Provider’s side at the request of the Partner. In this case this additional sending of messages performs with the default parameters, and no additional parameters need to be passed in the request body.
It is possible to pass the desired cascade options using additional parameters of the HTTP request.
Request Parameters#
Possible parameters of the HTTP request for cascade message resending.
Parameter Name |
Type |
Description |
---|---|---|
order_list |
string |
A parameter that defines the sequence of message sending. More detailsMessage types should be listed in the order they are to be sent. Possible values (case insensitive):
Example: |
<type>_resendCond |
string |
A parameter that defines the conditions for triggering a resend. More details
Here Possible values (case insensitive):
Important! The value Using a combination of parameters, various settings can be defined for different types of messages.
Example 1. Standard values with arbitrary order of message types:
In this case, a resend will be performed to VK if the status
Example 2. In this case, only the first message of the cascade (Flashing Call)
will be sent:
The cascaded SMS will not be sent, as the triggering of a cascade AFTER the
Flashing Call message is prohibited ( |
<type>_resendSn |
string |
A parameter that defines the service names from which messages will be sent in resend mode. More details
Here
Example.
The service names used must be available for the Partner. To use service names, please contact your account manager. |
<type>_resendText |
string |
A parameter that defines the alternative message text for different types of messages that will be sent in resend mode. More details
Here
Example:
The message text is subject to the same restrictions as the corresponding types of individual messages (see the relevant sections “Request Parameters”). |
<type>_resendValid |
string |
A parameter that defines the lifespan for different types of messages sent in resend mode. More details
Here The lifespan means the interval during which the operator will attempt to deliver the message to the recipient. If the message lifespan has expired and the message has not been delivered, it will no longer be delivered to the recipient.
The value format for the parameter is:
Possible values for
Acceptable lifespan ranges for different types of messages:
|
shorten_list |
string |
A parameter designed to control the shortening of links in various types of cascaded messages. More details
Important! This parameter will only be processed if the
The value of the
Possible values (case insensitive):
Example: By default, the Link Shortening Service is not available. To enable it, please contact your account manager. |
Примечание
An example of the processing procedure for configured cascade sending VK → Viber → SMS:
The message will be sent into VK.
If the message is successfully delivered, the cascading is completed (go to step 6).
If the message is not delivered due to an error or within the specified time to live, the message will be resent via Viber.
If the message is successfully delivered, the cascading is completed (go to step 6).
If the message is not delivered due to an error or within the specified time to live, an SMS message will be sent.
The Partner receives the final status of message sending (optionally - all intermediate statuses).