time off balances list

GET {{baseUrl}}/time-off-balances

Returns a list of TimeOffBalance objects.

Request Params

KeyDatatypeRequiredDescription
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 balances 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.
policy_typestringIf provided, will only return TimeOffBalance with this policy type. Options: ('VACATION', 'SICK', 'PERSONAL', 'JURY_DUTY', 'VOLUNTEER', 'BEREAVEMENT')
remote_fieldsstringWhich fields should be returned in non-normalized form.
remote_idstringThe API provider's ID for the given object.

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","balance":93846070.4296422,"used":-127335.86175857484,"policy_type":"SICK","remote_data":[{"path":"deserunt consequat culpa consectetur","data":{"sunt5e":{},"enim_4b6":{},"quiac":{}}},{"path":"aliqua tempor","data":{"ina":{},"ut_b7":{}}}],"remote_was_deleted":true},{"id":"91b2b905-e866-40c8-8be2-efe53827a0aa","remote_id":"19202938","employee":"d2f972d0-2526-434b-9409-4c3b468e08f0","balance":50702890.06558591,"used":-15193361.43173486,"policy_type":"JURY_DUTY","remote_data":[{"path":"Duis aliquip elit","data":{"doeb":{},"tempor_a":{}}},{"path":"elit aute","data":{"culpa8":{},"cupidatat_97":{}}}],"remote_was_deleted":false}]}