> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mercurjs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Event reference

> Events emitted by the Store domain, for subscribers and side effects.

The Store domain emits events as stores and members change. Subscribe to them to
run side effects such as sending notifications, syncing external systems, or
kicking off follow-up workflows, instead of polling.

```ts title="src/subscribers/store-approved.ts" theme={null}
import type { SubscriberArgs, SubscriberConfig } from "@medusajs/framework"

export default async function storeApprovedHandler({
  event,
  container,
}: SubscriberArgs<{ id: string }>) {
  const sellerId = event.data.id
  // ...send a welcome email, provision resources, etc.
}

export const config: SubscriberConfig = {
  event: "seller.approved",
}
```

## Store events

| Event               | Emitted when                   | Payload  |
| ------------------- | ------------------------------ | -------- |
| `seller.created`    | A store is created             | `{ id }` |
| `seller.updated`    | A store's profile changes      | `{ id }` |
| `seller.approved`   | A store is approved (`→ open`) | `{ id }` |
| `seller.suspended`  | A store is suspended           | `{ id }` |
| `seller.terminated` | A store is terminated          | `{ id }` |

## Member events

| Event                    | Emitted when                 | Payload  |
| ------------------------ | ---------------------------- | -------- |
| `member_invite.created`  | A team invite is sent        | `{ id }` |
| `member_invite.accepted` | An invite is accepted        | `{ id }` |
| `seller_member.created`  | A member is added to a store | `{ id }` |
