Skip to content
JustLogin API

List Leave Types

Returns a list of leave types for the employee.

PropertyValue
MethodGET
URL/leave/setup/leave/v2/companies/:companyGuid/users/:userGuid/assignedleavetypes?whichyear=YYYY
HeadersAuthorization Bearer: {{token}}
Parameters:companyGuid - the unique identifier of the company.
:userGuid - the unique identifier of the user.
whichyear - the year you would like to query against.

Example Response

{
    "companyGuid": "44AD7A7A048443AAB22CA52FC353E5AB",
    "userGuid": "8CDE5DDF169E472B8309ACC91069E3D4",
    "leaveTypes": [
        {
        "leaveType": 1,
        "leaveName": "Annual"
        }
    ],
    "whichYear": 2023,
    "basedOnDate": "2023-06-26"
    }