Skip to main content

Viber 2 Way message status

Example of request to receive Viber 2 Way message status. Viber 2 Way service is designed to get feedback on a message from a consumer.

URI: /api/json.php

All requests to API are sent in JSON format using the POST method.

Header parameters

Requests must contain header Content-Type: application/json, otherwise, the request will be considered invalid even if it has valid JSON.

Request example

{
"auth": "bb56a4369eb19***cfec6d1776bd25",
"data": [
{
"type": "status",
"id": 100500
}
]
}

Response examples

HTTP Status Code: 200
Content Type: JSON application/json

{
"success": true,
"data": [
{
"success": true,
"data": {
"id":10500,
"type": "viber",
"status": "REPLIED",
"replies": [
{
"datetime": "2022-05-01T12:01:02+03:00",
"message": "Please wait"
},
{
"datetime": "2022-05-03T14:21:17+03:00",
"media": {
"url": "https://url.com/home/vibermedia/",
"filename": "invoice.pdf",
"filesize": 67983
}
},
{
"datetime": "2022-05-03T14:21:17+03:00",
"message": "Correct invoice",
"media": {
"url": "https://url.com/home/vibermedia/",
"filename": "invoice.pdf",
"filesize": 68934
}
}
]
}
}
]
}