cURL
curl --request GET \ --url 'https://sandbox.rollfi.xyz/reports#getTimeOffPolicyTypes' \ --header 'Authorization: Basic <encoded-value>' \ --header 'Content-Type: application/json' \ --data ' { "method": "getTimeOffPolicyTypes" } '
{ "timeOffPolicyTypes": [ "Paid Time Off", "Sick Leave", "Vacation", "Personal Days" ] }
The getTimeOffPolicyTypes API retrieves valid paid time off policy types that a company may offer. These types are used in the addTimeOffPolicy API
getTimeOffPolicyTypes
addTimeOffPolicy
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Basic <encoded-value>
<encoded-value>
username:password