Approvals
Get Approval History
Retrieve approval history for a leave request or memo
GET
Get Approval History
Overview
Retrieve the complete approval history for a specific entity (leave request or memo). This shows all approval actions taken, including who approved/rejected, when, and any comments provided.Accessible to users with Super Admin, HR Manager, Manager, or Employee roles.
Query Parameters
string
required
Type of entity to get approval history for. Must be one of:
leave_request- For leave request approvalsmemo- For memo approvals
uuid
required
The unique identifier of the entity (leave request ID or memo ID)
Response
boolean
Indicates if the request was successful
array
Array of approval history entries, ordered chronologically
Example Requests
Get approval history for a leave request
Get approval history for a memo
Understanding Approval Actions
Approved
The approver accepted the request and advanced it to the next step in the workflow. If this was the final step, the request is fully approved.
Rejected
The approver denied the request. This typically ends the approval process and the request status becomes “rejected”.
Requested Changes
The approver asked for modifications before they can approve. The submitter needs to update the request.
Workflow Step Tracking
ThestepNumber field corresponds to the steps defined in the approval workflow:
1
Step 1
First approver in the workflow (e.g., direct manager)
2
Step 2
Second approver if multi-step workflow (e.g., department head)
3
Step 3+
Additional steps as defined in the workflow (e.g., HR manager, finance)
The approval history shows all actions taken, even if a request was rejected at step 1. This provides a complete audit trail of the approval process.
Use Cases
Audit Trail
Audit Trail
Use approval history to maintain compliance records showing who approved what and when. The
comments field provides context for each decision.Status Tracking
Status Tracking
Display approval progress to employees by showing which steps have been completed and who is the current pending approver.
Analytics
Analytics
Analyze approval patterns, average approval times per step, and which approvers tend to reject or request changes most frequently.
Error Responses
Missing required parameters (
entityType or entityId), or invalid entityId formatMissing or invalid authentication token
Server error while retrieving approval history