Skip to content

Team members

A team member is a person’s place on your team: everyone who tracks time or expenses in the business, including people added to the team who have not joined yet. It holds their details, permission profile, roles, the people they manage, the projects they are on, and their dated billable and cost rates.

What a token can read and change follows its person’s permission profile, as in the app’s Team section. Reading: with the permission to see team members (view-team-member), which the Admin, Manager, Member, Accounting and People Admin profiles have by default, a token reads the whole team; with only the permission to see managed team members (view-managed-team-member), which the Project Manager profile has by default, it reads its own record and the people its person manages; and anyone can read their own record at /v1/team-members/me. A field the token’s person may not see is null: phone and time zone appear only on the token’s own record or for people who may edit team members; capacity only for people who may see team capacity; the billable rate on the token’s own record or for people who may see team rates (Admin, Manager, Accounting and People Admin by default, not Member). Cost rates are the strictest: only people who may see cost rates (Admin, Accounting and People Admin by default, never Manager) see any cost rate, their own included, and reading the cost rate history also needs the permission to see team rates. Changing: inviting needs the permission to invite team members; editing details needs the permission to edit team members; archiving and restoring, and deleting, each need their own permission; changing rates needs the permission to edit team rates (and, for cost rates, to see cost rates); changing a person’s profile or per-person permissions needs the permission to edit profiles. The Admin profile has every permission, so administrators can do all of this.

A person on the team.

Field Type Description
id string The team member’s id. Every other endpoint uses this id for a person, for example on time entries, approvals, expenses and project members. Read only.
name string Full name. For a person who has not joined yet, the name they were added with. Read only.
firstName string First name, or null when not known. Can be null.
lastName string Last name, or null when not known. Can be null.
email string Work email, or null when the person has none. It is the person’s sign-in, so it cannot be changed here. Read only. Can be null.
avatarUrl string Link to the person’s photo, or null when they have none. Read only. Can be null.
hasJoined boolean false for a person who was added to the team but has not accepted an invitation yet. Such a person can have time and expenses recorded for them, but cannot sign in and does not hold a seat. Read only.
isAccountOwner boolean true for the Account Owner. The Account Owner cannot be archived or deleted, and their permissions cannot be changed. Read only.
isArchived boolean true when the person has been archived. Archived people keep all their time and expenses, are left out of team totals and do not hold a seat. Read only.
archivedAt datetime When the person was archived, or null when they are not archived. Read only. Can be null.
employeeId string Employee ID, unique within the business, or null. Can be null.
jobTitle string Job title, up to 191 characters, or null. Can be null.
employmentType string employee or contractor.
weeklyCapacityHours decimal Weekly capacity in hours, 0 to 60. null means the business’s default capacity applies. null unless the token’s person has the permission to see team capacity (view-team-capacity). Can be null.
phone string Work phone, or null. null unless this is the token’s own record or the token’s person may edit team members (edit-team-member). Read only. Can be null.
timeZone string Time zone as an IANA name, such as Europe/London, or null when not set. null unless this is the token’s own record or the token’s person may edit team members (edit-team-member). Can be null.
permissionProfile object { id, name } of the permission profile that decides what this person can do. null for a person who has not joined yet. Can be null.
roles array of object The roles (descriptive labels such as Designer or QA) this person holds, each { id, name }. Roles grant no access.
departments array of object The departments this person belongs to, each { id, name }.
isAddedToNewProjects boolean When true, the person is added to every project created from now on. It never adds them to existing projects.
billableRate decimal Billable rate per hour in force today, in currency. The dated history is at /v1/team-members/:id/billable-rates. null unless this is the token’s own record or the token’s person may see team rates (view-team-rates). Read only. Can be null.
costRate decimal Cost rate per hour in force today, in currency. The dated history is at /v1/team-members/:id/cost-rates. null unless the token’s person may see cost rates (view-team-cost-rates), on the token’s own record too. Read only. Can be null.
currency string ISO currency code of both rates: the business’s currency. Read only.
createdAt datetime When the person was added to the business. Read only.
updatedAt datetime When the person’s details last changed. Changing a rate, role, department or profile does not change it. Read only.

A pending invitation to join the team.

Field Type Description
id string The invitation’s id. Read only.
email string The address the invitation was sent to. Read only.
permissionProfile object { id, name } of the permission profile the person will have when they accept. Read only.
employmentType string employee or contractor, or null when not chosen. Read only. Can be null.
employeeId string The employee ID they will have, or null. Read only. Can be null.
weeklyCapacityHours decimal The weekly capacity they will have; null means the business’s default. null unless the token’s person may see team capacity (view-team-capacity). Read only. Can be null.
billableRate decimal Starting billable rate per hour, in currency, or null when none was set. null unless the token’s person may see team rates (view-team-rates). Read only. Can be null.
costRate decimal Starting cost rate per hour, in currency, or null when none was set. null unless the token’s person may see cost rates (view-team-cost-rates). Read only. Can be null.
currency string ISO currency code of the rates: the business’s currency. Read only.
roles array of object Roles they will hold, each { id, name }. Read only.
departments array of object Departments they will belong to, each { id, name }. Read only.
sentAt datetime When the invitation email was last sent, or null when it has not been sent. Read only. Can be null.
createdAt datetime When the invitation was created. Read only.
updatedAt datetime When the invitation last changed. Read only.

One period of a person’s billable rate history.

Field Type Description
id string The rate period’s id. Read only.
billableRate decimal The billable rate per hour for this period, in currency.
currency string ISO currency code: the business currency. Read only.
startDate date First day of the period. null for the first period, which covers every earlier date (“All prior” in the app). Can be null.
endDate date Last day of the period: the day before the next period starts. null for the latest period. Read only. Can be null.
isCurrent boolean true for the period that covers today (marked Current in the app). Read only.
createdAt datetime When the period was added. Read only.
updatedAt datetime When the period last changed, including when a later period moved its end date. Read only.

One period of a person’s cost rate history.

Field Type Description
id string The rate period’s id. Read only.
costRate decimal The cost rate per hour for this period, in currency.
currency string ISO currency code: the business currency. Read only.
startDate date First day of the period. null for the first period, which covers every earlier date (“All prior” in the app). Can be null.
endDate date Last day of the period: the day before the next period starts. null for the latest period. Read only. Can be null.
isCurrent boolean true for the period that covers today (marked Current in the app). Read only.
createdAt datetime When the period was added. Read only.
updatedAt datetime When the period last changed, including when a later period moved its end date. Read only.

A person assigned to a team member to manage.

Field Type Description
member object { id, name } of the person who is managed. Read only.
email string Their work email, or null. Read only. Can be null.
jobTitle string Their job title, or null. Read only. Can be null.
createdAt datetime When they were assigned to this manager. Read only.

A project a team member is on, seen from the person’s side.

Field Type Description
id string The id of this person’s place on the project. Read only.
project object { id, name, code } of the project. Read only.
client object { id, name } of the project’s client, or null when the project has no client. Read only. Can be null.
projectStatus string The project’s status, as on the project: working, completed, paused or archived. Some older projects may also show submitted or onHold. Read only.
isProjectManager boolean true when this person manages the project. Read only.
createdAt datetime When the person was added to the project. Read only.
updatedAt datetime When this person’s place on the project last changed. Changes to their project rates do not change it. Read only.

A team member’s permission profile and effective permissions.

Field Type Description
permissionProfile object { id, name } of the person’s permission profile, or null when they have none. Read only. Can be null.
permissions array of object Every permission in the catalogue, each { id, key, name, module, isFromProfile, override, isEnabled }. isFromProfile is true when the profile grants it; override is granted or revoked when this person has their own change to it, and null when they follow the profile; isEnabled is the result. Read only.

Returns the people on the team, A to Z by name, including people added to the team who have not joined yet. Client portal contacts and leads are never listed. Archived people are left out unless status asks for them. Pending invitations are listed separately at /v1/team-members/invitations.

GET /v1/team-members

Parameters

Parameter In Type Required Description
page query integer No Page number, from 1. Default 1.
limit query integer No Records per page. Default 20, at most 1000.
search query string No Only people whose name or email contains this text.
status query string No active (default), archived or all.
employmentType query string No employee or contractor.
hasJoined query boolean No false for only people who were added to the team but have not joined yet; true for only people who have joined.
filterRoleIds query string No Comma-separated role ids; people holding any of them.
filterDepartmentIds query string No Comma-separated department ids; people in any of them.
filterPermissionProfileIds query string No Comma-separated permission profile ids; people holding any of them.
sortField query string No name (default), createdAt or updatedAt.
sortOrder query string No asc (default) or desc.
updatedSince query datetime No Only team members changed at or after this moment. Records deleted since then are not reported.

Rules

  • 403 when the token’s person has neither the permission to see team members (view-team-member), which shows the whole team, nor the permission to see managed team members (view-managed-team-member), which shows the token’s own record and the people its person manages.
  • Fields the token’s person may not see are null on every record (see each field).

Example request

Terminal window
curl "https://api.onesuite.io/v1/team-members?status=active&limit=20" \
-H "X-API-Key: $ONESUITE_TOKEN"

Example response — status 200

{
"data": [
{
"id": "cmh2k8w1q0004s6l0an4x7d2e",
"name": "Ana Ortega",
"firstName": "Ana",
"lastName": "Ortega",
"email": "[email protected]",
"avatarUrl": null,
"hasJoined": true,
"isAccountOwner": false,
"isArchived": false,
"archivedAt": null,
"employeeId": "E-104",
"jobTitle": "Senior designer",
"employmentType": "employee",
"weeklyCapacityHours": 35,
"phone": null,
"timeZone": null,
"permissionProfile": {
"id": "cmg9p1r7e0002t3k1mb8w0z4a",
"name": "Member"
},
"roles": [
{
"id": "cmh0x7t2b0001v5m3ds4k8n6d",
"name": "Designer"
}
],
"departments": [
{
"id": "cmh0x6r1a0002w4l2st9n5m3f",
"name": "Studio"
}
],
"isAddedToNewProjects": false,
"billableRate": 120,
"costRate": null,
"currency": "USD",
"createdAt": "2026-03-02T09:14:07.512Z",
"updatedAt": "2026-11-12T16:40:21.090Z"
},
{
"id": "cmh2k8w1q000as6l0cq2h8v1g",
"name": "Chen Wu",
"firstName": "Chen",
"lastName": "Wu",
"email": "[email protected]",
"avatarUrl": null,
"hasJoined": false,
"isAccountOwner": false,
"isArchived": false,
"archivedAt": null,
"employeeId": null,
"jobTitle": "Developer",
"employmentType": "contractor",
"weeklyCapacityHours": null,
"phone": null,
"timeZone": null,
"permissionProfile": null,
"roles": [
{
"id": "cmh0x7t2b0003v5m3dv7p2q1e",
"name": "Developer"
}
],
"departments": [],
"isAddedToNewProjects": false,
"billableRate": null,
"costRate": null,
"currency": "USD",
"createdAt": "2026-09-24T07:02:55.301Z",
"updatedAt": "2026-09-24T07:02:55.301Z"
}
],
"totalCount": 2,
"page": 1,
"limit": 20
}

Returns the team member record of the person who created the token. Any valid personal token can call it.

GET /v1/team-members/me

Rules

  • Never refused for a valid token. Phone, time zone and billable rate are shown because the record is the token’s own; capacity and cost rate follow the same permissions as for anyone else.

Example request

Terminal window
curl "https://api.onesuite.io/v1/team-members/me" \
-H "X-API-Key: $ONESUITE_TOKEN"

Example response — status 200

{
"data": {
"id": "cmh2k8w1q0004s6l0an4x7d2e",
"name": "Ana Ortega",
"firstName": "Ana",
"lastName": "Ortega",
"email": "[email protected]",
"avatarUrl": null,
"hasJoined": true,
"isAccountOwner": false,
"isArchived": false,
"archivedAt": null,
"employeeId": "E-104",
"jobTitle": "Senior designer",
"employmentType": "employee",
"weeklyCapacityHours": 35,
"phone": "+1 555 0100",
"timeZone": "America/New_York",
"permissionProfile": {
"id": "cmg9p1r7e0002t3k1mb8w0z4a",
"name": "Member"
},
"roles": [
{
"id": "cmh0x7t2b0001v5m3ds4k8n6d",
"name": "Designer"
}
],
"departments": [
{
"id": "cmh0x6r1a0002w4l2st9n5m3f",
"name": "Studio"
}
],
"isAddedToNewProjects": false,
"billableRate": 120,
"costRate": null,
"currency": "USD",
"createdAt": "2026-03-02T09:14:07.512Z",
"updatedAt": "2026-11-12T16:40:21.090Z"
}
}

Returns one team member.

GET /v1/team-members/:id

Parameters

Parameter In Type Required Description
id path string Yes The team member’s id.

Rules

  • 403 when the token’s person has neither the permission to see team members (view-team-member), which shows the whole team, nor the permission to see managed team members (view-managed-team-member), which shows the token’s own record and the people its person manages.
  • 404 when the id is not a team member of this business (client portal contacts and leads included), or is not one of the people the token’s person manages when they may only see managed team members.

Example request

Terminal window
curl "https://api.onesuite.io/v1/team-members/cmh2k8w1q0004s6l0an4x7d2e" \
-H "X-API-Key: $ONESUITE_TOKEN"

Example response — status 200

{
"data": {
"id": "cmh2k8w1q0004s6l0an4x7d2e",
"name": "Ana Ortega",
"firstName": "Ana",
"lastName": "Ortega",
"email": "[email protected]",
"avatarUrl": null,
"hasJoined": true,
"isAccountOwner": false,
"isArchived": false,
"archivedAt": null,
"employeeId": "E-104",
"jobTitle": "Senior designer",
"employmentType": "employee",
"weeklyCapacityHours": 35,
"phone": null,
"timeZone": null,
"permissionProfile": {
"id": "cmg9p1r7e0002t3k1mb8w0z4a",
"name": "Member"
},
"roles": [
{
"id": "cmh0x7t2b0001v5m3ds4k8n6d",
"name": "Designer"
}
],
"departments": [
{
"id": "cmh0x6r1a0002w4l2st9n5m3f",
"name": "Studio"
}
],
"isAddedToNewProjects": false,
"billableRate": 120,
"costRate": null,
"currency": "USD",
"createdAt": "2026-03-02T09:14:07.512Z",
"updatedAt": "2026-11-12T16:40:21.090Z"
}
}

Sends the first invitation to a team member who was added to the team but has not joined yet. When they accept, that team member record, with all its time and expenses, becomes theirs. Their permission profile is the one chosen for them when they were added.

POST /v1/team-members/:id/invite

Parameters

Parameter In Type Required Description
id path string Yes The team member’s id: a person who has not joined yet.
confirmedSeatCount body integer No As for Invite a team member: the paid seat total given in the 402 answer.

Rules

  • 403 when the token’s person does not have the permission to invite team members (invite-team-member).
  • 404 when the id is not a team member of this business who has not joined yet.
  • 409 when the person has already joined, is archived, has no email address, or already has a pending invitation.
  • 402 and 409 for seats, as for Invite a team member.
  • Answers 201 with the invitation.

Example request

Terminal window
curl "https://api.onesuite.io/v1/team-members/cmh2k8w1q000as6l0cq2h8v1g/invite" \
-X POST \
-H "X-API-Key: $ONESUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'

Example response — status 201

{
"data": {
"id": "cmh7e6w3i0001d1s9in2o3p4q",
"email": "[email protected]",
"permissionProfile": {
"id": "cmg9p1r7e0002t3k1mb8w0z4a",
"name": "Member"
},
"employmentType": "contractor",
"employeeId": null,
"weeklyCapacityHours": null,
"billableRate": null,
"costRate": null,
"currency": "USD",
"roles": [
{
"id": "cmh0x7t2b0003v5m3dv7p2q1e",
"name": "Developer"
}
],
"departments": [],
"sentAt": "2026-11-20T10:20:44.002Z",
"createdAt": "2026-11-20T10:20:43.870Z",
"updatedAt": "2026-11-20T10:20:44.002Z"
}
}

Changes a team member’s details. Send only the fields to change. roleIds and departmentIds replace the whole set; an empty list clears it. Rates are changed through the billable rate and cost rate endpoints, and archiving through the archive and restore actions.

PATCH /v1/team-members/:id

Parameters

Parameter In Type Required Description
id path string Yes The team member’s id.
firstName body string No Only for a person who has joined. The name belongs to their account, so it changes in every business they belong to, and they are emailed about it.
lastName body string No Only for a person who has joined; the same rules as firstName.
employeeId body string No Up to 64 characters, unique in the business; null clears it.
jobTitle body string No Up to 191 characters; null clears it.
employmentType body string No employee or contractor.
weeklyCapacityHours body decimal No 0 to 60; null returns to the business’s default.
timeZone body string No IANA time zone name, such as Europe/London; null clears it.
roleIds body array of string No Role ids; replaces the whole set.
departmentIds body array of string No Department ids; replaces the whole set.
isAddedToNewProjects body boolean No true to add this person to every project created from now on.
permissionProfileId body string No Id of the permission profile to move the person onto. Their own per-person permission changes are kept.

Rules

  • 403 when the token’s person does not have the permission to edit team members (edit-team-member) and a detail field is sent.
  • 403 when isAddedToNewProjects is sent without the permission to edit projects (edit-project).
  • 403 when permissionProfileId is sent without the permission to edit profiles (edit-business-role), or names a profile the token’s person may not grant.
  • 403 “The Account Owner’s permissions can’t be changed” when permissionProfileId is sent for the Account Owner.
  • 400 “This person hasn’t joined yet, so their name comes from their invitation” when a name is sent for a person who has not joined.
  • 400 when email is sent (it is the person’s sign-in), the employee ID is taken, capacity is outside 0 to 60, or a role or department id does not exist in the business.
  • The whole request is checked before anything is saved, so a refused request changes nothing.
  • 404 when the team member does not exist in this business.

Example request

Terminal window
curl "https://api.onesuite.io/v1/team-members/cmh2k8w1q0004s6l0an4x7d2e" \
-X PATCH \
-H "X-API-Key: $ONESUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"jobTitle":"Design lead","weeklyCapacityHours":32,"roleIds":["cmh0x7t2b0001v5m3ds4k8n6d","cmh0x7t2b0003v5m3dv7p2q1e"]}'

Example response — status 200

{
"data": {
"id": "cmh2k8w1q0004s6l0an4x7d2e",
"name": "Ana Ortega",
"firstName": "Ana",
"lastName": "Ortega",
"email": "[email protected]",
"avatarUrl": null,
"hasJoined": true,
"isAccountOwner": false,
"isArchived": false,
"archivedAt": null,
"employeeId": "E-104",
"jobTitle": "Design lead",
"employmentType": "employee",
"weeklyCapacityHours": 32,
"phone": null,
"timeZone": null,
"permissionProfile": {
"id": "cmg9p1r7e0002t3k1mb8w0z4a",
"name": "Member"
},
"roles": [
{
"id": "cmh0x7t2b0001v5m3ds4k8n6d",
"name": "Designer"
},
{
"id": "cmh0x7t2b0003v5m3dv7p2q1e",
"name": "Developer"
}
],
"departments": [
{
"id": "cmh0x6r1a0002w4l2st9n5m3f",
"name": "Studio"
}
],
"isAddedToNewProjects": false,
"billableRate": 120,
"costRate": null,
"currency": "USD",
"createdAt": "2026-03-02T09:14:07.512Z",
"updatedAt": "2026-11-20T10:40:12.660Z"
}
}

Archives a person. They keep all their time and expenses, can no longer use this business, are left out of team totals and stop holding a seat.

POST /v1/team-members/:id/archive

Parameters

Parameter In Type Required Description
id path string Yes The team member’s id.

Rules

  • 403 when the token’s person does not have the permission to archive team members (archive-team-member).
  • 400 “You can’t archive yourself” for the token’s own record.
  • 403 “The Account Owner can’t be archived”.
  • An already archived person answers 200 with the record unchanged.
  • 404 when the team member does not exist in this business.

Example request

Terminal window
curl "https://api.onesuite.io/v1/team-members/cmh2k8w1q0007s6l0bn9r3c5f/archive" \
-X POST \
-H "X-API-Key: $ONESUITE_TOKEN"

Example response — status 200

{
"data": {
"id": "cmh2k8w1q0007s6l0bn9r3c5f",
"name": "Ben Adeyemi",
"firstName": "Ben",
"lastName": "Adeyemi",
"email": "[email protected]",
"avatarUrl": null,
"hasJoined": true,
"isAccountOwner": false,
"isArchived": true,
"archivedAt": "2026-11-20T10:44:03.115Z",
"employeeId": "E-087",
"jobTitle": "Senior designer",
"employmentType": "employee",
"weeklyCapacityHours": 35,
"phone": null,
"timeZone": null,
"permissionProfile": {
"id": "cmg9p1r7e0002t3k1mb8w0z4a",
"name": "Member"
},
"roles": [
{
"id": "cmh0x7t2b0001v5m3ds4k8n6d",
"name": "Designer"
}
],
"departments": [
{
"id": "cmh0x6r1a0002w4l2st9n5m3f",
"name": "Studio"
}
],
"isAddedToNewProjects": false,
"billableRate": 120,
"costRate": null,
"currency": "USD",
"createdAt": "2026-03-02T09:14:07.512Z",
"updatedAt": "2026-11-20T10:44:03.115Z"
}
}

Brings an archived person back onto the team. They hold a seat again.

POST /v1/team-members/:id/restore

Parameters

Parameter In Type Required Description
id path string Yes The team member’s id.

Rules

  • 403 when the token’s person does not have the permission to archive team members (archive-team-member).
  • 403 when restoring would exceed the number of members the plan allows (active people plus pending invitations).
  • A person who is not archived answers 200 with the record unchanged.
  • 404 when the team member does not exist in this business.

Example request

Terminal window
curl "https://api.onesuite.io/v1/team-members/cmh2k8w1q0007s6l0bn9r3c5f/restore" \
-X POST \
-H "X-API-Key: $ONESUITE_TOKEN"

Example response — status 200

{
"data": {
"id": "cmh2k8w1q0007s6l0bn9r3c5f",
"name": "Ben Adeyemi",
"firstName": "Ben",
"lastName": "Adeyemi",
"email": "[email protected]",
"avatarUrl": null,
"hasJoined": true,
"isAccountOwner": false,
"isArchived": false,
"archivedAt": null,
"employeeId": "E-087",
"jobTitle": "Senior designer",
"employmentType": "employee",
"weeklyCapacityHours": 35,
"phone": null,
"timeZone": null,
"permissionProfile": {
"id": "cmg9p1r7e0002t3k1mb8w0z4a",
"name": "Member"
},
"roles": [
{
"id": "cmh0x7t2b0001v5m3ds4k8n6d",
"name": "Designer"
}
],
"departments": [
{
"id": "cmh0x6r1a0002w4l2st9n5m3f",
"name": "Studio"
}
],
"isAddedToNewProjects": false,
"billableRate": 120,
"costRate": null,
"currency": "USD",
"createdAt": "2026-03-02T09:14:07.512Z",
"updatedAt": "2026-11-20T10:45:30.002Z"
}
}

Removes a person from the team for good. Only possible for someone with no tracked time and no expenses; archive everyone else.

DELETE /v1/team-members/:id

Parameters

Parameter In Type Required Description
id path string Yes The team member’s id.

Rules

  • 403 when the token’s person does not have the permission to delete team members (delete-team-member).
  • 400 “You can’t delete yourself” for the token’s own record.
  • 403 “The Account Owner can’t be deleted. Transfer ownership first.”
  • 409 “This person has tracked time or expenses, so they can’t be deleted. Archive them instead.”
  • On a per-seat plan the freed seat is credited to the subscription.
  • 404 when the team member does not exist in this business.

Example request

Terminal window
curl "https://api.onesuite.io/v1/team-members/cmh2k8w1q000ds6l0dt5m2k9h" \
-X DELETE \
-H "X-API-Key: $ONESUITE_TOKEN"

Example response — status 200

{
"message": "Team member deleted"
}

Returns invitations that have not been accepted yet, newest first. An accepted invitation leaves this list and the person appears in /v1/team-members. Client portal invitations are not listed.

GET /v1/team-members/invitations

Parameters

Parameter In Type Required Description
page query integer No Page number, from 1. Default 1.
limit query integer No Records per page. Default 20, at most 1000.
search query string No Only invitations whose email address contains this text.
updatedSince query datetime No Only invitations changed at or after this moment. Records deleted since then are not reported.

Rules

  • 403 when the token’s person does not have the permission to invite team members (invite-team-member).

Example request

Terminal window
curl "https://api.onesuite.io/v1/team-members/invitations" \
-H "X-API-Key: $ONESUITE_TOKEN"

Example response — status 200

{
"data": [
{
"id": "cmh6c4u1g0001b9q7in4b5c6d",
"email": "[email protected]",
"permissionProfile": {
"id": "cmg9p1r7e0002t3k1mb8w0z4a",
"name": "Member"
},
"employmentType": "employee",
"employeeId": "E-131",
"weeklyCapacityHours": 40,
"billableRate": 100,
"costRate": null,
"currency": "USD",
"roles": [
{
"id": "cmh0x7t2b0003v5m3dv7p2q1e",
"name": "Developer"
}
],
"departments": [],
"sentAt": "2026-11-18T14:05:12.000Z",
"createdAt": "2026-11-18T14:05:11.802Z",
"updatedAt": "2026-11-18T14:05:12.330Z"
}
],
"totalCount": 1,
"page": 1,
"limit": 20
}

Adds someone to the team by sending them an invitation email. Only the email address and a permission profile are required; their name comes from their own account when they accept. Until they accept they are a pending invitation, not a team member, and have no team member id. On a plan that charges per seat, an invitation that needs a seat the business has not paid for is refused with 402 until the request confirms the new seat total in confirmedSeatCount.

POST /v1/team-members/invitations

Parameters

Parameter In Type Required Description
email body string Yes The email address to invite.
permissionProfileId body string Yes Id of the permission profile they will have.
employmentType body string No employee or contractor.
employeeId body string No Employee ID, up to 64 characters, unique in the business.
weeklyCapacityHours body decimal No 0 to 60; leave it out for the business’s default.
billableRate body decimal No Starting billable rate per hour, in the business’s currency. Needs the permission to edit team rates.
costRate body decimal No Starting cost rate per hour, in the business’s currency. Needs the permissions to edit team rates and to see cost rates.
roleIds body array of string No Ids of the roles they will hold.
departmentIds body array of string No Ids of the departments they will belong to.
grantPermissionIds body array of string No Permission ids to add on top of the profile, for this person only. Permissions the token’s person may not grant are dropped.
revokePermissionIds body array of string No Permissions of the profile to leave off, for this person only.
message body string No A note included in the invitation email.
confirmedSeatCount body integer No On a per-seat plan, the total number of paid seats the business will have after this invitation, as given in the 402 answer. Sending it agrees to buy the extra seat.

Rules

  • 403 when the token’s person does not have the permission to invite team members (invite-team-member).
  • 403 “You can’t grant a profile with more team or settings access than your own” when the profile carries team or settings permissions the token’s person does not have.
  • 403 when billableRate is sent without the permission to edit team rates, or costRate without the permissions to edit team rates and to see cost rates.
  • grantPermissionIds is narrowed to the permissions the token’s person may grant; the others are dropped without an error.
  • 400 when the address is not an email address, already belongs to a team member, or already has a pending invitation.
  • 400 when the employee ID is taken, a role or department id is unknown, capacity is outside 0 to 60, or a rate is not a valid amount.
  • 403 on a plan with a fixed number of members when there is no room; the message says how many members the plan covers and how many are in use. A team member who has not joined yet does not count.
  • 402 on a per-seat plan when this invitation needs a seat that is not paid for and confirmedSeatCount was not sent; the message gives the new seat total. During a trial the extra seat is billed when the trial ends.
  • 409 when confirmedSeatCount does not match the seat total now because the team has changed; send the request again without it to get the new total.
  • Answers 201 with the invitation. The seat is added to the subscription when the invitation is sent.

Example request

Terminal window
curl "https://api.onesuite.io/v1/team-members/invitations" \
-X POST \
-H "X-API-Key: $ONESUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"email":"[email protected]","permissionProfileId":"cmg9p1r7e0002t3k1mb8w0z4a","employmentType":"employee","weeklyCapacityHours":40,"billableRate":100,"roleIds":["cmh0x7t2b0003v5m3dv7p2q1e"]}'

Example response — status 201

{
"data": {
"id": "cmh6c4u1g0001b9q7in4b5c6d",
"email": "[email protected]",
"permissionProfile": {
"id": "cmg9p1r7e0002t3k1mb8w0z4a",
"name": "Member"
},
"employmentType": "employee",
"employeeId": null,
"weeklyCapacityHours": 40,
"billableRate": 100,
"costRate": null,
"currency": "USD",
"roles": [
{
"id": "cmh0x7t2b0003v5m3dv7p2q1e",
"name": "Developer"
}
],
"departments": [],
"sentAt": "2026-11-20T10:12:00.410Z",
"createdAt": "2026-11-20T10:12:00.118Z",
"updatedAt": "2026-11-20T10:12:00.410Z"
}
}

Withdraws a pending invitation. The link in the email stops working.

DELETE /v1/team-members/invitations/:id

Parameters

Parameter In Type Required Description
id path string Yes The invitation’s id.

Rules

  • 403 when the token’s person does not have the permission to invite team members (invite-team-member).
  • 404 when there is no pending team invitation with this id in the business.

Example request

Terminal window
curl "https://api.onesuite.io/v1/team-members/invitations/cmh6c4u1g0001b9q7in4b5c6d" \
-X DELETE \
-H "X-API-Key: $ONESUITE_TOKEN"

Example response — status 200

{
"message": "Invitation cancelled"
}

Returns what the person can do: their permission profile, and every permission with whether the profile grants it, whether this person has their own change to it, and the result.

GET /v1/team-members/:id/permissions

Parameters

Parameter In Type Required Description
id path string Yes The team member’s id.

Rules

  • 403 when the token’s person does not have the permission to see profiles and permissions (view-business-roles-and-permissions).
  • 404 when the team member does not exist in this business.

Example request

Terminal window
curl "https://api.onesuite.io/v1/team-members/cmh2k8w1q0004s6l0an4x7d2e/permissions" \
-H "X-API-Key: $ONESUITE_TOKEN"

Example response — status 200

{
"data": {
"permissionProfile": {
"id": "cmg9p1r7e0002t3k1mb8w0z4a",
"name": "Member"
},
"permissions": [
{
"id": "cmf0a1b2c0010c0r8pe1d2e3f",
"key": "view-team-member",
"name": "View team member",
"module": "TEAM",
"isFromProfile": true,
"override": null,
"isEnabled": true
},
{
"id": "cmf0a1b2c0011c0r8pe4g5h6i",
"key": "view-team-rates",
"name": "View team rates",
"module": "TEAM",
"isFromProfile": false,
"override": "granted",
"isEnabled": true
},
{
"id": "cmf0a1b2c0012c0r8pe7j8k9l",
"key": "create-project",
"name": "Create project",
"module": "PROJECT",
"isFromProfile": true,
"override": "revoked",
"isEnabled": false
}
]
}
}

Saves the complete set of permissions the person should have. Only the differences from their profile are kept as per-person changes, so if a permission is later added to the profile it stops being a per-person change. Can also move them onto another profile in the same request.

PUT /v1/team-members/:id/permissions

Parameters

Parameter In Type Required Description
id path string Yes The team member’s id.
enabledPermissionIds body array of string Yes Ids of every permission the person should end up with. Ids not in the catalogue are ignored.
permissionProfileId body string No Id of a permission profile to move the person onto; enabledPermissionIds is then compared with that profile.

Rules

  • 403 when the token’s person does not have the permission to edit profiles (edit-business-role).
  • 403 “The Account Owner’s permissions can’t be changed”.
  • 403 “You can’t grant a profile with more team or settings access than your own” for a profile the token’s person may not grant.
  • 404 when permissionProfileId does not exist in this business, or the team member does not exist.
  • 400 when enabledPermissionIds is missing.
  • The change takes effect from the person’s next request.

Example request

Terminal window
curl "https://api.onesuite.io/v1/team-members/cmh2k8w1q0004s6l0an4x7d2e/permissions" \
-X PUT \
-H "X-API-Key: $ONESUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"enabledPermissionIds":["cmf0a1b2c0010c0r8pe1d2e3f","cmf0a1b2c0011c0r8pe4g5h6i"]}'

Example response — status 200

{
"data": {
"permissionProfile": {
"id": "cmg9p1r7e0002t3k1mb8w0z4a",
"name": "Member"
},
"permissions": [
{
"id": "cmf0a1b2c0010c0r8pe1d2e3f",
"key": "view-team-member",
"name": "View team member",
"module": "TEAM",
"isFromProfile": true,
"override": null,
"isEnabled": true
},
{
"id": "cmf0a1b2c0011c0r8pe4g5h6i",
"key": "view-team-rates",
"name": "View team rates",
"module": "TEAM",
"isFromProfile": false,
"override": "granted",
"isEnabled": true
},
{
"id": "cmf0a1b2c0012c0r8pe7j8k9l",
"key": "create-project",
"name": "Create project",
"module": "PROJECT",
"isFromProfile": true,
"override": "revoked",
"isEnabled": false
}
]
}
}

Returns the people assigned to this person to manage (Assigned people in the app). If this person’s profile has the permissions for managed team members, they see and approve the time and expenses of exactly these people.

GET /v1/team-members/:id/managed-people

Parameters

Parameter In Type Required Description
id path string Yes The team member’s id.
page query integer No Page number, from 1. Default 1.
limit query integer No Records per page. Default 20, at most 1000.

Rules

  • 403 when the token’s person does not have the permission to see team members (view-team-member).
  • 404 when the team member does not exist in this business. A person who manages nobody answers 200 with an empty list.

Example request

Terminal window
curl "https://api.onesuite.io/v1/team-members/cmh2k8w1q0004s6l0an4x7d2e/managed-people" \
-H "X-API-Key: $ONESUITE_TOKEN"

Example response — status 200

{
"data": [
{
"member": {
"id": "cmh2k8w1q0007s6l0bn9r3c5f",
"name": "Ben Adeyemi"
},
"email": "[email protected]",
"jobTitle": "Designer",
"createdAt": "2026-05-11T12:00:31.204Z"
}
],
"totalCount": 1,
"page": 1,
"limit": 20
}

Replaces the whole list of people this person manages; an empty list clears it. Any team member can be given people to manage, but it only widens what they see if their permission profile has the permissions for managed team members.

PUT /v1/team-members/:id/managed-people

Parameters

Parameter In Type Required Description
id path string Yes The team member’s id.
memberIds body array of string Yes Team member ids of the people to manage.

Rules

  • 403 when the token’s person does not have the permission to edit team members (edit-team-member).
  • 400 naming the ids that are not team members of this business, or when the list contains the person themselves.
  • The change takes effect immediately in everything the manager can see: time, expenses, approvals and reports.
  • 404 when the team member does not exist in this business.

Example request

Terminal window
curl "https://api.onesuite.io/v1/team-members/cmh2k8w1q0004s6l0an4x7d2e/managed-people" \
-X PUT \
-H "X-API-Key: $ONESUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"memberIds":["cmh2k8w1q0007s6l0bn9r3c5f","cmh2k8w1q000as6l0cq2h8v1g"]}'

Example response — status 200

{
"data": [
{
"member": {
"id": "cmh2k8w1q0007s6l0bn9r3c5f",
"name": "Ben Adeyemi"
},
"email": "[email protected]",
"jobTitle": "Designer",
"createdAt": "2026-11-20T10:50:02.551Z"
},
{
"member": {
"id": "cmh2k8w1q000as6l0cq2h8v1g",
"name": "Chen Wu"
},
"email": "[email protected]",
"jobTitle": "Developer",
"createdAt": "2026-11-20T10:50:02.551Z"
}
],
"totalCount": 2,
"page": 1,
"limit": 20
}

Returns the projects this person is on (Assigned projects in the app), most recently added first, archived projects included. Private projects the token’s person is not on are left out. The person’s rates, work types and budget on one project are at /v1/projects/:id/members.

GET /v1/team-members/:id/projects

Parameters

Parameter In Type Required Description
id path string Yes The team member’s id.
page query integer No Page number, from 1. Default 1.
limit query integer No Records per page. Default 20, at most 1000.
isProjectManager query boolean No true for only the projects the person manages.
updatedSince query datetime No Only project places changed at or after this moment. Records deleted since then are not reported.

Rules

  • The token’s own projects can always be read (or use /v1/team-members/me/projects).
  • 403 when reading anyone else’s projects without the permission to see team members (view-team-member).
  • Private projects are left out unless the token’s person may see all projects (view-all-project) or is on them; totalCount counts only what is returned.
  • 404 when the team member does not exist in this business.

Example request

Terminal window
curl "https://api.onesuite.io/v1/team-members/cmh2k8w1q0004s6l0an4x7d2e/projects" \
-H "X-API-Key: $ONESUITE_TOKEN"

Example response — status 200

{
"data": [
{
"id": "cmh1y9w5e0003a8p6co1y2z3a",
"project": {
"id": "cmh1y8u3c0001y6n4pr5s6t7u",
"name": "Website refresh",
"code": "WEB-24"
},
"client": {
"id": "cmh1y2v4d0001z7o5cl8v9w0x",
"name": "Northwind Studio"
},
"projectStatus": "working",
"isProjectManager": true,
"createdAt": "2026-04-07T08:30:00.000Z",
"updatedAt": "2026-04-07T08:30:00.000Z"
}
],
"totalCount": 1,
"page": 1,
"limit": 20
}

Returns the projects the token’s person is on. The same as /v1/team-members/:id/projects for the token’s own record.

GET /v1/team-members/me/projects

Parameters

Parameter In Type Required Description
page query integer No Page number, from 1. Default 1.
limit query integer No Records per page. Default 20, at most 1000.
isProjectManager query boolean No true for only the projects the person manages.
updatedSince query datetime No Only project places changed at or after this moment. Records deleted since then are not reported.

Rules

  • Never refused for a valid token.

Example request

Terminal window
curl "https://api.onesuite.io/v1/team-members/me/projects" \
-H "X-API-Key: $ONESUITE_TOKEN"

Example response — status 200

{
"data": [
{
"id": "cmh1y9w5e0003a8p6co1y2z3a",
"project": {
"id": "cmh1y8u3c0001y6n4pr5s6t7u",
"name": "Website refresh",
"code": "WEB-24"
},
"client": {
"id": "cmh1y2v4d0001z7o5cl8v9w0x",
"name": "Northwind Studio"
},
"projectStatus": "working",
"isProjectManager": true,
"createdAt": "2026-04-07T08:30:00.000Z",
"updatedAt": "2026-04-07T08:30:00.000Z"
}
],
"totalCount": 1,
"page": 1,
"limit": 20
}

Returns the person’s billable rate history, oldest period first. Periods never overlap and never leave a gap: each ends the day before the next one starts, the first has no start date and covers every earlier date, and the last has no end date. A person whose rate was set before rate history was kept may have a billable rate on their record and no periods here.

GET /v1/team-members/:id/billable-rates

Parameters

Parameter In Type Required Description
id path string Yes The team member’s id.
page query integer No Page number, from 1. Default 1.
limit query integer No Records per page. Default 20, at most 1000.
updatedSince query datetime No Only periods changed at or after this moment. Records deleted since then are not reported.

Rules

  • 403 when the token’s person does not have the permission to see team rates (view-team-rates), on their own record too.
  • 404 when the team member does not exist in this business or is not visible to the token’s person.

Example request

Terminal window
curl "https://api.onesuite.io/v1/team-members/cmh2k8w1q0004s6l0an4x7d2e/billable-rates" \
-H "X-API-Key: $ONESUITE_TOKEN"

Example response — status 200

{
"data": [
{
"id": "cmh5b3t0f0001x9o4ra1c2d3e",
"billableRate": 95,
"currency": "USD",
"startDate": null,
"endDate": "2025-12-31",
"isCurrent": false,
"createdAt": "2026-03-02T09:14:07.512Z",
"updatedAt": "2026-06-01T10:02:44.118Z"
},
{
"id": "cmh5b3t0f0004x9o4ra4f5g6h",
"billableRate": 110,
"currency": "USD",
"startDate": "2026-01-01",
"endDate": "2026-06-30",
"isCurrent": false,
"createdAt": "2026-06-01T10:02:44.118Z",
"updatedAt": "2026-07-03T08:11:09.440Z"
},
{
"id": "cmh5b3t0f0007x9o4ra7i8j9k",
"billableRate": 120,
"currency": "USD",
"startDate": "2026-07-01",
"endDate": null,
"isCurrent": true,
"createdAt": "2026-07-03T08:11:09.440Z",
"updatedAt": "2026-07-03T08:11:09.440Z"
}
],
"totalCount": 3,
"page": 1,
"limit": 20
}

Returns one period of the person’s billable rate history.

GET /v1/team-members/:id/billable-rates/:rateId

Parameters

Parameter In Type Required Description
id path string Yes The team member’s id.
rateId path string Yes The rate period’s id.

Rules

  • 403 when the token’s person does not have the permission to see team rates (view-team-rates), on their own record too.
  • 404 when the period does not exist, was removed, or is a period of the other kind of rate.

Example request

Terminal window
curl "https://api.onesuite.io/v1/team-members/cmh2k8w1q0004s6l0an4x7d2e/billable-rates/cmh5b3t0f0007x9o4ra7i8j9k" \
-H "X-API-Key: $ONESUITE_TOKEN"

Example response — status 200

{
"data": {
"id": "cmh5b3t0f0007x9o4ra7i8j9k",
"billableRate": 120,
"currency": "USD",
"startDate": "2026-07-01",
"endDate": null,
"isCurrent": true,
"createdAt": "2026-07-03T08:11:09.440Z",
"updatedAt": "2026-07-03T08:11:09.440Z"
}
}

Adds a new billable rate that takes effect on startDate. The period that covered that date now ends the day before; the new period runs until the day before the next later period, or has no end if there is none. Later periods are kept as they are: adding a rate never removes or changes a later one (remove it with Remove a billable rate period if it should go). A startDate that an existing period already starts on corrects that period’s rate instead, keeping its id. A future startDate is accepted: the rate shown on the team member changes on that day. The person’s first rate needs no date; a date sent with the first rate is ignored and the period covers every earlier date.

POST /v1/team-members/:id/billable-rates

Parameters

Parameter In Type Required Description
id path string Yes The team member’s id.
billableRate body decimal Yes Hourly rate in the business’s currency, 0 to 9999999999999.99.
startDate body date No First day the rate applies. Required once the person has any billable rate.
repriceLoggedTime body object No Send to also re-price time already logged on the days whose rate this change alters: { "includeApprovedTime": boolean }. Without it, time already logged keeps the rate it was priced at. Open time is always re-priced; approved time only when includeApprovedTime is true and the token’s person may approve everyone’s time (approve-team-timesheet), otherwise it is ignored; time on a sent or paid invoice, and time in a locked period, never. The days re-priced follow from the rate’s own dates, so no fromDate is taken.

Rules

  • Adding a rate starts it on startDate; the period that covered that date ends the day before; later periods are kept.
  • 403 when the token’s person does not have the permission to edit team rates (edit-team-rates).
  • 400 “Choose the date this rate takes effect” when startDate is missing and the person already has a billable rate.
  • 400 when billableRate is missing, negative, too large or not a number, or startDate is not a valid date.
  • Answers 201 with the new period, or 200 with the corrected period when startDate matched an existing period’s start.
  • With repriceLoggedTime, entries on a draft invoice are re-priced too and the draft’s lines recalculated. The response’s repricedEntryCount, beside data, says how many entries changed.
  • 404 when the team member does not exist in this business.

Example request

Terminal window
curl "https://api.onesuite.io/v1/team-members/cmh2k8w1q0004s6l0an4x7d2e/billable-rates" \
-X POST \
-H "X-API-Key: $ONESUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"billableRate":130,"startDate":"2027-01-01"}'

Example response — status 201

{
"data": {
"id": "cmh7d5v2h0001c0r8ra0l1m2n",
"billableRate": 130,
"currency": "USD",
"startDate": "2027-01-01",
"endDate": null,
"isCurrent": false,
"createdAt": "2026-11-20T10:31:02.004Z",
"updatedAt": "2026-11-20T10:31:02.004Z"
},
"repricedEntryCount": 0
}

Changes a period’s rate, its start date, or both. A period may be moved to any start date no other period already has; the history is re-ordered and every end date recalculated. The first period has no start date, and a date sent for it is ignored.

PATCH /v1/team-members/:id/billable-rates/:rateId

Parameters

Parameter In Type Required Description
id path string Yes The team member’s id.
rateId path string Yes The rate period’s id.
billableRate body decimal No New hourly rate, 0 to 9999999999999.99.
startDate body date No New first day of the period.
repriceLoggedTime body object No Send to also re-price time already logged on the days whose rate this change alters: { "includeApprovedTime": boolean }. Without it, time already logged keeps the rate it was priced at. Open time is always re-priced; approved time only when includeApprovedTime is true and the token’s person may approve everyone’s time (approve-team-timesheet), otherwise it is ignored; time on a sent or paid invoice, and time in a locked period, never. The days re-priced follow from the rate’s own dates, so no fromDate is taken.

Rules

  • 403 when the token’s person does not have the permission to edit team rates (edit-team-rates).
  • 400 “Enter a rate or a start date” when neither is sent.
  • 400 “Start date has already been taken” when another period starts on that date.
  • 404 when the period does not exist, was removed, or is a period of the other kind of rate.
  • With repriceLoggedTime, entries on a draft invoice are re-priced too and the draft’s lines recalculated. The response’s repricedEntryCount, beside data, says how many entries changed.

Example request

Terminal window
curl "https://api.onesuite.io/v1/team-members/cmh2k8w1q0004s6l0an4x7d2e/billable-rates/cmh5b3t0f0007x9o4ra7i8j9k" \
-X PATCH \
-H "X-API-Key: $ONESUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"billableRate":125}'

Example response — status 200

{
"data": {
"id": "cmh5b3t0f0007x9o4ra7i8j9k",
"billableRate": 125,
"currency": "USD",
"startDate": "2026-07-01",
"endDate": null,
"isCurrent": true,
"createdAt": "2026-07-03T08:11:09.440Z",
"updatedAt": "2026-11-20T10:33:40.771Z"
},
"repricedEntryCount": 0
}

Removes one period from the history. It is kept for audit, but no longer prices anything.

DELETE /v1/team-members/:id/billable-rates/:rateId

Parameters

Parameter In Type Required Description
id path string Yes The team member’s id.
rateId path string Yes The rate period’s id.
repriceLoggedTime body object No Send to also re-price time already logged on the days whose rate this change alters: { "includeApprovedTime": boolean }. Without it, time already logged keeps the rate it was priced at. Open time is always re-priced; approved time only when includeApprovedTime is true and the token’s person may approve everyone’s time (approve-team-timesheet), otherwise it is ignored; time on a sent or paid invoice, and time in a locked period, never. The days re-priced follow from the rate’s own dates, so no fromDate is taken.

Rules

  • 403 when the token’s person does not have the permission to edit team rates (edit-team-rates).
  • The period before the removed one is extended to cover its dates, so the history never has a gap. Removing the first period makes the next one the first.
  • Removing the only period that covers today leaves the person with no billable rate from that point.
  • 404 when the period does not exist or was already removed.
  • With repriceLoggedTime, entries on a draft invoice are re-priced too and the draft’s lines recalculated. The response’s repricedEntryCount, beside message, says how many entries changed.

Example request

Terminal window
curl "https://api.onesuite.io/v1/team-members/cmh2k8w1q0004s6l0an4x7d2e/billable-rates/cmh5b3t0f0004x9o4ra4f5g6h" \
-X DELETE \
-H "X-API-Key: $ONESUITE_TOKEN"

Example response — status 200

{
"message": "Rate removed"
}

Returns the person’s cost rate history, oldest period first. Periods never overlap and never leave a gap: each ends the day before the next one starts, the first has no start date and covers every earlier date, and the last has no end date. A person whose rate was set before rate history was kept may have a cost rate on their record and no periods here.

GET /v1/team-members/:id/cost-rates

Parameters

Parameter In Type Required Description
id path string Yes The team member’s id.
page query integer No Page number, from 1. Default 1.
limit query integer No Records per page. Default 20, at most 1000.
updatedSince query datetime No Only periods changed at or after this moment. Records deleted since then are not reported.

Rules

  • 403 unless the token’s person has both the permission to see team rates (view-team-rates) and the permission to see cost rates (view-team-cost-rates), on their own record too.
  • 404 when the team member does not exist in this business or is not visible to the token’s person.

Example request

Terminal window
curl "https://api.onesuite.io/v1/team-members/cmh2k8w1q0004s6l0an4x7d2e/cost-rates" \
-H "X-API-Key: $ONESUITE_TOKEN"

Example response — status 200

{
"data": [
{
"id": "cmh5b3t0f0001x9o4rc1c2d3e",
"costRate": 55,
"currency": "USD",
"startDate": null,
"endDate": "2025-12-31",
"isCurrent": false,
"createdAt": "2026-03-02T09:14:07.512Z",
"updatedAt": "2026-06-01T10:02:44.118Z"
},
{
"id": "cmh5b3t0f0004x9o4rc4f5g6h",
"costRate": 62,
"currency": "USD",
"startDate": "2026-01-01",
"endDate": "2026-06-30",
"isCurrent": false,
"createdAt": "2026-06-01T10:02:44.118Z",
"updatedAt": "2026-07-03T08:11:09.440Z"
},
{
"id": "cmh5b3t0f0007x9o4rc7i8j9k",
"costRate": 68,
"currency": "USD",
"startDate": "2026-07-01",
"endDate": null,
"isCurrent": true,
"createdAt": "2026-07-03T08:11:09.440Z",
"updatedAt": "2026-07-03T08:11:09.440Z"
}
],
"totalCount": 3,
"page": 1,
"limit": 20
}

Returns one period of the person’s cost rate history.

GET /v1/team-members/:id/cost-rates/:rateId

Parameters

Parameter In Type Required Description
id path string Yes The team member’s id.
rateId path string Yes The rate period’s id.

Rules

  • 403 unless the token’s person has both the permission to see team rates (view-team-rates) and the permission to see cost rates (view-team-cost-rates), on their own record too.
  • 404 when the period does not exist, was removed, or is a period of the other kind of rate.

Example request

Terminal window
curl "https://api.onesuite.io/v1/team-members/cmh2k8w1q0004s6l0an4x7d2e/cost-rates/cmh5b3t0f0007x9o4rc7i8j9k" \
-H "X-API-Key: $ONESUITE_TOKEN"

Example response — status 200

{
"data": {
"id": "cmh5b3t0f0007x9o4rc7i8j9k",
"costRate": 68,
"currency": "USD",
"startDate": "2026-07-01",
"endDate": null,
"isCurrent": true,
"createdAt": "2026-07-03T08:11:09.440Z",
"updatedAt": "2026-07-03T08:11:09.440Z"
}
}

Adds a new cost rate that takes effect on startDate. The period that covered that date now ends the day before; the new period runs until the day before the next later period, or has no end if there is none. Later periods are kept as they are: adding a rate never removes or changes a later one (remove it with Remove a cost rate period if it should go). A startDate that an existing period already starts on corrects that period’s rate instead, keeping its id. A future startDate is accepted: the rate shown on the team member changes on that day. The person’s first rate needs no date; a date sent with the first rate is ignored and the period covers every earlier date.

POST /v1/team-members/:id/cost-rates

Parameters

Parameter In Type Required Description
id path string Yes The team member’s id.
costRate body decimal Yes Hourly rate in the business’s currency, 0 to 9999999999999.99.
startDate body date No First day the rate applies. Required once the person has any cost rate.
repriceLoggedTime body object No Send to also re-price time already logged on the days whose rate this change alters: { "includeApprovedTime": boolean, "correctInvoicedCost": boolean }. Without it, time already logged keeps the rate it was priced at. Open time is always re-priced; approved time only when includeApprovedTime is true and the token’s person may approve everyone’s time (approve-team-timesheet), otherwise it is ignored; time on a sent or paid invoice, and time in a locked period, never, except that correctInvoicedCost true also corrects the cost (never the billable amount) of invoiced time outside a locked period. The days re-priced follow from the rate’s own dates, so no fromDate is taken.

Rules

  • Adding a rate starts it on startDate; the period that covered that date ends the day before; later periods are kept.
  • 403 unless the token’s person has both the permission to edit team rates (edit-team-rates) and the permission to see cost rates (view-team-cost-rates).
  • 400 “Choose the date this rate takes effect” when startDate is missing and the person already has a cost rate.
  • 400 when costRate is missing, negative, too large or not a number, or startDate is not a valid date.
  • Answers 201 with the new period, or 200 with the corrected period when startDate matched an existing period’s start.
  • With repriceLoggedTime, entries on a draft invoice are re-priced too and the draft’s lines recalculated. The response’s repricedEntryCount, beside data, says how many entries changed.
  • 404 when the team member does not exist in this business.

Example request

Terminal window
curl "https://api.onesuite.io/v1/team-members/cmh2k8w1q0004s6l0an4x7d2e/cost-rates" \
-X POST \
-H "X-API-Key: $ONESUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"costRate":72,"startDate":"2027-01-01"}'

Example response — status 201

{
"data": {
"id": "cmh7d5v2h0002c0r8rc0l1m2n",
"costRate": 72,
"currency": "USD",
"startDate": "2027-01-01",
"endDate": null,
"isCurrent": false,
"createdAt": "2026-11-20T10:31:02.004Z",
"updatedAt": "2026-11-20T10:31:02.004Z"
},
"repricedEntryCount": 0
}

Changes a period’s rate, its start date, or both. A period may be moved to any start date no other period already has; the history is re-ordered and every end date recalculated. The first period has no start date, and a date sent for it is ignored.

PATCH /v1/team-members/:id/cost-rates/:rateId

Parameters

Parameter In Type Required Description
id path string Yes The team member’s id.
rateId path string Yes The rate period’s id.
costRate body decimal No New hourly rate, 0 to 9999999999999.99.
startDate body date No New first day of the period.
repriceLoggedTime body object No Send to also re-price time already logged on the days whose rate this change alters: { "includeApprovedTime": boolean, "correctInvoicedCost": boolean }. Without it, time already logged keeps the rate it was priced at. Open time is always re-priced; approved time only when includeApprovedTime is true and the token’s person may approve everyone’s time (approve-team-timesheet), otherwise it is ignored; time on a sent or paid invoice, and time in a locked period, never, except that correctInvoicedCost true also corrects the cost (never the billable amount) of invoiced time outside a locked period. The days re-priced follow from the rate’s own dates, so no fromDate is taken.

Rules

  • 403 unless the token’s person has both the permission to edit team rates (edit-team-rates) and the permission to see cost rates (view-team-cost-rates).
  • 400 “Enter a rate or a start date” when neither is sent.
  • 400 “Start date has already been taken” when another period starts on that date.
  • 404 when the period does not exist, was removed, or is a period of the other kind of rate.
  • With repriceLoggedTime, entries on a draft invoice are re-priced too and the draft’s lines recalculated. The response’s repricedEntryCount, beside data, says how many entries changed.

Example request

Terminal window
curl "https://api.onesuite.io/v1/team-members/cmh2k8w1q0004s6l0an4x7d2e/cost-rates/cmh5b3t0f0007x9o4rc7i8j9k" \
-X PATCH \
-H "X-API-Key: $ONESUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"costRate":70}'

Example response — status 200

{
"data": {
"id": "cmh5b3t0f0007x9o4rc7i8j9k",
"costRate": 70,
"currency": "USD",
"startDate": "2026-07-01",
"endDate": null,
"isCurrent": true,
"createdAt": "2026-07-03T08:11:09.440Z",
"updatedAt": "2026-11-20T10:33:40.771Z"
},
"repricedEntryCount": 0
}

Removes one period from the history. It is kept for audit, but no longer prices anything.

DELETE /v1/team-members/:id/cost-rates/:rateId

Parameters

Parameter In Type Required Description
id path string Yes The team member’s id.
rateId path string Yes The rate period’s id.
repriceLoggedTime body object No Send to also re-price time already logged on the days whose rate this change alters: { "includeApprovedTime": boolean, "correctInvoicedCost": boolean }. Without it, time already logged keeps the rate it was priced at. Open time is always re-priced; approved time only when includeApprovedTime is true and the token’s person may approve everyone’s time (approve-team-timesheet), otherwise it is ignored; time on a sent or paid invoice, and time in a locked period, never, except that correctInvoicedCost true also corrects the cost (never the billable amount) of invoiced time outside a locked period. The days re-priced follow from the rate’s own dates, so no fromDate is taken.

Rules

  • 403 unless the token’s person has both the permission to edit team rates (edit-team-rates) and the permission to see cost rates (view-team-cost-rates).
  • The period before the removed one is extended to cover its dates, so the history never has a gap. Removing the first period makes the next one the first.
  • Removing the only period that covers today leaves the person with no cost rate from that point.
  • 404 when the period does not exist or was already removed.
  • With repriceLoggedTime, entries on a draft invoice are re-priced too and the draft’s lines recalculated. The response’s repricedEntryCount, beside message, says how many entries changed.

Example request

Terminal window
curl "https://api.onesuite.io/v1/team-members/cmh2k8w1q0004s6l0an4x7d2e/cost-rates/cmh5b3t0f0004x9o4rc4f5g6h" \
-X DELETE \
-H "X-API-Key: $ONESUITE_TOKEN"

Example response — status 200

{
"message": "Rate removed"
}