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
- Type: integercustomer
_account _id requiredThe organization's customer account ID. Must match the signed-in account.
Headers
- Type: stringAcceptrequired
Type of content accepted by the API (application/json in most cases)
- Type: stringApplicationrequired
Application key for specific client app
- Type: stringContent
- Type requiredContent-Type header
- Type: stringA
P I - V E R S I O N requiredVersion of the API to be used
- Type: stringAuthorization
Authorization header
- Type: stringX
- Request - I D requiredUnique request identifier
Body
- Type: stringFormat: emailemailrequired
Responses
- application/json
- 401
Missing or invalid token, or the path account is not the signed-in account.
- 404
The account is not an organization account.
- 422
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.
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
}