GET api/v2/messages/{sessionID}/{corrType}/{corrID}/{lastID}?getDeleted={getDeleted}
Get seller and correspondent messages
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| sessionID |
Session ID (obtained at login) |
string |
Required |
| corrType |
Correspondent type ("support", "admin", "user", "buyer", "visitor", "anonym") |
string |
Required |
| corrID |
Correspondent ID |
integer |
Required |
| lastID |
ID after which to return |
integer |
Required |
| getDeleted |
Whether to return deleted messages or not |
boolean |
Default value is False |
Body Parameters
None.
Response Information
Resource Description
MessagesResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| retval |
Return code (0 - ok, otherwise - error) |
integer |
None. |
| desc |
Text explanation of return code (error description) |
string |
None. |
| total |
Number of messages for this user |
integer |
None. |
| lastviewed |
Flag indicating whether the last message was viewed by the correspondent |
integer |
None. |
| lastdateviewed |
Date when the last message was viewed by the correspondent |
string |
None. |
| lastdateviewedutc |
Date when the last message was viewed by the correspondent in UTC |
string |
None. |
| maxrefid |
Maximum ID of message containing link to the page from which the user came |
integer |
None. |
| lock |
Cannot send a message to this user |
boolean |
None. |
| messages |
List of latest messages from correspondence with this user |
Collection of Message |
None. |
Response Formats
application/json, text/json, application/xml, text/xml
Sample not available.