Skip to main content
PATCH
/
notifications
/
{id}
/
read
Mark a notification as read
curl --request PATCH \
  --url https://api.salesive.com/api/v1/notifications/{id}/read \
  --header 'Authorization: Bearer <token>'
{
  "status": 200,
  "success": true,
  "message": "Notification marked as read",
  "data": {
    "_id": "66b3f0a1c2d4e5f600112233",
    "user": "66a1b2c3d4e5f60011223344",
    "shop": "66a0a1b2c3d4e5f600112200",
    "title": "New order received",
    "message": "Order #1042 was just placed for $59.99.",
    "type": "order",
    "read": true,
    "readAt": "2026-06-28T09:45:00.000Z",
    "data": {
      "orderId": "66b3efaa11223344556677"
    },
    "createdAt": "2026-06-28T09:14:00.000Z",
    "updatedAt": "2026-06-28T09:45:00.000Z"
  }
}
Marks one notification (by id) as read and returns it. Only notifications belonging to the merchant on the bound store can be marked; an unknown id returns 404.

Authorizations

Authorization
string
header
required

Installed-app access token (prefix app_), issued by the OAuth install flow. The store is bound to the token server-side — never send a shop id.

Path Parameters

id
string
required

The id of the notification to mark as read.

Response

The updated notification.

Standard Salesive response envelope. The operation-specific payload is carried in data.

status
integer
required

HTTP status code, echoed in the body.

success
boolean
required

Whether the request succeeded.

message
string
required

Human-readable result message.

data
object

A single in-app notification belonging to the merchant on the store.