For the complete documentation index, see llms.txt. This page is also available as Markdown.

Mark a notification as read

Mark one notification in the caller's own inbox as read, setting its readAt and taking it out of the bell badge. Only the caller's own notifications can be marked read; another user's notification is not reachable here. The call is idempotent: marking a notification that has already been read changes nothing and keeps the time it was first read at. The updated notification is returned.

Required permissions: SERVICE_ORDER

post
/tenants/{tenantUid}/serviceorders/usernotifications/{serviceUserNotificationUid}/read
Authorizations
AuthorizationstringRequired

Access token recevied after user login with a deviceToken

Path parameters
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
serviceUserNotificationUidstringRequired

Reference to a notification in the caller's own inbox

Pattern: ^[A-Za-z0-9-_]+
Responses
200

Example response

application/json

One notification in the caller's own inbox — what the bell in the service workspace shows, and what its badge counts while it is unread. A notification is personal: it belongs to the one user it was written for, and every inbox operation serves the caller's own notifications and nobody else's — the caller is the person the request is authenticated as, which on a shared screen is the person whose PIN unlocked it. This is not the notification the customer gets. The notifications endpoints are the log of the SMS and e-mail Flow sends out — the customer messages, and the e-mail that goes to a member of staff when an entry is written with the notify switch set. What is returned here is the other thing: an in-app message to one member of staff, which never leaves Flow. The e-mail that accompanies it is an ordinary send, recorded in that log like any other. A notification goes to the user the service order is assigned to. When a service order is not assigned to anyone it goes to the service staff of the store that owns it instead — the users holding a role that grants SERVICE_ORDER assigned at that store itself, not at its organization and not tenant-wide — so nothing is left waiting on a person who is not looking at it. Nobody is ever notified about their own action. There is no push delivery: clients read the list and the unread count by polling, every 30 to 60 seconds.

serviceUserNotificationUidstringRequiredPattern: ^[A-Za-z0-9-_]+
typestring · enumRequired

What a notification in a user's inbox is about. Every notification has exactly one type. ASSIGNED_TO_YOU: a service order was handed to the user. NOTE: an entry was written on a service order's timeline with the notify switch set on it, which is the only thing that writes this type — it goes to the user the service order is assigned to, or to the service staff of the store that owns it when nobody is assigned, never to anyone following the case. STATUS_CHANGED: written when somebody else moves a service order that is assigned to the user to another status. PRIORITY_RAISED: written by the service order update when the priority of a service order rises. DUE_TODAY: the day of a service order's readyAtEstimate, in the tenant's timezone, is today. OVERDUE: that day is past and the service order is not finished. Neither is written for a service order that is on a status of the state READY_FOR_PICKUP when the scan reaches it: its work is ready, so nothing is due on it and it is not late. QUOTE_ANSWERED: the customer answered the price they were offered — with the service portal's buttons themselves, or over the counter, on the phone or in writing with staff recording it, which is the same business fact whichever way it reached the store. TERMS_ACCEPTED: reserved for the customer accepting the terms and conditions on a service order, in the service portal, on a counter device or in the store — nothing writes it yet. CUSTOMER_MESSAGE: the customer wrote a message in the service portal. PARTS_RECEIVED: reserved for parts ordered for a service order arriving, so the work that was waiting on them can go on — nothing writes it yet. MOVED_TO_STORE: written when a service order is moved to another store, to the service staff of the receiving store, so the work has arrived at their counter. DUE_TODAY and OVERDUE come out of a worker that scans the open service orders rather than out of something someone did. They carry a dedupe key, so a service order is only ever notified once per kind per day however often the worker runs — the inbox never stacks the same reminder twice. A service order due at 14:00 is reminded about as overdue on the next day's scan, while the overdue search filter counts it late from 14:00.

Possible values:
serviceOrderUidstringRequired

The service order the notification is about, so it can be opened straight from the bell. An empty string on a notification that is not about one service order.

Pattern: ^[A-Za-z0-9-_]*
serviceEventUidstringRequired

The timeline event the notification came out of, such as the note that was written or the message the customer sent. An empty string when no single event lies behind it, as on the due and overdue reminders a scan of the open service orders writes.

Pattern: ^[A-Za-z0-9-_]*
titlestringRequired

The one line the notification is shown by in the bell.

bodystringRequired

What happened, in a sentence, under the title. An empty string on a notification whose title says all there is to say.

readAtstring · date-time · nullableRequired

When the user read the notification. Null while it is unread — an unread notification is exactly one whose readAt is null, and those are what the badge counts.

createdAtstring · date-timeRequired
post/tenants/{tenantUid}/serviceorders/usernotifications/{serviceUserNotificationUid}/read
POST /v2/tenants/{tenantUid}/serviceorders/usernotifications/{serviceUserNotificationUid}/read HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200

Example response

{
  "serviceUserNotificationUid": "text",
  "type": "ASSIGNED_TO_YOU",
  "serviceOrderUid": "text",
  "serviceEventUid": "text",
  "title": "text",
  "body": "text",
  "readAt": "2026-01-01T00:00:00.000Z",
  "createdAt": "2026-01-01T00:00:00.000Z"
}

Last updated

Was this helpful?