time off list

GET {{baseUrl}}/time-off

Returns a list of TimeOff objects.

Request Params

KeyDatatypeRequiredDescription
approver_idstringIf provided, will only return time off for this approver.
created_afterstringIf provided, will only return objects created after this datetime.
created_beforestringIf provided, will only return objects created before this datetime.
cursorstringThe pagination cursor value.
employee_idstringIf provided, will only return time off for this employee.
expandstringWhich relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
include_deleted_databooleanWhether to include data that was marked as deleted by third party webhooks.
include_remote_databooleanWhether to include the original data Merge fetched from the third-party to produce these models.
modified_afterstringIf provided, will only return objects modified after this datetime.
modified_beforestringIf provided, will only return objects modified before this datetime.
page_sizenumberNumber of results to return per page.
remote_fieldsstringWhich fields should be returned in non-normalized form.
remote_idstringThe API provider's ID for the given object.
request_typestringIf provided, will only return TimeOff with this request type. Options: ('VACATION', 'SICK', 'PERSONAL', 'JURY_DUTY', 'VOLUNTEER', 'BEREAVEMENT')
statusstringIf provided, will only return TimeOff with this status. Options: ('REQUESTED', 'APPROVED', 'DECLINED', 'CANCELLED', 'DELETED')

HEADERS

KeyDatatypeRequiredDescription
X-Account-Tokenstring(Required) Token identifying the end user.
Acceptstring

RESPONSES

status: OK

{"next":"cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw","previous":"cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ","results":[{"id":"91b2b905-e866-40c8-8be2-efe53827a0aa","remote_id":"19202938","employee":"d2f972d0-2526-434b-9409-4c3b468e08f0","approver":"9efbc633-3387-4306-aa55-e2c635e6bb4f","status":"APPROVED","employee_note":"Moving into the new apartment Kendall Roy gave me!","units":"HOURS","amount":3,"request_type":"JURY_DUTY","start_time":"2020-11-10T00:00:00Z","end_time":"2020-11-17T00:00:00Z","remote_data":[{"path":"et","data":{"id09":{},"id_738":{}}},{"path":"irure","data":{"Excepteur9_8":{},"dolore_4c":{},"pariatur_ace":{}}}],"remote_was_deleted":true},{"id":"91b2b905-e866-40c8-8be2-efe53827a0aa","remote_id":"19202938","employee":"d2f972d0-2526-434b-9409-4c3b468e08f0","approver":"9efbc633-3387-4306-aa55-e2c635e6bb4f","status":"CANCELLED","employee_note":"Moving into the new apartment Kendall Roy gave me!","units":"HOURS","amount":3,"request_type":"SICK","start_time":"2020-11-10T00:00:00Z","end_time":"2020-11-17T00:00:00Z","remote_data":[{"path":"ullamco cupidatat","data":{"exercitation1":{},"labore6":{}}},{"path":"ex tempor enim","data":{"nullacc":{},"dolor96":{}}}],"remote_was_deleted":true}]}