---
title: "Invite a customer"
method: POST
path: "/api/products/{productId}/customers/invitations"
tags: ["Product Customers"]
---

# Invite a customer

`POST /api/products/{productId}/customers/invitations`

Invites a customer by email. An invitation email is sent to the provided address.

## Path parameters

- `productId` string, required

## Request body

- object
  - `email` string, email, required
  - `tags` string[]

## Response `201`

Success.

- Customer
  - `userId` string
  - `email` string
  - `name` string
  - `avatar` object
  - `membershipId` string
  - `membershipStatus` string
  - `subscriptionMethod` string
  - `completedLessons` string[]
  - `downloaded` boolean
  - `enrolledAt` string, date-time
  - `updatedAt` string, date-time

## Other responses

- `400` — Unsupported customer invitation field or missing email.
- `422` — Customer could not be invited.

---

[API](https://skmtc.net/codelitdev/apis/courselit-rest-api.md) · [All operations](https://skmtc.net/codelitdev/apis/courselit-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/codelitdev/courselit-rest-api/versions/3b48f60910dc/schema)
