Single Member Actions
Invite Member
POST
/
v1
/
members
This invites a new member to your platform, when they are created they will have the status of invited
, if their email already has an associated Onsi accout their status will go straight to active
.
Authorizations
X-API-KEY
string
headerrequiredHeaders
x-idempotency-key
string
Unique key to ensure idempotency of the request
Body
application/json
email
string
requiredA unique email address for the member
firstName
string
requiredlastName
string
requiredphone
string
An optional phone number for the member
workerId
string
Unique ID provided by API consumer, must be unique across all members (active, invited and inactive)
tier
string
requiredTier name for the member
accountDetails
object
enablePayroll
boolean
Response
201 - application/json
email
string
requiredmemberId
string
requiredOnsi's ID of the member
firstName
string
requiredlastName
string
requiredphone
string | null
requiredtier
string
requiredTier name for the member
workerId
string | null
requiredUnique ID provided by API consumer, must be unique across all members (active, invited and inactive)
status
enum<string>
requiredThe status of the member.
Available options:
active
, invited
, inactive
accountDetails
object
requiredenablePayroll
boolean
required