Time Off

Get worker remaining time-off balances.

get/v1/time_off/balances

Query parameters

limitstring

a number less than or equal to 100

a number less than or equal to 100

afterIdstring
beforeIdstring
policyIdsstring[]
[
  "top_1234"
]
workerIdsstring[]
[
  "wrk_1234"
]
startDatestring

a string to be decoded into a Date

endDatestring

a string to be decoded into a Date

Response

Success

hasMoreboolean required
countinteger required

an integer

Example response

{
  "data": [
    {
      "policyId": "top_1234"
    }
  ]
}

Changes

Changed in 12 of the 20 revisions of this API.9116

  • a896c17cf98841See the full diff
    • the response's body type/format changed from object/ to / for status 403

      response-body-type-changed

    • removed the required property _tag from the response with the 403 status

      response-required-property-removed

    • removed the required property message from the response with the 403 status

      response-required-property-removed

    • removed the required property requiredPermissions from the response with the 403 status

      response-required-property-removed

    • added MissingRequiredPermissions ApiNotEnabled to the response body anyOf list for the response status 403

      response-body-any-of-added

    • added the new company:workplaces enum value to the requiredPermissions/items/scope response property for the response status 403

      response-property-enum-value-added

    • the requiredPermissions/items/ response property's minItems was decreased from 2 to 0 for the response status 403

      response-property-min-items-decreased

    • the requiredPermissions/items/ response's property type/format changed from array/ to object/ for status 403

      response-property-type-changed

    • removed subschema #1 subschema #2 from the requiredPermissions/items/ response property 'prefixItems' list for the response status 403

      response-property-prefix-items-removed

    • added the required property requiredPermissions/items/level to the response with the 403 status

      response-required-property-added

    • added the required property requiredPermissions/items/scope to the response with the 403 status

      response-required-property-added

    • added the non-success response with the status 403

      response-non-success-status-added

    • added the required property count to the response with the 200 status

      response-required-property-added

    • added subschema #1: startsWith("top_") to the id response property anyOf list for the response status 404

      response-property-any-of-added

    • removed subschema #1 from the id response property anyOf list for the response status 404

      response-property-any-of-removed

    • the data/items/policyId response's property pattern ^top_ was added for the status 200

      response-property-pattern-added

    • response property id list-of-types was widened by adding types number to media type application/json of response 404

      response-property-list-of-types-widened

    • added the required property data/items/id to the response with the 200 status

      response-required-property-added

    • removed the required property data/items/id from the response with the 200 status

      response-required-property-removed

    • added the required property data/items/id to the response with the 200 status

      response-required-property-added