Authorization: Bearer ********************
{
"employeeId": "string",
"employmentId": "string",
"totalPayAmount": 0,
"currency": {
"name": "string",
"symbol": "string"
},
"month": 0,
"totalMonthDays": 0,
"year": 0,
"processingDate": "2019-08-24T14:15:22Z",
"processedById": "string",
"noOfLeaves": 0,
"noOfUnpaidLeaves": 0,
"totalWorkingDays": 0,
"deductions": [
{
"key": "string",
"value": 0
}
],
"allowances": [
{
"key": "string",
"value": 0
}
],
"employersContribution": [
{
"key": "string",
"value": 0
}
],
"paidVia": "string",
"paymentMode": "cash",
"notes": "string",
"referenceNumber": "string",
"paymentAmount": 0,
"calculationDifference": 0,
"fileImportData": {
"fileImportId": "string",
"rowId": "string"
}
}
curl --location --request POST 'https://api.upbooks.io/api/v1/payroll' \
--header 'ORGANIZATION-ID: 00000' \
--header 'Content-Type: application/json' \
--data-raw '{
"employeeId": "string",
"employmentId": "string",
"totalPayAmount": 0,
"currency": {
"name": "string",
"symbol": "string"
},
"month": 0,
"totalMonthDays": 0,
"year": 0,
"processingDate": "2019-08-24T14:15:22Z",
"processedById": "string",
"noOfLeaves": 0,
"noOfUnpaidLeaves": 0,
"totalWorkingDays": 0,
"deductions": [
{
"key": "string",
"value": 0
}
],
"allowances": [
{
"key": "string",
"value": 0
}
],
"employersContribution": [
{
"key": "string",
"value": 0
}
],
"paidVia": "string",
"paymentMode": "cash",
"notes": "string",
"referenceNumber": "string",
"paymentAmount": 0,
"calculationDifference": 0,
"fileImportData": {
"fileImportId": "string",
"rowId": "string"
}
}'
{
"data": {
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z",
"__v": 0,
"_id": "string",
"organizationId": "string",
"employee": {
"id": "string",
"name": "string",
"employeeNumber": "string",
"email": "string",
"phone": "string",
"type": "full-time",
"employment": [
{
"id": "string",
"isCurrent": true,
"dateOfJoining": "2019-08-24T14:15:22Z",
"dateOfLeaving": "2019-08-24T14:15:22Z",
"specialSchemes": [
{
"enabled": true,
"name": "ESI"
}
],
"salary": {
"componentGroup": {
"id": "string",
"groupName": "string",
"salaryCalculationMode": "month-days",
"sandwichLeaves": true
},
"type": "hourly",
"ctc": 0,
"gross": 0,
"net": 0,
"currency": {
"name": "string",
"symbol": "string"
},
"components": [
{
"name": "string",
"code": "BASIC",
"type": "EARNINGS",
"isTaxable": true,
"isAttendanceBased": true,
"isIncludedInCTC": true,
"isActive": true,
"_id": "string",
"value": {
"amount": 0,
"currency": {
"name": "string",
"symbol": "string"
}
},
"formula": "string",
"custom": true,
"salaryComponentId": "string",
"amount": 0
}
]
},
"designation": "string",
"role": "string",
"supervisor": {},
"leavePolicies": [
{
"id": "string",
"name": "string",
"leaves": [
{
"type": "string",
"probationPeriod": 0,
"noOfLeaves": 0,
"monthlyLimit": 0
}
]
}
],
"spendPolicies": [
{
"id": "string",
"title": "string"
}
]
}
]
},
"employment": {
"id": "string",
"isCurrent": true,
"dateOfJoining": "2019-08-24T14:15:22Z",
"dateOfLeaving": "2019-08-24T14:15:22Z",
"specialSchemes": [
{
"enabled": true,
"name": "ESI"
}
],
"salary": {
"componentGroup": {
"id": "string",
"groupName": "string",
"salaryCalculationMode": "month-days",
"sandwichLeaves": true
},
"type": "hourly",
"ctc": 0,
"gross": 0,
"net": 0,
"currency": {
"name": "string",
"symbol": "string"
},
"components": [
{
"name": "string",
"code": "BASIC",
"type": "EARNINGS",
"isTaxable": true,
"isAttendanceBased": true,
"isIncludedInCTC": true,
"isActive": true,
"_id": "string",
"value": {
"amount": 0,
"currency": {
"name": "string",
"symbol": "string"
}
},
"formula": "string",
"custom": true,
"salaryComponentId": "string",
"amount": 0
}
]
},
"designation": "string",
"role": "string",
"supervisor": {
"id": "string",
"name": "string",
"employeeNumber": "string",
"email": "string",
"phone": "string",
"type": "full-time",
"employment": [
{}
]
},
"leavePolicies": [
{
"id": "string",
"name": "string",
"leaves": [
{
"type": "string",
"probationPeriod": 0,
"noOfLeaves": 0,
"monthlyLimit": 0
}
]
}
],
"spendPolicies": [
{
"id": "string",
"title": "string"
}
]
},
"totalPayAmount": 0,
"currency": {
"name": "string",
"symbol": "string"
},
"month": 0,
"totalMonthDays": 0,
"year": 0,
"processingDate": "2019-08-24T14:15:22Z",
"paidVia": "string",
"processedBy": {
"id": "string",
"name": "string",
"email": "string",
"organizations": [
{
"organizationHashId": "string",
"organizationId": "string",
"role": "organization-admin",
"teams": [
"admin"
],
"organizationName": "string",
"organizationLogo": "string",
"isActive": true
}
]
},
"noOfLeaves": 0,
"noOfUnpaidLeaves": 0,
"totalWorkingDays": 0,
"deductions": [
{
"key": "string",
"value": 0
}
],
"allowances": [
{
"key": "string",
"value": 0
}
],
"employersContribution": [
{
"key": "string",
"value": 0
}
],
"isDeleted": true,
"expense": [
{
"id": "string",
"expenseNumber": "string",
"amount": 0,
"currency": {
"name": "string",
"symbol": "string"
}
}
],
"salarySlip": "string",
"calculationDifference": 0
},
"message": "string"
}