Entitlements

An Entitlement represents a person's time-off allowance for one absence category (Event), such as Vacation or Sick leave, over the period from start_date to end_date. A person can have several entitlements for the same event, for example one for each year.

Each entitlement tracks three balances:

  • allocated is the allowance granted to the person.
  • used is the part of the allowance taken by absence bookings, including bookings that are still waiting for approval.
  • pending is the part of used that belongs to bookings still waiting for approval.

The remaining allowance is allocated minus used. The unit depends on the event's limitation type: for events limited by days the values are in days, and allocated accepts whole and half days; for events limited by hours the values are in minutes.

You set allocated, the dates and an optional note. Productive calculates used and pending itself and updates them whenever an absence booking on the event is created, changed, approved, rejected or canceled. When more than one of a person's entitlements covers a booking, the booking takes from the one that ends first.

allocated can't be lowered below what is already used. The dates can't be changed to leave out days that bookings already take from the entitlement, and its person or event can't be changed while it has active bookings.

The following diagram shows entitlements in our data hierarchy:

PersonEventEntitlementBookings

Attributes

allocated number
Response Request Parameter `filter`

Total hours allocated to this person for the absence category in the entitlement period.

approval_workflow approval workflow
Response

Whether an approval workflow is required for absence requests under this entitlement.

date string
Parameter `filter`

The reference date for this entitlement record (typically the start of the accrual period).

end_date string
Response Request Parameter `filter` Parameter `sort`

The date when this entitlement period ends. After this date, unused hours may expire.

event event
Response Parameter `sort`

The absence category (event) this entitlement is for, such as vacation or sick leave.

event_id integer
Request Parameter `filter`

The ID of the absence category (event) this entitlement covers.

id integer
Parameter `filter`

The unique identifier of this entitlement record.

note string
Response Request

Optional note providing additional context for this entitlement allocation.

organization organization
Response

The organization this entitlement belongs to.

pending number
Response

Hours pending approval — absence bookings submitted but not yet approved.

person person
Response Parameter `sort`

The person this entitlement applies to.

person_id integer
Request Parameter `filter`

The ID of the person this entitlement applies to.

start_date string
Response Request Parameter `filter` Parameter `sort`

The date when this entitlement period starts.

used number
Response Parameter `filter`

Hours already used — approved absence bookings that have been taken within the entitlement period.

Examples

Loading example