Admin Portal
AddUser
POST
/
adminPortal#addUser
Authorization
Body
curl --request POST \
--url 'https://sandbox.rollfi.xyz/adminPortal#addUser' \
--header 'Content-Type: application/json' \
--data '{
"method": "addUser",
"user": {
"companyId": "64a1e9a5-712d-43ac-92e9-0b81972a960a",
"userReferenceId": "",
"firstName": "Marcus",
"middleName": "Austin",
"lastName": "Steve",
"email": "mar@sto.com",
"phoneNumber": "9889890989",
"dateOfJoin": "2000-01-01",
"workerType": "W2",
"jobTitle": "Manager",
"companyLocationCategory": "Remote",
"code": "FL"
}
}'
{
"1": {
"summary": "Success",
"value": {
"user": {
"userId": "E7B3731C-20F4-4432-A3BE-DDD83D877EAD",
"status": "KYC Pending",
"message": "Marcus Steve has been successfully added as Employee in Test Ltd."
}
}
}
}
Body
application/json
method
string
requireduser
object
requiredResponse
200 - application/json
user
object
requiredcurl --request POST \
--url 'https://sandbox.rollfi.xyz/adminPortal#addUser' \
--header 'Content-Type: application/json' \
--data '{
"method": "addUser",
"user": {
"companyId": "64a1e9a5-712d-43ac-92e9-0b81972a960a",
"userReferenceId": "",
"firstName": "Marcus",
"middleName": "Austin",
"lastName": "Steve",
"email": "mar@sto.com",
"phoneNumber": "9889890989",
"dateOfJoin": "2000-01-01",
"workerType": "W2",
"jobTitle": "Manager",
"companyLocationCategory": "Remote",
"code": "FL"
}
}'
{
"1": {
"summary": "Success",
"value": {
"user": {
"userId": "E7B3731C-20F4-4432-A3BE-DDD83D877EAD",
"status": "KYC Pending",
"message": "Marcus Steve has been successfully added as Employee in Test Ltd."
}
}
}
}