1. Get Ticket Information
First, retrieve the ticket details by making a GET request to:
/api/tickets/{ticket_id}
The response will contain an approvers
array. Each approver entry contains:
name
– The approver's display nameemailaddress
– The approver's emailuser_id
– The approver's user IDseq
– Required for approval submissionactionnumber
– Required for approval submission
Example approver entry:
{
"name": "Halo Admin",
"emailaddress": "example@halo.com",
"user_id": 23,
"seq": 8,
"actionnumber": 17
}
2. Submit the Approval
Make a POST request to:
/api/ticketapproval
Using this JSON structure:
[
{
"ticket_id": YOUR_TICKET_ID,
"seq": APPROVER_SEQ,
"actionnumber": APPROVER_ACTIONNUMBER,
"result": APPROVAL_RESULT
}
]
Where:
ticket_id
– The ID of the ticket being approvedseq
– The seq value from the chosen approveractionnumber
– The actionnumber value from the chosen approverresult
– Your approval decision:1
= Approve2
= Reject