Skip to content

Docs / API objects

Billable and cost rates

Read and add a person's billable rates over time. The API does not return cost rates.

View as Markdown

List a user's billable rates

GET/api/v2/users/{user_id}/billable_rates
Scope
reports:read

Differs from Harvest

Needs rates:read, and an owner, admin or manager token, as in the app.

Query parameters

Query parameters of List a user's billable rates
NameTypeDescription
pageintegerOptionalintegerThe page to return, from 1. Default 1. A page past the end returns no records.
per_pageintegerOptionalintegerRecords per page, 1 to 2000. Default 2000. Another value is refused with 400.

Returns

Status 200 with a page of billable rate objects under billable_rates, and the pagination fields.

curl "https://t.momentic.studio/api/v2/users/1001/billable_rates" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "User-Agent: MyApp (admin@example.com)"
Response200
{
  "billable_rates": [
    {
      "id": 7,
      "amount": 150,
      "start_date": "2026-01-01",
      "end_date": null,
      "created_at": "2026-01-05T15:00:00Z",
      "updated_at": "2026-01-05T15:00:00Z"
    }
  ],
  "per_page": 2000,
  "total_pages": 1,
  "total_entries": 1,
  "next_page": null,
  "previous_page": null,
  "page": 1,
  "links": {
    "first": "https://t.momentic.studio/api/v2/users/1001/billable_rates?page=1&per_page=2000&ref=first",
    "next": null,
    "previous": null,
    "last": "https://t.momentic.studio/api/v2/users/1001/billable_rates?page=1&per_page=2000&ref=last"
  }
}

Retrieve a billable rate

GET/api/v2/users/{user_id}/billable_rates/{billable_rate_id}
Scope
reports:read

Differs from Harvest

Returns

Status 200 with a billable rate object.

curl "https://t.momentic.studio/api/v2/users/1001/billable_rates/7" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "User-Agent: MyApp (admin@example.com)"
Response200
{
  "id": 7,
  "amount": 150,
  "start_date": "2026-01-01",
  "end_date": null,
  "created_at": "2026-01-05T15:00:00Z",
  "updated_at": "2026-01-05T15:00:00Z"
}

Create a billable rate

POST/api/v2/users/{user_id}/billable_rates
Scope
people:write

Differs from Harvest

start_date is required here: the app keeps rate history from a date and does not replace it.

Body, as JSON or form fields

Body fields of Create a billable rate
NameTypeDescription
amountnumberRequirednumberThe hourly rate in dollars.
start_datedateRequireddateThe first day the rate applies.

Returns

Status 201 with a billable rate object.

curl -X POST "https://t.momentic.studio/api/v2/users/1001/billable_rates" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "User-Agent: MyApp (admin@example.com)" \
  -H "Content-Type: application/json" \
  -d '{"amount":150,"start_date":"2026-03-01"}'
Response201
{
  "id": 7,
  "amount": 150,
  "start_date": "2026-01-01",
  "end_date": null,
  "created_at": "2026-01-05T15:00:00Z",
  "updated_at": "2026-01-05T15:00:00Z"
}

List a user's cost rates

GET/api/v2/users/{user_id}/cost_rates
Scope
reports:read

Not supported

This API does not return cost rates, for any role or scope: the list is empty, a single rate is not found (404) and a write is refused (403).

Query parameters

Query parameters of List a user's cost rates
NameTypeDescription
pageintegerOptionalintegerThe page to return, from 1. Default 1. A page past the end returns no records.
per_pageintegerOptionalintegerRecords per page, 1 to 2000. Default 2000. Another value is refused with 400.

Returns

Status 200 with a page of cost rate objects under cost_rates, and the pagination fields.

curl "https://t.momentic.studio/api/v2/users/1001/cost_rates" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "User-Agent: MyApp (admin@example.com)"
Response200
{
  "cost_rates": [],
  "per_page": 2000,
  "total_pages": 1,
  "total_entries": 0,
  "next_page": null,
  "previous_page": null,
  "page": 1,
  "links": {
    "first": "https://t.momentic.studio/api/v2/users/1001/cost_rates?page=1&per_page=2000&ref=first",
    "next": null,
    "previous": null,
    "last": "https://t.momentic.studio/api/v2/users/1001/cost_rates?page=1&per_page=2000&ref=last"
  }
}

Retrieve a cost rate

GET/api/v2/users/{user_id}/cost_rates/{cost_rate_id}
Scope
reports:read

Not supported

This API does not return cost rates, for any role or scope: the list is empty, a single rate is not found (404) and a write is refused (403).

Returns

Status 200 with a cost rate object.

curl "https://t.momentic.studio/api/v2/users/1001/cost_rates/1" \
  -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.

Create a cost rate

POST/api/v2/users/{user_id}/cost_rates
Scope
time:write

Not supported

This API does not return cost rates, for any role or scope: the list is empty, a single rate is not found (404) and a write is refused (403).

Returns

Status 200. No body.

curl -X POST "https://t.momentic.studio/api/v2/users/1001/cost_rates" \
  -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 billable rate object

Fields of the billable rate object
FieldTypeDescription
idintegerintegerThe rate's id.
amountnumbernumberThe hourly rate in dollars.
start_datedate or nulldate or nullThe first day the rate applies.
end_datedate or nulldate or nullThe last day the rate applies, or null for the current rate.
created_atdatetimedatetimeWhen the record was created.
updated_atdatetimedatetimeWhen the record was last changed.