---
updatedAt: 2026-04-08T00:12:31.000Z
agentTools:
  projectIndex: https://docs.pelcro.com/v2.4/llms.txt
---

# Invite member

Invite a new customer as a member of a membership subscription.

## Overview

Send an email invitation to join a group subscription. Creates a pending membership that becomes active when the invited person registers and accepts.

**Example:** A company administrator invites a new employee by email. The employee receives a personalized invitation to register and claim their membership.

***

## Validation Constraints

| Field             | Constraint                                                                 |
| ----------------- | -------------------------------------------------------------------------- |
| `email`           | Must be a valid email in RFC 2822 format (max 255 characters)              |
| `email`           | Must not already be invited to this subscription (unique per subscription) |
| `email`           | Must not belong to an existing active member of this subscription          |
| `email`           | Subject to the subscription's `member_seat_capacity` limit                 |
| `subscription_id` | Must reference a membership-type subscription on the current site          |
| `old_provider_id` | Must be unique per account                                                 |

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "core-api",
    "version": "1.88"
  },
  "servers": [
    {
      "url": "https://www.pelcro.com/api/v1/core"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "x-bearer-format": "bearer"
      },
      "sec1": {
        "type": "apiKey",
        "in": "query",
        "name": "site_id"
      }
    }
  },
  "security": [
    {
      "sec0": [],
      "sec1": []
    }
  ],
  "paths": {
    "/memberships/invite": {
      "post": {
        "summary": "Invite member",
        "description": "Invite a new customer as a member of a membership subscription.",
        "operationId": "api-core-invite-member",
        "parameters": [
          {
            "name": "site_id",
            "in": "query",
            "description": "The unique identifier of the site associated with your account.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 1
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "default": "Bearer eyJ***"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "email",
                  "subscription_id"
                ],
                "properties": {
                  "email": {
                    "type": "string",
                    "format": "email",
                    "maxLength": 255,
                    "description": "Email address for the invitation. Must be a valid RFC 2822 email. Must not already be invited to this subscription. Subject to the subscription's seat capacity limit."
                  },
                  "subscription_id": {
                    "type": "integer",
                    "description": "The subscription ID. Must be a membership-type subscription on the current site.",
                    "format": "int32"
                  },
                  "old_provider_id": {
                    "type": "string",
                    "description": "Identifier from a previous provider. Must be unique per account."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created.",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"data\": {\n    \"id\": 45,\n    \"user_id\": null,\n    \"subscription\": 63,\n    \"site_id\": 4,\n    \"subscription_id\": 63,\n    \"address_id\": 0,\n    \"status\": \"pending\",\n    \"created_at\": 1659448736,\n    \"updated_at\": 1659448736\n  },\n  \"status\": \"success\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "integer",
                          "example": 45
                        },
                        "user_id": {
                          "type": "integer",
                          "nullable": true,
                          "example": 123,
                          "description": "The customer ID. Null for pending invitations."
                        },
                        "subscription": {
                          "description": "The subscription ID (integer) by default. When expand=subscription is used, becomes a full subscription object.",
                          "oneOf": [
                            {
                              "type": "integer",
                              "example": 63
                            },
                            {
                              "type": "object",
                              "description": "Full subscription object when expanded"
                            }
                          ]
                        },
                        "site_id": {
                          "type": "integer",
                          "example": 4
                        },
                        "subscription_id": {
                          "type": "integer",
                          "example": 63
                        },
                        "address_id": {
                          "type": "integer",
                          "example": 0,
                          "description": "Address ID. Returns 0 when no address is set."
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "pending",
                            "active"
                          ],
                          "example": "active"
                        },
                        "created_at": {
                          "type": "integer",
                          "nullable": true,
                          "example": 1659448736,
                          "description": "Unix timestamp"
                        },
                        "updated_at": {
                          "type": "integer",
                          "nullable": true,
                          "example": 1659448736,
                          "description": "Unix timestamp"
                        }
                      }
                    },
                    "status": {
                      "type": "string",
                      "example": "success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Validation error.",
            "content": {
              "application/json": {
                "examples": {
                  "Duplicate invitation": {
                    "value": "{\n  \"errors\": {\n    \"email\": [\n      \"This email was already used to create an invitation to join this group subscription.\"\n    ]\n  }\n}"
                  },
                  "Seat capacity reached": {
                    "value": "{\n  \"errors\": {\n    \"email\": [\n      \"Group subscription member seat capacity of 5 is reached.\"\n    ]\n  }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "object"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated.",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": {
                      "error": "Unauthenticated."
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```

# Sibling pages

* [List members](https://docs.pelcro.com/v2.4/reference/api-core-list-memberships.md)
* [Create member](https://docs.pelcro.com/v2.4/reference/api-core-create-membership.md)
* [Get member](https://docs.pelcro.com/v2.4/reference/api-core-get-membership.md)
* [Update member](https://docs.pelcro.com/v2.4/reference/api-core-update-membership.md)
* [Delete member](https://docs.pelcro.com/v2.4/reference/api-core-delete-membership.md)
* [IP authorization](https://docs.pelcro.com/v2.4/reference/api-core-member-ip-authorization.md)