API Reference
- Company Onboarding
- User Onboarding
- Admin Portal
- POSTaddCompanyBankAccount
- PUTdeactivateCompanyBankAccount
- POSTaddUser
- POSTaddBusinessContractor
- PUTupdateUser
- POSTaddUsers
- POSTaddStateRegistration
- PUTupdateStateRegistration
- POSTaddUserWage
- PUTupdateUserWage
- PUTupdateBusinessUserAsEmployee
- PUTupdateEmployeeAsBusinessUser
- PUTupdateBusinessUser
- PUTupdateCompanyLocation
- POSTactivateUser
- POSTdeactivateUser
- DELdeleteStateRegistration
- 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",
"users": [
{
"userReferenceId": "ref123",
"firstName": "Marcus",
"middleName": "Austin",
"lastName": "Steve",
"email": "marcus@steve.in",
"phoneNumber": "9889890989",
"dateOfJoin": "2000-01-01",
"workerType": "W2",
"jobTitle": "Manager",
"companyLocationCategory": "Remote",
"stateCode": "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",
"stateCode": "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",
"stateCode": "CA",
"companyLocationId": ""
}
]
}'
{
"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
Response
200
application/json
The response is of type object
.
curl --request POST \
--url 'https://sandbox.rollfi.xyz/adminPortal#addUsers' \
--header 'Content-Type: application/json' \
--data '{
"method": "addUsers",
"companyId": "64a1e9a5-712d-43ac-92e9-0b81972a960a",
"users": [
{
"userReferenceId": "ref123",
"firstName": "Marcus",
"middleName": "Austin",
"lastName": "Steve",
"email": "marcus@steve.in",
"phoneNumber": "9889890989",
"dateOfJoin": "2000-01-01",
"workerType": "W2",
"jobTitle": "Manager",
"companyLocationCategory": "Remote",
"stateCode": "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",
"stateCode": "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",
"stateCode": "CA",
"companyLocationId": ""
}
]
}'
{
"user": {
"userId": "E7B3731C-20F4-4432-A3BE-DDD83D877EAD",
"status": "KYC Pending",
"message": "Marcus Steve has been successfully added as Employee in Test Ltd."
}
}
Assistant
Responses are generated using AI and may contain mistakes.