Mark all notification for an agent as read


Mark all notifications as read for an agent ID

Settings:

URL

https://partners.99digital.co.il/api/online/markAllNotificationsRead

Method

JSON via POST

Header

Authorization: Bearer {{access_token}}

*The access_token can be received from settings->get access token API.


Body:

Parameter

Description / Example

accountID

The account ID you wish to login to

agentID

The Agent ID you wish to mark all his conversations as read

server

The server subdomain hosting the account


Response:


{
"status": "OK",
"accountID": 4142,
"server": "online",
"agentID": 12
}


Response-Explain:

Parameter

Description

status

OK or FAIL

"OK" means the request was successful.

"Fail" means error.

accountID

The account ID you provided

agentID

The agent ID you provided

server

The server address

reason

'reason' is the status explanation in case of FAIL

1

not FAIL. the status is OK

2

Wrong credentials

3

Access token does not exist or expired, please generate another one from Settings - Get access token API

13

you need to use POST method.

29

accountID is invalid or wrong

32

You cant connect to a suspended account

34

server is invalid or wrong

35

agentID is invalid or wrong