Approvals
Approvals shows, for a period, whose time and expenses are not yet submitted, waiting for approval, or approved, and lets a team member submit a period for approval. Approval state is kept on each time entry and expense; these endpoints read it as summary rows (per person, project or client) and submit it a period at a time.
Who can use it
Section titled “Who can use it”Timesheet approvals must be turned on for the business; otherwise every call answers 403. Reading the list depends on the person’s permission to view or approve team time. With the all-team level (administrators always have it), the list covers every active team member. With the managed level (the Project Manager profile by default), it covers the person and the people they manage. A member who may see only their own time gets 403 from the list. Anyone can submit their own time. Submitting someone else’s time needs the permission to approve all team timesheets, so a manager with only the managed level cannot submit for their people.
The approval object
Section titled “The approval object”One row of the approvals list: the time and expenses of one team member (or one project, or one client) in the requested period and stage.
| Field | Type | Description |
|---|---|---|
member |
object | The team member: { id, name }. Null when grouped by project or client. Read only. Can be null. |
project |
object | The project: { id, name, code }. Null unless grouped by project. Read only. Can be null. |
client |
object | The client: { id, name }. Set when grouped by client, and when grouped by project (the project’s client); null otherwise. Read only. Can be null. |
periodStartDate |
date | First day this row covers: the requested from, or the first day of the week when groupBy is memberWeek. Read only. |
periodEndDate |
date | Last day this row covers. Read only. |
totalHours |
decimal | Hours of all counted time entries, in decimal hours with two decimals. Running and paused timers are not counted until they are stopped. Read only. |
billableHours |
decimal | The billable part of totalHours. Time on a project that does not bill time counts as non-billable. Read only. |
nonBillableHours |
decimal | The non-billable part of totalHours. Read only. |
entryCount |
integer | Number of time entries counted. Read only. |
submittableEntryCount |
integer | How many of the counted time entries a submit would move: drafts that are not invoiced or locked. Sent-back entries are not counted; they must be reopened (Reopen a time entry) before they can be submitted again. Read only. |
expenseCount |
integer | Number of expenses counted. Read only. |
submittableExpenseCount |
integer | How many of the counted expenses a submit would move. Read only. |
expenses |
array of object | Expense totals, one item per currency, never added across currencies: { currency, billableAmount, nonBillableAmount, totalAmount }. Empty when there are none. Read only. |
hasActiveTimer |
boolean | True when the team member has a running or paused timer on a day in this row’s period. Submitting that period is refused (409) until the timer is stopped. Always false when grouped by project or client. Read only. |
The approval submission object
Section titled “The approval submission object”The result of a submit: what moved to submitted and what was left as it was.
| Field | Type | Description |
|---|---|---|
member |
object | The team member whose period was submitted: { id, name }. Read only. |
periodStartDate |
date | First day submitted. Read only. |
periodEndDate |
date | Last day submitted. Read only. |
submittedEntryCount |
integer | Number of time entries moved to submitted. Read only. |
submittedExpenseCount |
integer | Number of expenses moved to submitted. Read only. |
skipped |
object | Counts of time entries left as they were, by reason: { alreadySubmitted, alreadyApproved, sentBack, locked, invoiced }, each an integer. Sent-back entries must be reopened (Reopen a time entry) before they can be submitted again. Read only. |
Endpoints
Section titled “Endpoints”List approvals
Section titled “List approvals”Returns what is in one approval stage for one period, one row per team member by default, as the Approvals screen shows it. pendingApproval (the default) lists what is waiting for a decision and approved what has been approved. unsubmitted lists what has not been submitted yet; grouped by member, it also includes every team member in scope who has submitted nothing, even with no time tracked. Rows are sorted by name; with memberWeek, by week (newest first), then name.
GET /v1/approvalsParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
from |
query | date | Yes | First day of the period. |
to |
query | date | Yes | Last day of the period; at most 366 days after from. |
stage |
query | string | No | Which stage of the Approvals screen to list: unsubmitted (time or expenses not submitted yet), pendingApproval (default, waiting for a decision) or approved. This is the stage of a team member’s period, not an entry’s own approvalStatus. |
groupBy |
query | string | No | One row per member (default), per member and week (memberWeek), per project or per client. |
filterMemberIds |
query | string | No | Comma-separated team member ids. |
filterProjectIds |
query | string | No | Comma-separated project ids. |
filterClientIds |
query | string | No | Comma-separated client ids. |
filterRoleIds |
query | string | No | Comma-separated team role ids: only team members with one of these roles. |
updatedSince |
query | datetime | No | Only rows where a counted time entry or expense changed at or after this moment. Each row’s figures still cover the whole period. Time entries and expenses deleted since then are not reported. |
page |
query | integer | No | Page number, from 1. Default 1. |
limit |
query | integer | No | Rows per page. Default 20, at most 1000. |
Rules
403when timesheet approvals are not turned on for the business.403when the person may neither view nor approve team time, at the all-team or the managed level.200with only the rows the person may see: with the managed level, the person and the people they manage; with the all-team level, every active team member. Client portal users never appear.400when from or to is missing or malformed, from is after to, the span is over 366 days, or stage orgroupByis unknown.200: in apendingApprovalrow, expenses include the period’s draft expenses, because approving the period approves them too.
Example request
curl "https://api.onesuite.io/v1/approvals?from=2026-11-16&to=2026-11-22&stage=pendingApproval&limit=2" \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/approvals?from=2026-11-16&to=2026-11-22&stage=pendingApproval&limit=2", { headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "data": [ { "member": { "id": "cm1a7rt0p0002mz08k4h1w9ce", "name": "Jordan Lee" }, "project": null, "client": null, "periodStartDate": "2026-11-16", "periodEndDate": "2026-11-22", "totalHours": 38.5, "billableHours": 31.25, "nonBillableHours": 7.25, "entryCount": 17, "submittableEntryCount": 0, "expenseCount": 2, "submittableExpenseCount": 0, "expenses": [ { "currency": "USD", "billableAmount": 84, "nonBillableAmount": 12.5, "totalAmount": 96.5 } ], "hasActiveTimer": false }, { "member": { "id": "cm1a7rt0p0004mz08d6f7g8hh", "name": "Priya Nair" }, "project": null, "client": null, "periodStartDate": "2026-11-16", "periodEndDate": "2026-11-22", "totalHours": 40, "billableHours": 40, "nonBillableHours": 0, "entryCount": 12, "submittableEntryCount": 0, "expenseCount": 0, "submittableExpenseCount": 0, "expenses": [], "hasActiveTimer": false } ], "totalCount": 5, "page": 1, "limit": 2}Submit time for approval
Section titled “Submit time for approval”Submits a team member’s time and expenses for the period, as the Submit for approval button in OneSuite does. Only drafts move. Submitted and approved items are left alone, sent-back entries stay sent back until they are reopened (Reopen a time entry), and invoiced or locked entries are skipped. Approvers are notified when anything moved. Submitting a period again when nothing is left to submit answers 200 with zero counts.
POST /v1/approvals/submitParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
from |
body | date | Yes | First day of the period. |
to |
body | date | Yes | Last day of the period; at most 371 days after from. |
memberId |
body | string | No | The team member whose time to submit. Defaults to the token’s own team member. |
Rules
200with what moved and what was skipped, including when nothing needed submitting.403when timesheet approvals are not turned on for the business.403when submitting for someone else without permission to approve all team timesheets.404whenmemberIdis not a team member of this business.409when the team member has a running or paused timer on a day in the period; nothing is submitted.400when from or to is missing or not a YYYY-MM-DD day, from is after to, or to is more than 371 days after from.
Example request
curl "https://api.onesuite.io/v1/approvals/submit" \ -X POST \ -H "X-API-Key: $ONESUITE_TOKEN" \ -H "Content-Type: application/json" \ -d '{"from":"2026-11-16","to":"2026-11-22"}'const response = await fetch("https://api.onesuite.io/v1/approvals/submit", { method: "POST", headers: { "X-API-Key": process.env.ONESUITE_TOKEN, "Content-Type": "application/json", }, body: JSON.stringify({ from: "2026-11-16", to: "2026-11-22", }),});const data = await response.json();Example response — status 200
{ "data": { "member": { "id": "cm1a7rt0p0002mz08k4h1w9ce", "name": "Jordan Lee" }, "periodStartDate": "2026-11-16", "periodEndDate": "2026-11-22", "submittedEntryCount": 16, "submittedExpenseCount": 2, "skipped": { "alreadySubmitted": 1, "alreadyApproved": 0, "sentBack": 0, "locked": 0, "invoiced": 0 } }}