GET
Get notification preferences for a pharmacy

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.

Path Parameters

pharmacyId
string<uuid>
required

Response

200 - application/json

OK

pharmacyId
string<uuid>
channels
object
events
object

Per-event toggles. Each key is a notification type — pharmacy_AsSeller_BuyerPurchasedMarketplaceListing, and so on — not a webhook event name; the two lists are different. PUT accepts the keys case-insensitively. Campaign preferences are managed elsewhere and are neither returned here nor settable: posting one changes nothing and it will not appear on the next GET.