POST
/
adminPortal#addUsers
curl --request POST \
  --url 'https://sandbox.rollfi.xyz/adminPortal#addUsers' \
  --header 'Content-Type: application/json' \
  --data '{
  "method": "addUsers",
  "companyId": "64a1e9a5-712d-43ac-92e9-0b81972a960a",
  "user": [
    {
      "userReferenceId": "ref123",
      "firstName": "Marcus",
      "middleName": "Austin",
      "lastName": "Steve",
      "email": "marcus@steve.in",
      "phoneNumber": "9889890989",
      "dateOfJoin": "2000-01-01",
      "workerType": "W2",
      "jobTitle": "Manager",
      "companyLocationCategory": "Remote",
      "code": "FL"
    },
    {
      "userReferenceId": "ref456",
      "firstName": "Laura",
      "middleName": "Beth",
      "lastName": "Johnson",
      "email": "laurajohnson@company.com",
      "phoneNumber": "9988776655",
      "dateOfJoin": "2001-02-02",
      "workerType": "W2",
      "jobTitle": "Developer",
      "companyLocationCategory": "Remote",
      "code": "CA"
    },
    {
      "userReferenceId": "ref457",
      "firstName": "Aaron",
      "middleName": "",
      "lastName": "Ruth",
      "email": "aaronruth@company.com",
      "phoneNumber": "9988776655",
      "dateOfJoin": "2001-02-02",
      "workerType": "W2",
      "jobTitle": "Developer",
      "companyLocationCategory": "Remote",
      "code": "CA"
    }
  ]
}'
{
  "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
required
companyId
string
required
user
object[]
required

Response

200 - application/json
user
object
required