The complete open source platform to run your entire marketplace. Storefront, vendor panel, admin console, and integrations in one enterprise-grade platform you own.
TypeScript b2b-marketplacecomposable-commerceecommerceenterpriseheadless-commercemarketplacemedusamedusajsmulti-vendortypescript
---
title: "Invite Seller Member"
api: "POST /admin/sellers/{id}/members/invite"
description: "Invite a new member to a seller's team by email."
---
Creates a member invite for the given email and role.
## Path parameters
<ParamField path="id" type="string" required>The seller's ID.</ParamField>
## Body parameters
<ParamField body="email" type="string" required>Email address to invite.</ParamField>
<ParamField body="role_id" type="string" required>ID of the role assigned once the invite is accepted.</ParamField>
## Response
<ResponseField name="member_invite" type="object">
<Expandable title="properties">
<ResponseField name="id" type="string">The invite's ID.</ResponseField>
<ResponseField name="email" type="string">Invited email address.</ResponseField>
<ResponseField name="role_id" type="string">Role assigned on acceptance.</ResponseField>
<ResponseField name="accepted" type="boolean">Whether the invite was accepted.</ResponseField>
<ResponseField name="token" type="string">Token used to accept the invite.</ResponseField>
<ResponseField name="expires_at" type="string">When the invite expires.</ResponseField>
<ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>
</Expandable>
</ResponseField>
<RequestExample>
```bash cURL
curl -X POST 'http://localhost:9000/admin/sellers/sel_01HXYZABCDEF/members/invite' \
-H 'Authorization: Bearer <token>' \
-H 'Content-Type: application/json' \
-d '{"email": "[email protected]", "role_id": "role_01HXYZROLEAA"}'
```
```ts JS Client
const { member_invite } = await client.admin.sellers.$id.members.invite.mutate({
$id: "sel_01HXYZABCDEF",
email: "[email protected]",
role_id: "role_01HXYZROLEAA",
})
```
</RequestExample>
<ResponseExample>
```json 201
{
"member_invite": {
"id": "meminv_01HXYZINVAA",
"email": "[email protected]",
"role_id": "role_01HXYZROLEAA",
"accepted": false,
"token": "inv_token_abc123",
"expires_at": "2026-06-22T09:00:00.000Z",
"created_at": "2026-06-15T09:00:00.000Z"
}
}
```
</ResponseExample>