Invite a person to the agency's staff
Invites a person to the staff of the agency the request acts for, as an advisor or an admin (role), by email, phoneNumber, givenName and familyName, and sends them the invitation unless sendMessage is false. A person who already has a staff account joins the agency at once instead, with the role sent, and the answer is that membership with alreadyMember true; otherwise the answer is the pending invitation. Travelers are invited from the CRM (POST /crm/travelers/{travelerId}/invitation), and a contact that belongs to a traveler's account is refused with 409 ERROR_USER_IS_TRAVELER unless that account was opened from a staff invitation. A body that fails the schema, such as one with another role or with no phone, email or name, is refused with 400 ERROR_BODY_VALIDATION. Agency admins only; only Nicer staff name another agency with companyName.
Authorization
Request body JSON required
Returns
200
OK
Any of the following:
- Invite
- object