Invite Members
POST
/member/inviteAccount is created upon invitation. Sign in to complete activation and verify phone or email to receive notifications through corresponding channels
Request
Header Params
Content-Type
string
required
Example:
application/json
Body Params application/json
members
array [object {5}]
Member List
Maximum 20 invites per request, 200 per day
<= 20 items
email
string
Email Address
At least one of email or phone is required. Email must be verified to receive notifications. The system will guide users to complete or verify information upon sign in
phone
string
Phone Number
At least one of email or phone is required. Phone number must be verified to receive notifications. The system will guide users to complete or verify information upon sign in
country_code
string
Country Code
Default is CN
member_name
string
Member Name
Required when phone is provided; defaults to email prefix when email is provided. Member name must be unique within the account
role_ids
array[integer]
Account Role ID List
Not set if not provided
Example
{
"members": [
{
"email": "string",
"phone": "string",
"country_code": "string",
"member_name": "string",
"role_ids": [
0
]
}
]
}
Request samples
Responses
成功(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
error
object (DutyError)
optional
code
enum<string>
Error code
Allowed values:
InvalidParameterInvalidContentTypeUnauthorizedAccessDeniedMethodNotAllowedRequestTooFrequentlyRequestVerifyRequiredDangerousOperationRequestLockedRouteNotFoundBalanceNotEnoughUndonedOrderExistResourceNotFoundInternalErrorReferenceExist
message
string
Error description
items
array[object (MemberItemShort) {2}]
required
MemberID
integer
required
Member ID
MemberName
string
required
Member name
Example
Not configured
Last modified: 2 个月前