cURL
curl --request GET \ --url 'https://sandbox.rollfi.xyz/reports#getTimeOffPolicy' \ --header 'Authorization: Basic <encoded-value>' \ --header 'Content-Type: application/json' \ --data ' { "method": "getTimeOffPolicy", "timeOffPolicyId": "E3DC43BB-262C-4CB1-A210-5530615A2921" } '
{ "timeOffPolicy": { "timeOffPolicyId": "E3DC43BB-262C-4CB1-A210-5530615A2921", "timeOffPolicyName": "Standard Vacation", "lumpSumHoursEarned": 80, "accrualRatePerHour": 1.5, "canCarryoverHours": true, "carryoverLimitHours": 40, "maxAccumulatedHours": 160, "waitingPeriodQuantity": 0, "isProratedByStartDate": true, "payoutOnTerminations": true, "maxPayoutHours": 40, "timeOffPolicyType": "Vacation", "earningMethod": "Lump Sum (All at once)", "waitingPeriodUnit": "Days", "timeOffRecievedWhen": "On Hire Date" } }
The getTimeOffPolicy API returns a single timeOffPolicy using timeOffPolicyId
getTimeOffPolicy
updateTimeOffPolicy
getTimeOffPolicies
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
Show child attributes