Skip to content

Docs / API objects

Company

Read your workspace's name, week start day and time format.

View as Markdown

Retrieve the company

GET/api/v2/company
Scope
reports:read

Differs from Harvest

Fields the time tracker has no data for hold their empty value; see the field table.

Returns

Status 200 with a company object.

curl "https://t.momentic.studio/api/v2/company" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "User-Agent: MyApp (admin@example.com)"
Response200
{
  "base_uri": "https://tracker.example.com",
  "full_domain": "tracker.example.com",
  "name": "Example Agency",
  "is_active": true,
  "week_start_day": "Monday",
  "wants_timestamp_timers": false,
  "time_format": "decimal",
  "date_format": "%Y-%m-%d",
  "plan_type": "",
  "clock": "12h",
  "currency_code_display": "iso_code_none",
  "currency_symbol_display": "symbol_before",
  "decimal_symbol": ".",
  "thousands_separator": ",",
  "color_scheme": "",
  "weekly_capacity": 144000,
  "expense_feature": false,
  "invoice_feature": false,
  "estimate_feature": false,
  "approval_feature": false,
  "team_feature": true,
  "currency": "USD",
  "day_entry_notes_required": null,
  "e_invoicing_status": null,
  "saml_sign_in_required": false
}

Update the company

PATCH/api/v2/company
Scope
time:write

Not supported

Timer mode and weekly capacity are not workspace settings here. Change workspace settings in the app.

Returns

Status 200. No body.

curl -X PATCH "https://t.momentic.studio/api/v2/company" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "User-Agent: MyApp (admin@example.com)"
Response

The note above says what this endpoint returns.

Retrieve reimbursement settings

GET/api/v2/company/reimbursement_settings
Scope
reports:read

Not supported

The time tracker has no expenses. Lists are empty, a single record is not found (404), and a write is refused (422).

Returns

Status 200. No body.

curl "https://t.momentic.studio/api/v2/company/reimbursement_settings" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "User-Agent: MyApp (admin@example.com)"
Response

The note above says what this endpoint returns.

Update reimbursement settings

PATCH/api/v2/company/reimbursement_settings
Scope
time:write

Not supported

The time tracker has no expenses. Lists are empty, a single record is not found (404), and a write is refused (422).

Returns

Status 200. No body.

curl -X PATCH "https://t.momentic.studio/api/v2/company/reimbursement_settings" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "User-Agent: MyApp (admin@example.com)"
Response

The note above says what this endpoint returns.

Enroll in e-invoicing

POST/api/v2/company/e_invoicing
Scope
time:write

Not supported

The time tracker has no invoices. Lists are empty, a single record is not found (404), and a write is refused (422).

Returns

Status 200. No body.

curl -X POST "https://t.momentic.studio/api/v2/company/e_invoicing" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "User-Agent: MyApp (admin@example.com)"
Response

The note above says what this endpoint returns.

Leave e-invoicing

DELETE/api/v2/company/e_invoicing
Scope
time:write

Not supported

The time tracker has no invoices. Lists are empty, a single record is not found (404), and a write is refused (422).

Returns

Status 200. No body.

curl -X DELETE "https://t.momentic.studio/api/v2/company/e_invoicing" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "User-Agent: MyApp (admin@example.com)"
Response

The note above says what this endpoint returns.

The company object

Fields of the company object
FieldTypeDescription
base_uristringstringThe address of the time tracker.
full_domainstringstringThe host name of the time tracker.
namestringstringThe workspace name.
is_activebooleanbooleanTrue while the workspace is not scheduled for deletion.
week_start_daystringstringSunday or Monday, from the workspace settings.
wants_timestamp_timersbooleanbooleanFalse: entries are tracked by duration, with optional start and end times. Both create forms are accepted whatever this says.
time_formatstringstringdecimal.
date_formatstringstring%Y-%m-%d.
plan_typestringstringAn empty string. The time tracker has no such data, so this is the empty value.
clockstringstring12h. Started and ended times are written like 9:30am.
currency_code_displaystringstringiso_code_none.
currency_symbol_displaystringstringsymbol_before.
decimal_symbolstringstringA period.
thousands_separatorstringstringA comma.
color_schemestringstringAn empty string. The time tracker has no such data, so this is the empty value.
weekly_capacityintegerinteger144000 (40 hours), the capacity a new person gets. Capacity is set per person; see weekly_capacity on users.
expense_featurebooleanbooleanFalse: the time tracker has no expenses.
invoice_featurebooleanbooleanFalse: the time tracker has no invoices.
estimate_featurebooleanbooleanFalse: the time tracker has no estimates.
approval_featurebooleanbooleanFalse: the time tracker has no timesheet approval. Closed months lock entries instead.
team_featurebooleanbooleanTrue: teams are listed as roles.
currencystringstringUSD.
day_entry_notes_requireddatetime or nulldatetime or nullNull. Harvest gives the time notes became required. The workspace's notes rule is in the app and has no such time.
e_invoicing_statusstring or nullstring or nullNull. The time tracker has no such data, so this is the empty value.
saml_sign_in_requiredbooleanbooleanFalse. The time tracker has no such data, so this is the empty value.