Skip to content

Business

The business is the OneSuite workspace a token belongs to. This resource holds its name, time zone and currency, and the settings that shape how time, approvals and expenses work across the business.

Every team member of the business can read it, whether a member, a manager or an administrator: the settings are the rules everyone’s timesheet follows, and nothing on it is personal. People with client portal access cannot. Changing the name, time zone or currency needs the permission to edit the business’s general settings. Changing any other setting needs access to Settings, which administrators have by default and the Manager profile does not.

The business the token belongs to: its name, locale and the settings that shape time, approvals and expenses.

Field Type Description
id string The business’s id. Read only.
name string The business’s name.
slug string The business’s short name used in app addresses. It changes when the business is renamed. Read only.
timeZone string The business’s time zone as an IANA name, such as Europe/Dublin, or null when not set. It decides which day is “today” for lock dates. Can be null.
currency string The business’s currency as an ISO code, such as EUR, or null when not set. Clients without their own billing currency are billed in it. Can be null.
weekStartDay string The day the timesheet week begins: monday, tuesday, wednesday, thursday, friday, saturday or sunday.
timerMode string How people record time: duration (how long it took) or startAndEnd (when it started and finished).
timeFormat string How durations are shown: hoursMinutes (2:30) or decimal (2.5).
isNoteRequired boolean Whether a time entry must have a note before it can be saved.
dateFormat string How dates are written: MM/DD/YYYY, DD/MM/YYYY, YYYY-MM-DD, DD.MM.YYYY, YYYY.MM.DD or YYYY/MM/DD. null means each screen uses its default. Can be null.
clock string How times of day are written: twelveHour (2:30 PM) or twentyFourHour (14:30). null means the app’s default. Can be null.
decimalSymbol string The decimal symbol in numbers, such as . or ,. null means the app’s default. Can be null.
thousandsSeparator string The thousands separator in numbers, such as ,. An empty string means no grouping; null means the app’s default. Can be null.
currencySymbolPosition string Where the currency symbol goes in amounts: before, after or none. null means the app’s default. Can be null.
currencyCodePosition string Where the currency code goes in amounts: before, after or none. null means the app’s default. Can be null.
defaultWeeklyCapacityHours decimal Hours per week a team member is expected to be available when no capacity is set for them, 0 to 168, or null when not set. Can be null.
isHoursBudgetBillableOnly boolean For projects budgeted by total hours: true when only billable hours count against the budget; false when billable and non-billable hours both count.
timeRounding timeRounding How time is rounded in summary reports, budgets and new invoices. Timesheets always keep the exact time.
approvals approvalSettings Timesheet approvals and locking.
expenses expenseSettings Expense settings.
modules array of businessModule The business’s modules and whether each is switched on. Read only.
updatedAt datetime When the business’s details or its time tracking settings last changed, whichever is later. Read only.

Time rounding settings.

Field Type Description
minutes integer Round to this many minutes: 6, 15 or 30. null means no rounding. Can be null.
mode string nearest (round to the nearest step) or up (always round up).

Timesheet approvals and locking.

Field Type Description
isEnabled boolean Whether timesheet approvals are switched on (the Approvals module).
canApproveOwnTime boolean Manager self-approval: whether an approver may approve their own time and expenses.
hasInvoiceApprovalWarnings boolean Invoice approval warnings: whether creating an invoice warns about time that is not approved yet. It never changes which hours the invoice includes.
isAutoLockEnabled boolean Whether time and expenses are locked automatically.
autoLockPeriod string What auto-lock locks: previousWeek, previousMonth or olderThanDays (entries older than autoLockAfterDays). null when not set. Can be null.
autoLockAfterDays integer With olderThanDays: entries older than this many days, 1 to 365, are locked. null for the other periods. Can be null.
isAutoSubmitEnabled boolean Whether time and expenses are submitted for approval when they are locked automatically. Needs auto-lock.
manualLockDate date The day through which time and expenses were locked by hand, or null for none. Can be null.
lockedThroughDate date The day through which time and expenses are locked right now, taking the auto-lock rule and the manual lock together. null when nothing is locked. Read only. Can be null.

Settings for expenses.

Field Type Description
isReimbursementEnabled boolean Expense reimbursement: whether team members can mark expenses as needing reimbursement. Turning it off keeps the marks already made.

A module of the app and whether the business has it switched on.

Field Type Description
key string The module’s stable key, such as timesheet, expenses, projects, crm (Leads), invoices, estimates, approvals, team or reports. Read only.
name string The module’s name as shown in the app. Read only.
isActive boolean Whether the module is switched on. Read only.
canBeTurnedOff boolean false for the modules every business keeps (Dashboard, Clients and Settings); true for the others. Read only.

Returns the business the token belongs to, with its time, approval and expense settings and which modules are switched on. A setting that was never changed reads as its default.

GET /v1/business

Rules

  • 403 for a person with client portal access.

Example request

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

Example response — status 200

{
"data": {
"id": "cm0z8k1a00001k9x1f2g3h4i5",
"name": "Brightline Design",
"slug": "brightline-design",
"timeZone": "Europe/Dublin",
"currency": "EUR",
"weekStartDay": "monday",
"timerMode": "duration",
"timeFormat": "hoursMinutes",
"isNoteRequired": false,
"dateFormat": "DD/MM/YYYY",
"clock": "twentyFourHour",
"decimalSymbol": ".",
"thousandsSeparator": ",",
"currencySymbolPosition": "before",
"currencyCodePosition": "none",
"defaultWeeklyCapacityHours": 35,
"isHoursBudgetBillableOnly": false,
"timeRounding": {
"minutes": 15,
"mode": "nearest"
},
"approvals": {
"isEnabled": true,
"canApproveOwnTime": false,
"hasInvoiceApprovalWarnings": true,
"isAutoLockEnabled": true,
"autoLockPeriod": "previousWeek",
"autoLockAfterDays": null,
"isAutoSubmitEnabled": false,
"manualLockDate": null,
"lockedThroughDate": "2026-11-15"
},
"expenses": {
"isReimbursementEnabled": true
},
"modules": [
{
"key": "timesheet",
"name": "Timesheet",
"isActive": true,
"canBeTurnedOff": true
},
{
"key": "expenses",
"name": "Expenses",
"isActive": true,
"canBeTurnedOff": true
},
{
"key": "invoices",
"name": "Invoices",
"isActive": true,
"canBeTurnedOff": true
},
{
"key": "estimates",
"name": "Estimates",
"isActive": false,
"canBeTurnedOff": true
},
{
"key": "approvals",
"name": "Approvals",
"isActive": true,
"canBeTurnedOff": true
},
{
"key": "clients",
"name": "Clients",
"isActive": true,
"canBeTurnedOff": false
}
],
"updatedAt": "2026-11-18T16:22:09.731Z"
}
}

Changes the business’s details and settings. Send only what should change; timeRounding, approvals and expenses may be sent in part. Answers with the whole business. Modules cannot be switched here, except approvals, which approvals.isEnabled switches on or off.

PATCH /v1/business

Parameters

Parameter In Type Required Description
name body string No New business name; it cannot be empty.
timeZone body string No IANA time zone name, such as Europe/Dublin.
currency body string No ISO currency code, such as EUR.
weekStartDay body string No A day name from monday to sunday.
timerMode body string No duration or startAndEnd.
timeFormat body string No hoursMinutes or decimal.
isNoteRequired body boolean No true to require a note on every time entry.
dateFormat body string No One of the dateFormat patterns listed on the business, or null for the app’s default.
clock body string No twelveHour, twentyFourHour, or null for the app’s default.
decimalSymbol body string No Up to 3 characters, no digits or minus sign; null for the app’s default.
thousandsSeparator body string No Up to 3 characters, no digits or minus sign; an empty string for no grouping; null for the app’s default.
currencySymbolPosition body string No before, after, none, or null for the app’s default.
currencyCodePosition body string No before, after, none, or null for the app’s default.
defaultWeeklyCapacityHours body decimal No 0 to 168, or null to clear it.
isHoursBudgetBillableOnly body boolean No true when only billable hours should count against hour budgets.
timeRounding body timeRounding No { minutes, mode }; either may be sent alone.
approvals body approvalSettings No Any of the approval settings except lockedThroughDate, which is ignored if sent.
expenses body expenseSettings No { isReimbursementEnabled }.

Rules

  • 403 when the token’s person lacks the permission for any part sent: name, time zone and currency need the permission to edit the business’s general settings, and everything else needs access to Settings. Nothing is changed.
  • 400 for an empty name, an unknown time zone or currency, a value not in a field’s list, rounding other than 6, 15 or 30 minutes, capacity outside 0 to 168, or auto-lock days outside 1 to 365.
  • 400 when the decimal symbol and the thousands separator are the same.
  • 400 when auto-submit is turned on without auto-lock, auto-lock without a period, or olderThanDays without autoLockAfterDays.
  • 409 when auto-lock is turned on, or a manual lock date is set, while approvals are off. Clearing a lock always works.
  • 400 when the manual lock date is after today in the business’s time zone.
  • Turning approvals off also turns auto-lock and auto-submit off; days already locked stay locked.
  • The lock date never moves backward unless manualLockDate itself is sent.
  • Timers still running on a day that becomes locked are stopped and their time is saved.
  • Renaming the business changes its slug, and with it the business’s app addresses.
  • An empty body changes nothing and answers 200.

Example request

Terminal window
curl "https://api.onesuite.io/v1/business" \
-X PATCH \
-H "X-API-Key: $ONESUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"timerMode":"startAndEnd","defaultWeeklyCapacityHours":30}'

Example response — status 200

{
"data": {
"id": "cm0z8k1a00001k9x1f2g3h4i5",
"name": "Brightline Design",
"slug": "brightline-design",
"timeZone": "Europe/Dublin",
"currency": "EUR",
"weekStartDay": "monday",
"timerMode": "startAndEnd",
"timeFormat": "hoursMinutes",
"isNoteRequired": false,
"dateFormat": "DD/MM/YYYY",
"clock": "twentyFourHour",
"decimalSymbol": ".",
"thousandsSeparator": ",",
"currencySymbolPosition": "before",
"currencyCodePosition": "none",
"defaultWeeklyCapacityHours": 30,
"isHoursBudgetBillableOnly": false,
"timeRounding": {
"minutes": 15,
"mode": "nearest"
},
"approvals": {
"isEnabled": true,
"canApproveOwnTime": false,
"hasInvoiceApprovalWarnings": true,
"isAutoLockEnabled": true,
"autoLockPeriod": "previousWeek",
"autoLockAfterDays": null,
"isAutoSubmitEnabled": false,
"manualLockDate": null,
"lockedThroughDate": "2026-11-15"
},
"expenses": {
"isReimbursementEnabled": true
},
"modules": [
{
"key": "timesheet",
"name": "Timesheet",
"isActive": true,
"canBeTurnedOff": true
},
{
"key": "expenses",
"name": "Expenses",
"isActive": true,
"canBeTurnedOff": true
},
{
"key": "invoices",
"name": "Invoices",
"isActive": true,
"canBeTurnedOff": true
},
{
"key": "estimates",
"name": "Estimates",
"isActive": false,
"canBeTurnedOff": true
},
{
"key": "approvals",
"name": "Approvals",
"isActive": true,
"canBeTurnedOff": true
},
{
"key": "clients",
"name": "Clients",
"isActive": true,
"canBeTurnedOff": false
}
],
"updatedAt": "2026-11-20T09:20:44.105Z"
}
}