Authorization: Bearer ********************
curl --location --request GET 'https://api.upbooks.io/api/v1/employee-spend/' \
--header 'ORGANIZATION-ID: 00000'
{
"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"
}
]
},
"category": {
"id": "string",
"title": "string"
},
"spend": {
"amount": 0,
"currency": {
"name": "string",
"symbol": "string"
}
},
"notes": "string",
"files": [
"string"
],
"status": "pending-approval",
"account": {
"id": "string",
"title": "string",
"type": "cash",
"subType": "gst-receivable",
"category": "asset",
"subCategory": "current-assets",
"bankAccount": {
"id": "string",
"bankAccountNumber": "string",
"title": "string"
},
"defaultCurrency": {
"name": "string",
"symbol": "string"
},
"naturalBalance": "credit"
},
"expense": {
"id": "string",
"expenseNumber": "string",
"amount": 0,
"currency": {
"name": "string",
"symbol": "string"
}
}
}
],
"totalCount": 0,
"filteredCount": 0,
"message": "string"
}