Time off
Time off covers a business’s time off requests, balances, types, personal allowances, holiday calendars and work schedules, as shown on Team > Time off. Each balance gives its figures as of its asOfDate. A business with no time off records gets empty lists.
Who can use it
Section titled “Who can use it”Everyone can read their own time off. A person without the permission to see team members (view-team-member) still gets their own time off requests, balances, personal allowances and holiday calendar and work schedule assignments, and nobody else’s. With that permission (by default the Admin, Manager, Member, Accounting and People Admin profiles have it) a person sees time off for everyone in the business, with every field; it is not narrowed to the people a manager manages. Time off types, holiday calendars and work schedules are the business’s own settings: reading them needs the permission to see team members, and without it they answer 403.
Objects
Section titled “Objects”The time off request object
Section titled “The time off request object”One time off request, with its status and the days it covers.
| Field | Type | Description |
|---|---|---|
id |
string | The request’s id. Read only. |
member |
object | The person the time off is for, { id, name }, where id is the team member id. Read only. |
timeOffType |
object | The type of time off, { id, name }. Read only. |
status |
string | pending, approved, declined, changesRequested or cancelled, matching the words on the Requests list. Read only. |
startDate |
date | First day of the time off. Read only. |
endDate |
date | Last day of the time off. Read only. |
days |
decimal | Working days the request takes, with weekends and holidays already left out. Read only. |
startTimeMinutes |
integer | For a part-day request, when it starts, in minutes after midnight (540 is 9:00 AM). null for whole days. Read only. Can be null. |
endTimeMinutes |
integer | For a part-day request, when it ends, in minutes after midnight (780 is 1:00 PM). null for whole days. Read only. Can be null. |
note |
string | The note the person wrote on the request, or null. Read only. Can be null. |
reviewReason |
string | The reason the reviewer gave with their decision, or null. Read only. Can be null. |
reviewedBy |
object | Who reviewed it, { id, name }. id is null when the reviewer is not a person in this business; the whole object is null when nobody has reviewed it. Read only. Can be null. |
reviewedAt |
datetime | When the request was reviewed, or null when it has not been. Read only. Can be null. |
submittedAt |
datetime | When the person submitted the request; null when that moment is not known. Read only. Can be null. |
dailyBreakdown |
array of timeOffDay | The request day by day, earliest first. Can be empty when no day-by-day breakdown exists. Read only. |
createdAt |
datetime | When the request was added to OneSuite. Read only. |
updatedAt |
datetime | When the request last changed. Read only. |
The time off day object
Section titled “The time off day object”One day of a time off request.
| Field | Type | Description |
|---|---|---|
date |
date | The day. Read only. |
hours |
decimal | Hours of time off on that day; null when only a share of the day is known. Read only. Can be null. |
shareOfDay |
decimal | Share of the day taken: 1 is a whole day, 0.5 half a day. null when only hours are known. Read only. Can be null. |
The time off type object
Section titled “The time off type object”A type of time off, such as Vacation or Sick leave, with its allowance rules.
| Field | Type | Description |
|---|---|---|
id |
string | The type’s id. Read only. |
name |
string | The type’s name. Read only. |
color |
string | The colour the type is shown in, or null. Read only. Can be null. |
allowanceType |
string | How the allowance is given: fixed (a set number of days a year), accrued (earned over time) or unlimited. null when not set. Read only. Can be null. |
accrualSchedule |
string | For an accrued allowance, how often it grows: monthly, biweekly (every two weeks), semimonthly (twice a month) or hourly (by hours worked). Ignore it for other allowance types. Read only. Can be null. |
accrualStartDate |
date | For an accrued allowance, the day it started to grow. Read only. Can be null. |
accrualHours |
decimal | For an accrued allowance, hours earned each time it grows. Read only. Can be null. |
accrualPerWorkedHours |
decimal | For an hourly accrual, the hours of work that earn accrualHours. Read only. Can be null. |
accrualMaxHoursPerYear |
decimal | For an accrued allowance, the most hours that can be earned in a year. Read only. Can be null. |
daysPerYear |
decimal | Default allowance in days per year; null for an unlimited type. Read only. Can be null. |
maxCarryOverDays |
decimal | The most unused days that can carry over into the next year; null when not set. Read only. Can be null. |
isApprovalRequired |
boolean | Whether requests of this type need approval. Read only. |
isHiddenFromMembers |
boolean | Whether the type is hidden from members. Read only. |
isDeactivated |
boolean | Whether the type is deactivated. Deactivated types are still listed because requests and balances refer to them. Read only. |
createdAt |
datetime | When the type was added to OneSuite. Read only. |
updatedAt |
datetime | When the type last changed. Read only. |
The time off balance object
Section titled “The time off balance object”One person’s balance for one type of time off and one year, as calculated on its asOfDate.
| Field | Type | Description |
|---|---|---|
id |
string | The balance’s id. Read only. |
member |
object | The person, { id, name }, where id is the team member id. Read only. |
timeOffType |
object | The type of time off, { id, name }. Read only. |
year |
integer | The calendar year the balance is for. Read only. |
asOfDate |
date | The day these figures were calculated. They are not updated afterwards, so later requests are not reflected. Read only. |
isUnlimited |
boolean | Whether the person’s allowance for this type is unlimited. Read only. |
isApprovalRequired |
boolean | Whether this person’s requests of this type need approval; null when not known. Read only. Can be null. |
allowanceType |
string | fixed, accrued or unlimited, as it applies to this person. Read only. Can be null. |
accruedDays |
decimal | For an accrued allowance, days earned so far in the year. Read only. Can be null. |
carryOverDays |
decimal | Days carried over from the year before. Read only. Can be null. |
availableDays |
decimal | Days the person has available to take in the year. Read only. Can be null. |
usedDays |
decimal | Days taken in approved requests. Read only. Can be null. |
pendingDays |
decimal | Days in requests still waiting for a decision. Read only. Can be null. |
remainingDays |
decimal | Days left in the year. Read only. Can be null. |
usedHours |
decimal | usedDays expressed in hours. Read only. Can be null. |
pendingHours |
decimal | pendingDays expressed in hours. Read only. Can be null. |
createdAt |
datetime | When the balance was added to OneSuite. Read only. |
updatedAt |
datetime | When the balance last changed. Read only. |
The time off allowance object
Section titled “The time off allowance object”A person’s own allowance for one type of time off and one year, where it differs from the type’s default.
| Field | Type | Description |
|---|---|---|
id |
string | The allowance’s id. Read only. |
member |
object | The person, { id, name }, where id is the team member id. Read only. |
timeOffType |
object | The type of time off, { id, name }. Read only. |
year |
integer | The calendar year. Read only. |
daysPerYear |
decimal | The allowance in days that applies to this person. Read only. Can be null. |
customDaysPerYear |
decimal | The days per year set for this person; null when the type’s default applies. Read only. Can be null. |
carryOverDays |
decimal | Carry-over days set for this person; null when the type’s default applies. Read only. Can be null. |
allowanceType |
string | fixed, accrued or unlimited, as it applies to this person. Read only. Can be null. |
accrualSchedule |
string | monthly, biweekly, semimonthly or hourly, as it applies to this person. Read only. Can be null. |
isApprovalRequired |
boolean | Whether this person’s requests of this type need approval. Read only. Can be null. |
createdAt |
datetime | When the allowance was added to OneSuite. Read only. |
updatedAt |
datetime | When the allowance last changed. Read only. |
The holiday calendar object
Section titled “The holiday calendar object”A named set of public holidays that people follow.
| Field | Type | Description |
|---|---|---|
id |
string | The calendar’s id. Read only. |
name |
string | The calendar’s name. Read only. |
holidays |
array of holiday | Every holiday on the calendar, earliest first. Read only. |
createdAt |
datetime | When the calendar was added to OneSuite. Read only. |
updatedAt |
datetime | When the calendar last changed. Read only. |
The holiday object
Section titled “The holiday object”One holiday on a holiday calendar.
| Field | Type | Description |
|---|---|---|
id |
string | The holiday’s id. Read only. |
name |
string | The holiday’s name. Read only. |
date |
date | The day of the holiday. Read only. |
updatedAt |
datetime | When the holiday last changed. Read only. |
The work schedule object
Section titled “The work schedule object”A working week: the hours worked on each day.
| Field | Type | Description |
|---|---|---|
id |
string | The schedule’s id. Read only. |
name |
string | The schedule’s name. Read only. |
isCompanyDefault |
boolean | Whether this is the company default schedule, which applies to everyone without a schedule of their own. Read only. |
isDeactivated |
boolean | Whether the schedule is deactivated. Read only. |
weeklyHours |
decimal | Hours in the whole week. Read only. Can be null. |
mondayHours |
decimal | Hours worked on Monday. 0 means a day off; null means not set. Read only. Can be null. |
tuesdayHours |
decimal | Hours worked on Tuesday. 0 means a day off; null means not set. Read only. Can be null. |
wednesdayHours |
decimal | Hours worked on Wednesday. 0 means a day off; null means not set. Read only. Can be null. |
thursdayHours |
decimal | Hours worked on Thursday. 0 means a day off; null means not set. Read only. Can be null. |
fridayHours |
decimal | Hours worked on Friday. 0 means a day off; null means not set. Read only. Can be null. |
saturdayHours |
decimal | Hours worked on Saturday. 0 means a day off; null means not set. Read only. Can be null. |
sundayHours |
decimal | Hours worked on Sunday. 0 means a day off; null means not set. Read only. Can be null. |
createdAt |
datetime | When the schedule was added to OneSuite. Read only. |
updatedAt |
datetime | When the schedule last changed. Read only. |
The time off assignment object
Section titled “The time off assignment object”Which holiday calendar and work schedule one person follows.
| Field | Type | Description |
|---|---|---|
id |
string | The assignment’s id. Read only. |
member |
object | The person, { id, name }, where id is the team member id. Read only. |
holidayCalendar |
object | The holiday calendar the person follows, { id, name }; null for none. Read only. Can be null. |
workSchedule |
object | The work schedule assigned to the person, { id, name }; null when none is assigned. Read only. Can be null. |
effectiveWorkScheduleName |
string | The name of the schedule that actually applies to the person: the company default when none is assigned. Read only. Can be null. |
effectiveWeeklyHours |
decimal | Weekly hours of the schedule that actually applies. Read only. Can be null. |
createdAt |
datetime | When the assignment was added to OneSuite. Read only. |
updatedAt |
datetime | When the assignment last changed. Read only. |
Time off requests
Section titled “Time off requests”List time off requests
Section titled “List time off requests”Returns time off requests, latest start date first. With from and to it returns every request that overlaps the range: one that ends on or after from and starts on or before to. Without the permission to see team members (view-team-member), only your own are returned.
GET /v1/time-off/requestsParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
page |
query | integer | No | Page number, from 1. Default 1. |
limit |
query | integer | No | Records per page, 1 to 1000. Default 20. |
from |
query | date | No | Requests that end on or after this day. |
to |
query | date | No | Requests that start on or before this day. |
status |
query | string | No | Comma-separated statuses: pending, approved, declined, changesRequested, cancelled. |
filterMemberIds |
query | string | No | Comma-separated team member ids. |
filterTimeOffTypeIds |
query | string | No | Comma-separated time off type ids. |
updatedSince |
query | datetime | No | Only records added or changed at or after this moment. Records deleted since then are not reported. |
sortField |
query | string | No | startDate (default) or updatedAt. |
sortOrder |
query | string | No | asc or desc. Default desc. |
Rules
200with only the token’s person’s own records when they do not have the permission to see team members (view-team-member); naming other team members infilterMemberIdsthen returns an empty list, not an error.403when the business’s subscription is not active.- A business with no time off records answers 200 with an empty list.
400whenfromis afterto, or a status is not one of the five above.
Example request
curl "https://api.onesuite.io/v1/time-off/requests?from=2026-08-01&to=2026-08-31&status=approved&limit=20" \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/time-off/requests?from=2026-08-01&to=2026-08-31&status=approved&limit=20", { headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "data": [ { "id": "cm1b3n8x50012", "member": { "id": "cl9x2k4m10003", "name": "Priya Raman" }, "timeOffType": { "id": "cm1a7q2v30001", "name": "Vacation" }, "status": "approved", "startDate": "2026-08-10", "endDate": "2026-08-11", "days": 2, "startTimeMinutes": null, "endTimeMinutes": null, "note": "Family trip", "reviewReason": null, "reviewedBy": { "id": "cl9x2k4m10007", "name": "Tom Becker" }, "reviewedAt": "2026-07-21T09:14:03.000Z", "submittedAt": "2026-07-20T16:02:44.000Z", "dailyBreakdown": [ { "date": "2026-08-10", "hours": 8, "shareOfDay": 1 }, { "date": "2026-08-11", "hours": 8, "shareOfDay": 1 } ], "createdAt": "2026-10-02T11:40:12.381Z", "updatedAt": "2026-10-02T11:40:12.381Z" } ], "totalCount": 1, "page": 1, "limit": 20}Get a time off request
Section titled “Get a time off request”Returns one time off request with its day-by-day breakdown. Without the permission to see team members (view-team-member), only your own requests can be read.
GET /v1/time-off/requests/:idParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The request’s id. |
Rules
404when the request is another team member’s and the token’s person does not have the permission to see team members (view-team-member).403when the business’s subscription is not active.404when the request does not exist in this business.
Example request
curl "https://api.onesuite.io/v1/time-off/requests/cm1b3n8x50012" \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/time-off/requests/cm1b3n8x50012", { headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "data": { "id": "cm1b3n8x50012", "member": { "id": "cl9x2k4m10003", "name": "Priya Raman" }, "timeOffType": { "id": "cm1a7q2v30001", "name": "Vacation" }, "status": "approved", "startDate": "2026-08-10", "endDate": "2026-08-11", "days": 2, "startTimeMinutes": null, "endTimeMinutes": null, "note": "Family trip", "reviewReason": null, "reviewedBy": { "id": "cl9x2k4m10007", "name": "Tom Becker" }, "reviewedAt": "2026-07-21T09:14:03.000Z", "submittedAt": "2026-07-20T16:02:44.000Z", "dailyBreakdown": [ { "date": "2026-08-10", "hours": 8, "shareOfDay": 1 }, { "date": "2026-08-11", "hours": 8, "shareOfDay": 1 } ], "createdAt": "2026-10-02T11:40:12.381Z", "updatedAt": "2026-10-02T11:40:12.381Z" }}Time off types
Section titled “Time off types”List time off types
Section titled “List time off types”Returns every time off type, active types first, then by name. Deactivated types are included, with isDeactivated set.
GET /v1/time-off/typesParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
page |
query | integer | No | Page number, from 1. Default 1. |
limit |
query | integer | No | Records per page, 1 to 1000. Default 20. |
isDeactivated |
query | boolean | No | true for deactivated types only, false for active types only. |
updatedSince |
query | datetime | No | Only records added or changed at or after this moment. Records deleted since then are not reported. |
Rules
403when the token’s person does not have the permission to see team members (view-team-member).403when the business’s subscription is not active.- A business with no time off records answers 200 with an empty list.
Example request
curl "https://api.onesuite.io/v1/time-off/types" \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/time-off/types", { headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "data": [ { "id": "cm1a7q2v30001", "name": "Vacation", "color": "#4f9d69", "allowanceType": "fixed", "accrualSchedule": null, "accrualStartDate": null, "accrualHours": null, "accrualPerWorkedHours": null, "accrualMaxHoursPerYear": null, "daysPerYear": 20, "maxCarryOverDays": 5, "isApprovalRequired": true, "isHiddenFromMembers": false, "isDeactivated": false, "createdAt": "2026-10-02T11:40:09.104Z", "updatedAt": "2026-10-02T11:40:09.104Z" } ], "totalCount": 1, "page": 1, "limit": 20}Get a time off type
Section titled “Get a time off type”Returns one time off type.
GET /v1/time-off/types/:idParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The type’s id. |
Rules
403when the token’s person does not have the permission to see team members (view-team-member).403when the business’s subscription is not active.404when the type does not exist in this business.
Example request
curl "https://api.onesuite.io/v1/time-off/types/cm1a7q2v30001" \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/time-off/types/cm1a7q2v30001", { headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "data": { "id": "cm1a7q2v30001", "name": "Vacation", "color": "#4f9d69", "allowanceType": "fixed", "accrualSchedule": null, "accrualStartDate": null, "accrualHours": null, "accrualPerWorkedHours": null, "accrualMaxHoursPerYear": null, "daysPerYear": 20, "maxCarryOverDays": 5, "isApprovalRequired": true, "isHiddenFromMembers": false, "isDeactivated": false, "createdAt": "2026-10-02T11:40:09.104Z", "updatedAt": "2026-10-02T11:40:09.104Z" }}Balances
Section titled “Balances”List time off balances
Section titled “List time off balances”Returns balances for one year, one row per person and type of time off, ordered by person name, then type name. Each figure is what was calculated on asOfDate; it is not recalculated from requests. A year, or a person, with no balance has no rows. Without the permission to see team members (view-team-member), only your own are returned.
GET /v1/time-off/balancesParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
page |
query | integer | No | Page number, from 1. Default 1. |
limit |
query | integer | No | Records per page, 1 to 1000. Default 20. |
year |
query | integer | No | Calendar year. Default: the current year. |
filterMemberIds |
query | string | No | Comma-separated team member ids. |
filterTimeOffTypeIds |
query | string | No | Comma-separated time off type ids. |
updatedSince |
query | datetime | No | Only records added or changed at or after this moment. Records deleted since then are not reported. |
Rules
200with only the token’s person’s own records when they do not have the permission to see team members (view-team-member); naming other team members infilterMemberIdsthen returns an empty list, not an error.403when the business’s subscription is not active.- A business with no time off records answers 200 with an empty list.
400whenyearis not a four-digit year.
Example request
curl "https://api.onesuite.io/v1/time-off/balances?year=2026&filterMemberIds=cl9x2k4m10003" \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/time-off/balances?year=2026&filterMemberIds=cl9x2k4m10003", { headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "data": [ { "id": "cm1c0d4f70040", "member": { "id": "cl9x2k4m10003", "name": "Priya Raman" }, "timeOffType": { "id": "cm1a7q2v30001", "name": "Vacation" }, "year": 2026, "asOfDate": "2026-10-02", "isUnlimited": false, "isApprovalRequired": true, "allowanceType": "fixed", "accruedDays": null, "carryOverDays": 3, "availableDays": 28, "usedDays": 9, "pendingDays": 2, "remainingDays": 17, "usedHours": 72, "pendingHours": 16, "createdAt": "2026-10-02T11:40:14.920Z", "updatedAt": "2026-10-02T11:40:14.920Z" } ], "totalCount": 1, "page": 1, "limit": 20}Allowances
Section titled “Allowances”List personal allowances
Section titled “List personal allowances”Returns the allowances set for individual people for one year, where they differ from the type’s default. A person with no row here has the type’s default allowance. Without the permission to see team members (view-team-member), only your own are returned.
GET /v1/time-off/allowancesParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
page |
query | integer | No | Page number, from 1. Default 1. |
limit |
query | integer | No | Records per page, 1 to 1000. Default 20. |
year |
query | integer | No | Calendar year. Default: the current year. |
filterMemberIds |
query | string | No | Comma-separated team member ids. |
filterTimeOffTypeIds |
query | string | No | Comma-separated time off type ids. |
updatedSince |
query | datetime | No | Only records added or changed at or after this moment. Records deleted since then are not reported. |
Rules
200with only the token’s person’s own records when they do not have the permission to see team members (view-team-member); naming other team members infilterMemberIdsthen returns an empty list, not an error.403when the business’s subscription is not active.- A business with no time off records answers 200 with an empty list.
Example request
curl "https://api.onesuite.io/v1/time-off/allowances?year=2026" \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/time-off/allowances?year=2026", { headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "data": [ { "id": "cm1c0d4f70051", "member": { "id": "cl9x2k4m10003", "name": "Priya Raman" }, "timeOffType": { "id": "cm1a7q2v30001", "name": "Vacation" }, "year": 2026, "daysPerYear": 25, "customDaysPerYear": 25, "carryOverDays": null, "allowanceType": "fixed", "accrualSchedule": null, "isApprovalRequired": true, "createdAt": "2026-10-02T11:40:13.511Z", "updatedAt": "2026-10-02T11:40:13.511Z" } ], "totalCount": 1, "page": 1, "limit": 20}Holiday calendars
Section titled “Holiday calendars”List holiday calendars
Section titled “List holiday calendars”Returns every holiday calendar, by name, each with its holidays, earliest first.
GET /v1/time-off/holiday-calendarsParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
page |
query | integer | No | Page number, from 1. Default 1. |
limit |
query | integer | No | Records per page, 1 to 1000. Default 20. |
updatedSince |
query | datetime | No | Only records added or changed at or after this moment. Records deleted since then are not reported. |
Rules
403when the token’s person does not have the permission to see team members (view-team-member).403when the business’s subscription is not active.- A business with no time off records answers 200 with an empty list.
Example request
curl "https://api.onesuite.io/v1/time-off/holiday-calendars" \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/time-off/holiday-calendars", { headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "data": [ { "id": "cm1a9k1e20100", "name": "United Kingdom", "holidays": [ { "id": "cm1a9k1e20101", "name": "New Year's Day", "date": "2026-01-01", "updatedAt": "2026-10-02T11:40:10.002Z" }, { "id": "cm1a9k1e20102", "name": "Christmas Day", "date": "2026-12-25", "updatedAt": "2026-10-02T11:40:10.002Z" } ], "createdAt": "2026-10-02T11:40:10.002Z", "updatedAt": "2026-10-02T11:40:10.002Z" } ], "totalCount": 1, "page": 1, "limit": 20}Get a holiday calendar
Section titled “Get a holiday calendar”Returns one holiday calendar with all its holidays.
GET /v1/time-off/holiday-calendars/:idParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The calendar’s id. |
Rules
403when the token’s person does not have the permission to see team members (view-team-member).403when the business’s subscription is not active.404when the calendar does not exist in this business.
Example request
curl "https://api.onesuite.io/v1/time-off/holiday-calendars/cm1a9k1e20100" \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/time-off/holiday-calendars/cm1a9k1e20100", { headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "data": { "id": "cm1a9k1e20100", "name": "United Kingdom", "holidays": [ { "id": "cm1a9k1e20101", "name": "New Year's Day", "date": "2026-01-01", "updatedAt": "2026-10-02T11:40:10.002Z" }, { "id": "cm1a9k1e20102", "name": "Christmas Day", "date": "2026-12-25", "updatedAt": "2026-10-02T11:40:10.002Z" } ], "createdAt": "2026-10-02T11:40:10.002Z", "updatedAt": "2026-10-02T11:40:10.002Z" }}List holidays in a calendar
Section titled “List holidays in a calendar”Returns the holidays on one calendar, earliest first. from and to narrow it to a range of days.
GET /v1/time-off/holiday-calendars/:id/holidaysParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The calendar’s id. |
page |
query | integer | No | Page number, from 1. Default 1. |
limit |
query | integer | No | Records per page, 1 to 1000. Default 20. |
from |
query | date | No | Holidays on or after this day. |
to |
query | date | No | Holidays on or before this day. |
updatedSince |
query | datetime | No | Only records added or changed at or after this moment. Records deleted since then are not reported. |
Rules
403when the token’s person does not have the permission to see team members (view-team-member).403when the business’s subscription is not active.404when the calendar does not exist in this business.
Example request
curl "https://api.onesuite.io/v1/time-off/holiday-calendars/cm1a9k1e20100/holidays?from=2026-01-01&to=2026-12-31" \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/time-off/holiday-calendars/cm1a9k1e20100/holidays?from=2026-01-01&to=2026-12-31", { headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "data": [ { "id": "cm1a9k1e20101", "name": "New Year's Day", "date": "2026-01-01", "updatedAt": "2026-10-02T11:40:10.002Z" }, { "id": "cm1a9k1e20102", "name": "Christmas Day", "date": "2026-12-25", "updatedAt": "2026-10-02T11:40:10.002Z" } ], "totalCount": 2, "page": 1, "limit": 20}Work schedules
Section titled “Work schedules”List work schedules
Section titled “List work schedules”Returns every work schedule, the company default first, then by name.
GET /v1/time-off/work-schedulesParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
page |
query | integer | No | Page number, from 1. Default 1. |
limit |
query | integer | No | Records per page, 1 to 1000. Default 20. |
updatedSince |
query | datetime | No | Only records added or changed at or after this moment. Records deleted since then are not reported. |
Rules
403when the token’s person does not have the permission to see team members (view-team-member).403when the business’s subscription is not active.- A business with no time off records answers 200 with an empty list.
Example request
curl "https://api.onesuite.io/v1/time-off/work-schedules" \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/time-off/work-schedules", { headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "data": [ { "id": "cm1a8b6c10020", "name": "Standard week", "isCompanyDefault": true, "isDeactivated": false, "weeklyHours": 40, "mondayHours": 8, "tuesdayHours": 8, "wednesdayHours": 8, "thursdayHours": 8, "fridayHours": 8, "saturdayHours": 0, "sundayHours": 0, "createdAt": "2026-10-02T11:40:09.877Z", "updatedAt": "2026-10-02T11:40:09.877Z" } ], "totalCount": 1, "page": 1, "limit": 20}Get a work schedule
Section titled “Get a work schedule”Returns one work schedule.
GET /v1/time-off/work-schedules/:idParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The schedule’s id. |
Rules
403when the token’s person does not have the permission to see team members (view-team-member).403when the business’s subscription is not active.404when the schedule does not exist in this business.
Example request
curl "https://api.onesuite.io/v1/time-off/work-schedules/cm1a8b6c10020" \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/time-off/work-schedules/cm1a8b6c10020", { headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "data": { "id": "cm1a8b6c10020", "name": "Standard week", "isCompanyDefault": true, "isDeactivated": false, "weeklyHours": 40, "mondayHours": 8, "tuesdayHours": 8, "wednesdayHours": 8, "thursdayHours": 8, "fridayHours": 8, "saturdayHours": 0, "sundayHours": 0, "createdAt": "2026-10-02T11:40:09.877Z", "updatedAt": "2026-10-02T11:40:09.877Z" }}Assignments
Section titled “Assignments”List holiday calendar and work schedule assignments
Section titled “List holiday calendar and work schedule assignments”Returns, for each person, the holiday calendar and work schedule they follow. A person with no assignment has no row. Without the permission to see team members (view-team-member), only your own are returned.
GET /v1/time-off/assignmentsParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
page |
query | integer | No | Page number, from 1. Default 1. |
limit |
query | integer | No | Records per page, 1 to 1000. Default 20. |
filterMemberIds |
query | string | No | Comma-separated team member ids. |
filterHolidayCalendarIds |
query | string | No | Comma-separated holiday calendar ids. |
filterWorkScheduleIds |
query | string | No | Comma-separated work schedule ids. |
updatedSince |
query | datetime | No | Only records added or changed at or after this moment. Records deleted since then are not reported. |
Rules
200with only the token’s person’s own records when they do not have the permission to see team members (view-team-member); naming other team members infilterMemberIdsthen returns an empty list, not an error.403when the business’s subscription is not active.- A business with no time off records answers 200 with an empty list.
Example request
curl "https://api.onesuite.io/v1/time-off/assignments?filterMemberIds=cl9x2k4m10003" \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/time-off/assignments?filterMemberIds=cl9x2k4m10003", { headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "data": [ { "id": "cm1c0a1b90030", "member": { "id": "cl9x2k4m10003", "name": "Priya Raman" }, "holidayCalendar": { "id": "cm1a9k1e20100", "name": "United Kingdom" }, "workSchedule": null, "effectiveWorkScheduleName": "Standard week", "effectiveWeeklyHours": 40, "createdAt": "2026-10-02T11:40:11.630Z", "updatedAt": "2026-10-02T11:40:11.630Z" } ], "totalCount": 1, "page": 1, "limit": 20}