List organization overtime policies
/v2/organizations/{organization_id}/overtime_policiesReturns a collection of overtime policies for the given organization.
Only organization Owners and Managers may use this endpoint.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
organization_idrequired | path | integer (int32) | |
page_start_id | query | integer (int32) | The page start ID. |
page_limit | query | integer (int32) | The default page size |
status | query | string | Filter by lifecycle group: active (not past), archived (past), or all. Note the returned per-policy status may also be pending or expiring. Possible values activearchivedall |
Responses
200A list of overtime policies
- overtime_policiesarrayarray<object>itemsobject
OvertimePolicy model
- idinteger required
Overtime policy ID
- organization_idinteger required
Organization ID
- created_atstring required
When the record was created
- updated_atstring required
When the record was last updated
- namestring required
Policy name
- policy_typestring required
How the threshold is evaluated: weekly or daily
- statusstring required
Policy status: active, pending, expiring or archived
- thresholdnumber required
Hours per period before time counts as overtime
- pay_rate_multiplierstring required
Pay rate multiplier after the threshold
- bill_rate_multiplierstring required
Bill rate multiplier after the threshold
- sincestring required
When the policy becomes effective
- untilstring required
When the policy expires (null while open)
- auto_add_new_usersboolean required
Automatically add new members to this policy
- notification_enabledboolean required
Whether overtime notifications are sent
- notification_role_idsArray[String] required
Roles notified about overtime
- superseded_by_idinteger
ID of the policy that replaced this one
- editableboolean required
Whether the policy can still be edited
- lockedboolean required
Whether the policy is in use and read-only
- user_idsArray[long] required
User IDs assigned to this policy
{
"overtime_policies": [
{
"id": 0,
"organization_id": 0,
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:00Z",
"name": "string",
"policy_type": "string",
"status": "string",
"threshold": 0,
"pay_rate_multiplier": "string",
"bill_rate_multiplier": "string",
"since": "2024-01-15T10:30:00Z",
"until": "2024-01-15T10:30:00Z",
"auto_add_new_users": false,
"notification_enabled": false,
"notification_role_ids": null,
"superseded_by_id": 0,
"editable": false,
"locked": false,
"user_ids": null
}
]
}400Invalid parameters
Hubstaff_Public_V2_Entities_Error model
- codestring required
Legacy string error code for backward compatibility
- error_codeinteger
Numeric error code for i18n/programmatic handling. Ranges: 10000-10999 (Auth), 11000-11999 (Validation), 12000-12999 (Resource), 13000-13999 (Rate Limit), 14000-14999 (Time Entry/Activity), 15000-15999 (System). See GET /v2/error_codes for full reference.
- errorstring required
Human-readable error message
- detailsarray
Per-attribute validation errors: [{attribute, error}]. Present on validation failures.
array<string>Per-attribute validation errors: [{attribute, error}]. Present on validation failures.
itemsstring
{
"code": "string",
"error_code": 0,
"error": "string",
"details": [
"string"
]
}401Unauthorized
Hubstaff_Public_V2_Entities_Error model
- codestring required
Legacy string error code for backward compatibility
- error_codeinteger
Numeric error code for i18n/programmatic handling. Ranges: 10000-10999 (Auth), 11000-11999 (Validation), 12000-12999 (Resource), 13000-13999 (Rate Limit), 14000-14999 (Time Entry/Activity), 15000-15999 (System). See GET /v2/error_codes for full reference.
- errorstring required
Human-readable error message
- detailsarray
Per-attribute validation errors: [{attribute, error}]. Present on validation failures.
array<string>Per-attribute validation errors: [{attribute, error}]. Present on validation failures.
itemsstring
{
"code": "string",
"error_code": 0,
"error": "string",
"details": [
"string"
]
}403API access is only for organizations on an active plan
Hubstaff_Public_V2_Entities_Error model
- codestring required
Legacy string error code for backward compatibility
- error_codeinteger
Numeric error code for i18n/programmatic handling. Ranges: 10000-10999 (Auth), 11000-11999 (Validation), 12000-12999 (Resource), 13000-13999 (Rate Limit), 14000-14999 (Time Entry/Activity), 15000-15999 (System). See GET /v2/error_codes for full reference.
- errorstring required
Human-readable error message
- detailsarray
Per-attribute validation errors: [{attribute, error}]. Present on validation failures.
array<string>Per-attribute validation errors: [{attribute, error}]. Present on validation failures.
itemsstring
{
"code": "string",
"error_code": 0,
"error": "string",
"details": [
"string"
]
}404Could not find record
Hubstaff_Public_V2_Entities_Error model
- codestring required
Legacy string error code for backward compatibility
- error_codeinteger
Numeric error code for i18n/programmatic handling. Ranges: 10000-10999 (Auth), 11000-11999 (Validation), 12000-12999 (Resource), 13000-13999 (Rate Limit), 14000-14999 (Time Entry/Activity), 15000-15999 (System). See GET /v2/error_codes for full reference.
- errorstring required
Human-readable error message
- detailsarray
Per-attribute validation errors: [{attribute, error}]. Present on validation failures.
array<string>Per-attribute validation errors: [{attribute, error}]. Present on validation failures.
itemsstring
{
"code": "string",
"error_code": 0,
"error": "string",
"details": [
"string"
]
}429Rate limit exceeded
Hubstaff_Public_V2_Entities_Error model
- codestring required
Legacy string error code for backward compatibility
- error_codeinteger
Numeric error code for i18n/programmatic handling. Ranges: 10000-10999 (Auth), 11000-11999 (Validation), 12000-12999 (Resource), 13000-13999 (Rate Limit), 14000-14999 (Time Entry/Activity), 15000-15999 (System). See GET /v2/error_codes for full reference.
- errorstring required
Human-readable error message
- detailsarray
Per-attribute validation errors: [{attribute, error}]. Present on validation failures.
array<string>Per-attribute validation errors: [{attribute, error}]. Present on validation failures.
itemsstring
{
"code": "string",
"error_code": 0,
"error": "string",
"details": [
"string"
]
}