--- title: "sprVacationBalances" slug: "sprvacationbalances" updated: 2025-03-31T10:54:49Z published: 2025-03-31T10:54:49Z canonical: "instrukcijos.softera.lt/sprvacationbalances" --- > ## Documentation Index > Fetch the complete documentation index at: https://instrukcijos.softera.lt/llms.txt > Use this file to discover all available pages before exploring further. # sprVacationBalances Represents vacation balances (spr) in Business Central. ## Methods | Method | Return Type | Description | | --- | --- | --- | | GET sprVacationBalances | sprVacationBalances | Gets a vacation balance object. | | DELETE sprVacationBalances | none | Deletes a vacation balance object. | | POST sprVacationBalances | sprVacationBalances | Creates a vacation balance object. | | PATCH sprVacationBalances | sprVacationBalances | Updates a vacation balance object. | ## Navigation | Navigation | Return Type | Description | | --- | --- | --- | | [sprEmployees](/v1/docs/sprEmployees) | sprEmployee | Gets the employee associated with the vacation balance. | ## Properties | Property | Type | Description | Relation to | | --- | --- | --- | --- | | id | Guid | Specifies the vacation balance's ID. Non-editable. | | | employeeNumber | String[20] | Specifies the employee's number. | [sprEmployees.number](/v1/docs/sprEmployees) | | firstName | String[30] | Specifies the employee's first name. | [sprEmployees.firstName](/v1/docs/sprEmployees) | | middleName | String[30] | Specifies the employee's middle name. | [sprEmployees.middleName](/v1/docs/sprEmployees) | | surname | String[30] | Specifies the employee's surname. | [sprEmployees.surname](/v1/docs/sprEmployees) | | employmentDate | Date | Specifies the employee's employment date. | [sprEmployees.employmentDate](/v1/docs/sprEmployees) | | terminationDate | Date | Specifies the employee's termination date. | [sprEmployees.terminationDate](/v1/docs/sprEmployees) | | totalBalance | Decimal | Specifies the vacation balance's total balance. | | | balanceByDays | NAV.sprVacationDayType | Specifies the vacation balance's balance by days. It can be: 0- " " 1- Calendar 2- Working | | | dateFilter | String | Specifies the vacation balance's the date filter. | | ## Examples ### Get sprVacationBalances with filters GET `URI: /companies({{companyId}})/sprVacationBalances?$filter=id eq {{employeeId}} and dateFilter eq '{{date}}'` #### Response ``` { "@odata.context": "http://bc220-2:7048/BC/api/softera/softeraPayroll/v1.0/$metadata#companies(fb9142f3-361f-ee11-a396-ce5b49aea574)/sprVacationBalances", "value": [ { "@odata.etag": "W/\"JzIwOzEyOTU4OTQxNDk5MDc0NjEyNDM4MTswMDsn\"", "id": "59908e66-9448-ee11-bfb8-d2ad71583737", "employeeNumber": "D0005", "firstName": "Penktas", "middleName": "", "surname": "Penktokas", "employmentDate": "2023-05-01", "terminationDate": "0001-01-01", "totalBalance": 7.049, "balanceByDays": "Working", "dateFilter": "09/06/23" } ] } ```