---
search:
  tags:
    - Operator
    - POST
seo:
  description: >-
    Creates the Sarvex-side member record {email, role} and… Reference for the
    POST /operator/merchants/{merchant_id}/members endpoint in the Sarvex V1
    API.
sidebar:
  label: Invite a member to a merchant (authorize an email)
  badge: POST
title: Invite a member to a merchant (authorize an email)
type: openapi-operation
---
Creates the Sarvex-side member record `{email, role}` and emails a sign-in link. **This is the
invite — there is no separate IdP step.** Sarvex authorizes by email; the IdP (Kinde, including
social sign-in) authenticates. On first sign-in the verified token's email claim is matched to this
record, resolving the merchant + role. No password is set or held by Sarvex.

`POST /operator/merchants/{merchant_id}/members`

**Request body** (`application/json`, required)

- `email` (string<email>, required)
- `role` (string, required)

Request body example:

```json
{
  "email": "user@example.com",
  "role": "owner"
}
```

**Responses**

- `201` — Member invited; sign-in link sent.
- `403` — Authenticated but not permitted (e.g. non-operator on an operator route).
- `409` — A member with this email already exists for the merchant.

Response example, 201:

```json
{
  "user_id": "string",
  "email": "user@example.com",
  "role": "owner",
  "status": "active"
}
```

Response example, 403:

```json
{
  "error": {
    "code": "forbidden",
    "message": "Operator role required.",
    "details": null
  }
}
```
