Mobile Originated Messages#
Mobile Originated Message (MO message) is sent to the Partner’s configured URL.
Request example
1 {
2 "transactionId": "20190418175651967013",
3 "destAddr": "0000",
4 "sourceAddr": "72101234567",
5 "type": "SMS",
6 "message": "A message for the Partner",
7 "partCount": 1,
8 "receivedDate": "2022-06-22T10:22:45+0300"
9 }
Request example
1 {
2 "transactionId": "20190418175651967019",
3 "destAddr": "0000",
4 "sourceAddr": "72101234567",
5 "type": "VIBER",
6 "partCount": 1,
7 "mediaURL": "http://url/image_001.jpg",
8 "receivedDate": "2022-06-22T10:22:45+0300"
9 }
Request example
1{
2 "transactionId": "20190418175651967019",
3 "destAddr": "0000",
4 "sourceAddr": "72101234567",
5 "type": "VIBER",
6 "message": "Message text",
7 "partCount": 1,
8 "mediaURL": "http://url/image_001.jpg",
9 "receivedDate": "2022-06-22T10:22:45+0300"
10 }
Request example
1 {
2 "transactionId": "20190418175651967014",
3 "destAddr": "0000",
4 "sourceAddr": "72101234567",
5 "type": "WHATSAPP",
6 "partCount": 1,
7 "receivedDate": "2022-09-22T10:22:45+0300",
8 "mediaURL": "https://image.service/WHATSAPP_TEST/3GfxBJRj-bN3QA.jpg"
9 }
Request example
1 {
2 "transactionId": "20190418175651967014",
3 "destAddr": "0000",
4 "sourceAddr": "72101234567",
5 "type": "WHATSAPP",
6 "message": "Image caption",
7 "partCount": 1,
8 "receivedDate": "2022-09-22T10:22:45+0300",
9 "mediaURL": "https://image.service/WHATSAPP_TEST/3GfxBJRj-bN3QA.jpg"
10 }
Request parameters
Parameter |
Type |
Description |
|---|---|---|
transactionId |
string |
Transaction ID generated by the Service Provider system. |
destAddr |
string |
Service number where the subscriber sent the message to. |
sourceAddr |
string |
Subscriber’s number. |
type |
string |
Type of message. You should specify: SMS. |
message |
string |
Message text from subscriber to the Partner. |
partCount |
integer |
Amount of message parts |
receivedDate |
string |
Date of which this MO message was received from the subscriber. |
Request parameters
Parameter |
Type |
Description |
|---|---|---|
transactionId |
string |
Transaction ID generated by the Service Provider system. |
destAddr |
string |
Service number where the subscriber sent the message to. |
sourceAddr |
string |
Subscriber’s number. |
type |
string |
Type of message. You should specify: Viber. |
partCount |
integer |
Amount of message parts. |
receivedDate |
string |
Date of which this MO message was received from the subscriber. |
mediaURL |
string |
Link to an image. The parameter is optional if there is no attachment. |
Request parameters
Parameter |
Type |
Description |
|---|---|---|
transactionId |
string |
Transaction ID generated by the Service Provider system. |
destAddr |
string |
Service number where the subscriber sent the message to. |
sourceAddr |
string |
Subscriber’s number. |
type |
string |
Type of message. You should specify: Viber. |
message |
string |
Message text from subscriber to the Partner. Amount of characters: no more than 2000. Important! If МО message doesn’t contain the message text, then the message parameter in JSON should be omitted. |
partCount |
integer |
Amount of message parts. |
receivedDate |
string |
Date of which this MO message was received from the subscriber. |
mediaURL |
string |
Link to an image. The parameter is optional if there is no attachment. |
Request parameters
Parameter |
Type |
Description |
|---|---|---|
transactionId |
string |
Transaction ID generated by the Service Provider system. |
destAddr |
string |
Service number where the subscriber sent the message to. |
sourceAddr |
string |
Subscriber’s number. |
type |
string |
Type of message. You should specify: WhatsApp. |
partCount |
integer |
Amount of message parts. |
receivedDate |
string |
Date of which this MO message was received from the subscriber. |
mediaURL |
string |
Link to an image. The parameter is optional if there is no attachment. |
Request parameters
Parameter |
Type |
Description |
|---|---|---|
transactionId |
string |
Transaction ID generated by the Service Provider system. |
destAddr |
string |
Service number where the subscriber sent the message to. |
sourceAddr |
string |
Subscriber’s number. |
type |
string |
Type of message. You should specify: WhatsApp. |
message |
string |
Image caption. Amount of characters: no more than 1024. Important! If МО message doesn’t contain the message text, then the message parameter in JSON should be omitted. |
partCount |
integer |
Amount of message parts. |
receivedDate |
string |
Date of which this MO message was received from the subscriber. |
mediaURL |
string |
Link to an image. The parameter is optional if there is no attachment. |