Sign in

Create leave request

documented

Insert a leave request.

POST /Payroll/LeaveRequestPayrollno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://api.saasu.com/Payroll/LeaveRequest?FileId={{$file_id}}" \
  -X POST \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"LeaveTypePayItemId": {{$leave_type_pay_item_id}}, "EmployeeId": {{$employee_id}}, "StartDate": "{{$start_date}}", "EndDate": "{{$end_date}}", "TotalHours": {{$total_hours}}, "Status": "{{$status}}", "Notes": "{{$notes}}", "Items": [{"LineNumber": 1, "Date": "{{$date}}", "Hours": {{$hours}}, "IsPaid": {{$is_paid}}, "ProcessedInPayRunId": {{$processed_in_pay_run_id}}}]}'
Create leave request · Saasu · OpenIntegrations