Approvals
Approval tasks on a purchase request: listing, assignment, approve and reject.
Get approval tasks with pagination
Retrieves paginated approval tasks based on user role. Approvers see their own tasks, admins see all.
Assign an approval task
Assigns a tag-based task to a user by setting approver_code (self-assignment or assign-to-others).
Unassign an approval task
Releases a pending task from its current approver, clearing approver_code. Self-unassign only: the caller must be the task's current approver. Group-routed tasks return to their tag pool; directly routed tasks return to the original approver's personal unassigned queue.
Get pending approval tasks by case code
Returns PENDING approval tasks for the given case code (e.g. purchase request code PR-2026-000418).
Approve an approval task
Approves a specific approval task within a purchase request approval workflow.
Reject an approval task
Rejects a specific approval task within a purchase request approval workflow.