POST
/
payroll#importPayrollDetails
curl --request POST \
  --url 'https://sandbox.rollfi.xyz/payroll#importPayrollDetails' \
  --header 'Content-Type: application/json' \
  --data '{
  "method": "importPayrollData",
  "companyId": "9156EA95-B256-494A-B8EE-D4080976EB1B",
  "payPeriodId": "D4E6E843-BDF5-403A-ABD5-E0F36144C175",
  "companyPayrollRecords": [
    {
      "userId": "50070F09-2923-499A-850B-F12ED4C2FD69",
      "firstName": "Ron",
      "lastName": "Wood",
      "rate": 14,
      "numberofHours": 40,
      "amount": 560
    },
    {
      "userId": "9E3CBA77-9035-471F-AA1E-F77A13AFE5C2",
      "firstName": "Mark",
      "lastName": "Steve",
      "rate": 20,
      "numberofHours": 40.25,
      "amount": 2000
    }
  ]
}'
{
  "1": {
    "summary": "Success",
    "value": {
      "payrollDocument": {
        "payrollDocumentId": "BB14339E2-7AA6-4431-9BE7-73FCFBB4EC82",
        "status": "Pending",
        "message": "Imported Payroll Data Successfully, Tax Calculation is in Progress "
      }
    }
  }
}

Body

application/json
method
string
default: importPayrollDetailsrequired
companyId
string
required
payPeriodId
string
required
companyPayrollRecords
object[]
required

Response

200 - application/json
payrollDocument
object
required