PATCH
Mark read/unread/dismissed

Authorizations

X-InStockRx-Api-Key
string
header
required

Scoped partner API key. Send the whole key, e.g. ik_live_a1b2c3…, on every request.

Headers

X-InStockRx-User-Id
string<uuid>
required

The InStockRx user whose notifications or preferences you are acting on. Required: these are per-person settings, not per-pharmacy ones. Omitting it is 400 missing-user-context.

X-Pharmacy-Id
string<uuid>

Which pharmacy in your group you are acting as. Required whenever your group holds more than one pharmacy — omitting it is then 400 missing-pharmacy-context. With exactly one pharmacy it may be omitted, but send it anyway: the call starts failing the day a second pharmacy is added.

Idempotency-Key
string

Makes this request safe to retry. A retry carrying the same key replays the original response rather than acting twice, and is marked X-Idempotent-Replay: true. The same key with a different body is 409. Records are kept for 24 hours.

Required string length: 1 - 255
If-Match
string

The ETag from your most recent read of this resource, to avoid overwriting a change someone else made in the meantime. A stale value is 412 stale-resource and nothing is modified. * means "any current version". Omitting it is not an error — it means last write wins.

Examples:

"W/\"AAAAAAAAB9E=\""

"*"

Path Parameters

id
string<uuid>
required

Body

application/json
state
enum<string>
Available options:
unread,
read,
dismissed

Response

200 - application/json

OK

id
string<uuid>
required
type
string
required
Examples:

"listing.purchased"

"return.requested"

state
enum<string>
required
Available options:
unread,
read,
dismissed
createdAt
string<date-time> | null
required

Null on rows created before this field existed; always set on new ones.

title
string
body
string
correlationId
string

Groups all notifications spawned by one underlying event.

targetResource
object
readAt
string<date-time>
dismissedAt
string<date-time>