Admin Portal
addUsers
API Reference
- Company Onboarding
- User Onboarding
- Admin Portal
- POSTaddCompanyBankAccount
- PUTdeactivateCompanyBankAccount
- POSTaddUser
- POSTaddBusinessContractor
- PUTupdateUser
- POSTaddUsers
- POSTaddStateRegistration
- PUTupdateStateRegistration
- POSTaddUserWage
- PUTupdateUserWage
- PUTupdateBusinessUserAsEmployee
- PUTupdateEmployeeAsBusinessUser
- PUTupdateBusinessUser
- PUTupdateCompanyLocation
- POSTactivateUser
- POSTdeactivateUser
- PUTterminateUser
- StateRegistration
- POST
- User Portal
- Payroll
- Benefits
- Reports
- Webhooks
Admin Portal
addUsers
This endpoint can be used to Create multiple Employee’s/Contractor’s by providing the required fields
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",
"companyLocationId": ""
},
{
"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",
"companyLocationId": ""
},
{
"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",
"companyLocationId": ""
}
]
}'
{
"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
Available options:
W2
, 1099-NEC
Available options:
Office
, Remote
Available options:
TX
, AK
, ND
, IL
, MA
, KS
, AS
, AL
, UT
, SD
, MI
, DC
, GA
, SC
, TN
, OK
, CO
, CA
, ME
, MO
, WY
, MD
, VT
, NM
, CT
, AZ
, WI
, VA
, WV
, NJ
, DE
, NC
, PR
, IN
, MT
, NH
, HI
, IA
, KY
, WA
, OH
, FL
, OR
, MP
, GU
, MN
, MS
, PA
, NE
, RI
, ID
, LA
, NY
, NV
, AR
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",
"companyLocationId": ""
},
{
"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",
"companyLocationId": ""
},
{
"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",
"companyLocationId": ""
}
]
}'
{
"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."
}
}
}
}