• Notifications
  • Messages
  • Complaints
  • Offers
  • Chats
  • Logout
  • РУС ENG

API

Correspondence with the administration

Getting a list of messages

To receive message notifications, you can optionally use webhook


The URL for sending a request: https://api.digiseller.com/api/messages/v2?token={token}
Method: GET
Request headers: Accept: "application/json"
Request parameters:
NameUseComment
token access token,
min. permission: [ Correspondence with the administration ]: View
method to get access token
date_fromFilter by message dateDD.MM.YYYY h:mm:ss
optional parameter
countThe maximum number of records to return. Does not apply if the range id_from - id_to or date_from - id_to is specified.integer
optional parameter
Default value is 100
id_fromMinimum message idinteger
optional parameter
id_toMaximum message idinteger
optional parameter
corr_idCorrespondent ID. To receive messages from administrators, enter the value -1.integer
optional parameter
only_unreadReturn only unread messagesboolean. required field
default value is 1
Response format:
[ { "id": 11223344, "id_to": 12345, "id_from": 0, "date": "2018-11-20 11:48:20", "text": "message text", "is_read": false, "shop_id": 0, "shop_name": "shop name", "seller_full_name": "seller full name" "seller_nickname": "Digiseller" }, ... ]
Response parameters:
NameUseComment
idMessage Id
id_toCorrespondent ID to whom the message was sent
id_fromId of the correspondent from whom the message was sent
dateMessage date
textMessage text
is_readMessage read
shop_idShop Id
shop_nameShop name
seller_full_nameSeller full name
seller_nicknameSeller nickname