POST Invite Organization Member

​

Invites someone to order under the organization, by email.

Two things can happen. If the email already belongs to a registered customer of the brand, that person is added as an active member straight away and no invitation is created. Otherwise an invitation is created, valid for seven days, and an email is sent inviting them to sign up.

Either way the response carries no body beyond the status envelope. Call GET /organizations/{customer_account_id}/members afterwards to see the result — the new member, or the pending invitation.

An invitation is accepted by registering through POST /customers/register with the invitation_token from the email link. There is no separate accept endpoint.

Path Parameters

  • The organization's customer account ID. Must match the signed-in account.

Headers

  • Type of content accepted by the API (application/json in most cases)

  • Application key for specific client app

  • Content-Type header

  • Version of the API to be used

  • Authorization header

  • Unique request identifier

Body

required
application/json

Responses

  • application/json
  • Missing or invalid token, or the path account is not the signed-in account.

  • The account is not an organization account.

  • The email is missing or malformed, is already a member, already has a pending invitation, belongs to another brand, or is itself an organization account.

Request Example for post/organizations/{customer_account_id}/invite
curl https://api-public-demo.menu.app/api/organizations/9031/invite \
  --request POST \
  --header 'Accept: application/json' \
  --header 'Application: application-key' \
  --header 'Content-Type: application/json' \
  --header 'API-VERSION: ' \
  --header 'X-Request-ID: c10b4a70-6274-490d-80a0-03e7bb826937' \
  --data '{
  "email": "jane@example.com"
}'
{
  "status": "OK",
  "code": 200
}