API
Türkçe

API reference · Messages

Mark a message as read

Marks a message as read in StockMount.

POST https://out.stockmount.com/api/Integration/SetMessageRead
Changes data

The supported integration is N11 (IntegrationId 2). The message is marked as read only in StockMount; nothing is sent to N11.

Any IntegrationId other than 1 (GittiGidiyor) and 2 (N11) returns 99999 with an empty ErrorMessage.

Specify the message with UserMessageId. The response is successful (Result: true) even if the message is not found; check Unread in GetUserMessages to confirm.

A successful response has no Response field.

Request fields

Field Type Description
ApiCode required string Session code returned by DoLogin.
StoreId required integer ID of the store the message belongs to.
IntegrationId required integer The store's integration ID. 2 for N11.
UserMessageId integer UserMessageId of the message to mark as read. Not validated; if omitted, no message changes but the response is still successful.

Response fields (Response)

On success the Response field is empty; read the outcome from Result.

Error codes for this endpoint

CodeWhen
00003 StoreId or IntegrationId is missing or 0. ErrorMessage contains the field name.
99999 IntegrationId is not supported (other than 1 and 2; ErrorMessage empty) or a server error occurred.

For session errors (00001, 00006) and every other code see error codes.

Related endpoints

Example request

{
  "ApiCode": "API_CODE",
  "StoreId": 1234,
  "IntegrationId": 2,
  "UserMessageId": 88119
}

Example response

{
  "Result": true
}

Try it

The request goes straight from your browser to out.stockmount.com. The ApiCode is not stored by this site; it is kept only while this tab is open.

Get an ApiCode before sending requests.

This endpoint changes real data in your account.

Use ↑ ↓ to move, Enter to open, Esc to close.

Connect to the Out API

DoLogin is called and the returned ApiCode is kept in this tab. Your API password is never sent to this site.