v1

latestOpenAPI 3.1.02026-08-045901.5 MB

Add Applications

post/hr/approvals

Headers

api-tokenstring

generate token from authentication api

x-api-keystring

Request body

gidstring required

Unique employee or user ID used to apply permissions or requests

typestring required

Type of application request.(1 – Leave 2 – Permission 4 – Half Day Leave 5 – On Duty 6 – Late Check-in 7 – No Checkout 10 – Reimbursement 11 – Expense)

ondutytypestring

Mandatory only when type = 5.(1 – Partial On Duty 2 – Full Day On Duty)

datestring date required

Application start date and time in timestamp format.

enddatestring date required

Application end date and time in timestamp format.

amountstring

Mandatory when type = 10 (Reimbursement) or type = 11 (Expense). Specifies the requested amount

operationstring

Optional field used only when the application needs to be auto-approved.

Response

200

statusinteger
msgstring
datastring

Example response

{
  "status": 1,
  "msg": "success",
  "data": "Application Submitted Successfully"
}