Skip to content

Docs / API objects

Invoices, estimates and expenses

See what the invoice, estimate and expense endpoints return. The API does not read or write these records.

View as Markdown

The time tracker has no invoices, estimates or expenses. These endpoints answer so that a Harvest client that calls them keeps working: lists return no records, a single record returns 404 and a write returns 422.

List invoices

GET/api/v2/invoices
Scope
reports:read

Not supported

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

Query parameters

Query parameters of List invoices
NameTypeDescription
client_idintegerOptionalintegerClient.
project_idintegerOptionalintegerProject.
updated_sincedatetimeOptionaldatetimeOnly records changed at or after this ISO 8601 date-time. A value that is not a date-time is refused with 400.
fromdateOptionaldateFrom.
todateOptionaldateTo.
statestringOptionalstringState.
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 invoice ref objects under invoices, and the pagination fields.

curl "https://t.momentic.studio/api/v2/invoices?from=2026-03-01&to=2026-03-31" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "User-Agent: MyApp (admin@example.com)"
Response200
{
  "invoices": [],
  "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/invoices?page=1&per_page=2000&ref=first",
    "next": null,
    "previous": null,
    "last": "https://t.momentic.studio/api/v2/invoices?page=1&per_page=2000&ref=last"
  }
}

Retrieve one

GET/api/v2/invoices/{invoice_id}
Scope
reports:read

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 with a invoice ref object.

curl "https://t.momentic.studio/api/v2/invoices/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

POST/api/v2/invoices
Scope
reports:read

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/invoices" \
  -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

PATCH/api/v2/invoices/{invoice_id}
Scope
reports:read

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 PATCH "https://t.momentic.studio/api/v2/invoices/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.

Delete

DELETE/api/v2/invoices/{invoice_id}
Scope
reports:read

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/invoices/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.

Send an e-invoice

POST/api/v2/invoices/{invoice_id}/send_e_invoice
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/invoices/1/send_e_invoice" \
  -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.

E-invoice status

GET/api/v2/invoices/{invoice_id}/e_invoice_status
Scope
reports:read

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 "https://t.momentic.studio/api/v2/invoices/1/e_invoice_status" \
  -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.

E-invoice document

GET/api/v2/invoices/{invoice_id}/e_invoice_document
Scope
reports:read

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 "https://t.momentic.studio/api/v2/invoices/1/e_invoice_document" \
  -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.

List invoice messages

GET/api/v2/invoices/{invoice_id}/messages
Scope
reports:read

Not supported

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

Query parameters

Query parameters of List invoice messages
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. No body.

curl "https://t.momentic.studio/api/v2/invoices/1/messages" \
  -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 an invoice message

POST/api/v2/invoices/{invoice_id}/messages
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/invoices/1/messages" \
  -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.

New invoice message text

GET/api/v2/invoices/{invoice_id}/messages/new
Scope
reports:read

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 "https://t.momentic.studio/api/v2/invoices/1/messages/new" \
  -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.

Delete an invoice message

DELETE/api/v2/invoices/{invoice_id}/messages/{message_id}
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/invoices/1/messages/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.

List invoice payments

GET/api/v2/invoices/{invoice_id}/payments
Scope
reports:read

Not supported

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

Query parameters

Query parameters of List invoice payments
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. No body.

curl "https://t.momentic.studio/api/v2/invoices/1/payments" \
  -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 an invoice payment

POST/api/v2/invoices/{invoice_id}/payments
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/invoices/1/payments" \
  -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.

Delete an invoice payment

DELETE/api/v2/invoices/{invoice_id}/payments/{payment_id}
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/invoices/1/payments/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.

List invoice item categories

GET/api/v2/invoice_item_categories
Scope
reports:read

Not supported

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

Query parameters

Query parameters of List invoice item categories
NameTypeDescription
updated_sincedatetimeOptionaldatetimeOnly records changed at or after this ISO 8601 date-time. A value that is not a date-time is refused with 400.
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 invoice ref objects under invoice_item_categories, and the pagination fields.

curl "https://t.momentic.studio/api/v2/invoice_item_categories" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "User-Agent: MyApp (admin@example.com)"
Response200
{
  "invoice_item_categories": [],
  "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/invoice_item_categories?page=1&per_page=2000&ref=first",
    "next": null,
    "previous": null,
    "last": "https://t.momentic.studio/api/v2/invoice_item_categories?page=1&per_page=2000&ref=last"
  }
}

Retrieve one

GET/api/v2/invoice_item_categories/{invoice_item_category_id}
Scope
reports:read

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 with a invoice ref object.

curl "https://t.momentic.studio/api/v2/invoice_item_categories/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

POST/api/v2/invoice_item_categories
Scope
reports:read

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/invoice_item_categories" \
  -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

PATCH/api/v2/invoice_item_categories/{invoice_item_category_id}
Scope
reports:read

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 PATCH "https://t.momentic.studio/api/v2/invoice_item_categories/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.

Delete

DELETE/api/v2/invoice_item_categories/{invoice_item_category_id}
Scope
reports:read

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/invoice_item_categories/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.

List estimates

GET/api/v2/estimates
Scope
reports:read

Not supported

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

Query parameters

Query parameters of List estimates
NameTypeDescription
client_idintegerOptionalintegerClient.
updated_sincedatetimeOptionaldatetimeOnly records changed at or after this ISO 8601 date-time. A value that is not a date-time is refused with 400.
fromdateOptionaldateFrom.
todateOptionaldateTo.
statestringOptionalstringState.
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 invoice ref objects under estimates, and the pagination fields.

curl "https://t.momentic.studio/api/v2/estimates?from=2026-03-01&to=2026-03-31" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "User-Agent: MyApp (admin@example.com)"
Response200
{
  "estimates": [],
  "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/estimates?page=1&per_page=2000&ref=first",
    "next": null,
    "previous": null,
    "last": "https://t.momentic.studio/api/v2/estimates?page=1&per_page=2000&ref=last"
  }
}

Retrieve one

GET/api/v2/estimates/{estimate_id}
Scope
reports:read

Not supported

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

Returns

Status 200 with a invoice ref object.

curl "https://t.momentic.studio/api/v2/estimates/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

POST/api/v2/estimates
Scope
reports:read

Not supported

The time tracker has no estimates. 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/estimates" \
  -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

PATCH/api/v2/estimates/{estimate_id}
Scope
reports:read

Not supported

The time tracker has no estimates. 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/estimates/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.

Delete

DELETE/api/v2/estimates/{estimate_id}
Scope
reports:read

Not supported

The time tracker has no estimates. 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/estimates/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.

List estimate messages

GET/api/v2/estimates/{estimate_id}/messages
Scope
reports:read

Not supported

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

Query parameters

Query parameters of List estimate messages
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. No body.

curl "https://t.momentic.studio/api/v2/estimates/1/messages" \
  -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 an estimate message

POST/api/v2/estimates/{estimate_id}/messages
Scope
time:write

Not supported

The time tracker has no estimates. 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/estimates/1/messages" \
  -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.

Delete an estimate message

DELETE/api/v2/estimates/{estimate_id}/messages/{message_id}
Scope
time:write

Not supported

The time tracker has no estimates. 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/estimates/1/messages/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.

List estimate item categories

GET/api/v2/estimate_item_categories
Scope
reports:read

Not supported

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

Query parameters

Query parameters of List estimate item categories
NameTypeDescription
updated_sincedatetimeOptionaldatetimeOnly records changed at or after this ISO 8601 date-time. A value that is not a date-time is refused with 400.
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 invoice ref objects under estimate_item_categories, and the pagination fields.

curl "https://t.momentic.studio/api/v2/estimate_item_categories" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "User-Agent: MyApp (admin@example.com)"
Response200
{
  "estimate_item_categories": [],
  "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/estimate_item_categories?page=1&per_page=2000&ref=first",
    "next": null,
    "previous": null,
    "last": "https://t.momentic.studio/api/v2/estimate_item_categories?page=1&per_page=2000&ref=last"
  }
}

Retrieve one

GET/api/v2/estimate_item_categories/{estimate_item_category_id}
Scope
reports:read

Not supported

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

Returns

Status 200 with a invoice ref object.

curl "https://t.momentic.studio/api/v2/estimate_item_categories/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

POST/api/v2/estimate_item_categories
Scope
reports:read

Not supported

The time tracker has no estimates. 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/estimate_item_categories" \
  -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

PATCH/api/v2/estimate_item_categories/{estimate_item_category_id}
Scope
reports:read

Not supported

The time tracker has no estimates. 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/estimate_item_categories/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.

Delete

DELETE/api/v2/estimate_item_categories/{estimate_item_category_id}
Scope
reports:read

Not supported

The time tracker has no estimates. 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/estimate_item_categories/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.

List expenses

GET/api/v2/expenses
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).

Query parameters

Query parameters of List expenses
NameTypeDescription
user_idintegerOptionalintegerPerson.
client_idintegerOptionalintegerClient.
project_idintegerOptionalintegerProject.
is_billedbooleanOptionalbooleanBilled.
updated_sincedatetimeOptionaldatetimeOnly records changed at or after this ISO 8601 date-time. A value that is not a date-time is refused with 400.
fromdateOptionaldateFrom.
todateOptionaldateTo.
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 invoice ref objects under expenses, and the pagination fields.

curl "https://t.momentic.studio/api/v2/expenses?from=2026-03-01&to=2026-03-31" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "User-Agent: MyApp (admin@example.com)"
Response200
{
  "expenses": [],
  "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/expenses?page=1&per_page=2000&ref=first",
    "next": null,
    "previous": null,
    "last": "https://t.momentic.studio/api/v2/expenses?page=1&per_page=2000&ref=last"
  }
}

Retrieve one

GET/api/v2/expenses/{expense_id}
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 with a invoice ref object.

curl "https://t.momentic.studio/api/v2/expenses/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

POST/api/v2/expenses
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 -X POST "https://t.momentic.studio/api/v2/expenses" \
  -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

PATCH/api/v2/expenses/{expense_id}
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 -X PATCH "https://t.momentic.studio/api/v2/expenses/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.

Delete

DELETE/api/v2/expenses/{expense_id}
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 -X DELETE "https://t.momentic.studio/api/v2/expenses/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.

Approve an expense

POST/api/v2/expenses/{expense_id}/approve
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 POST "https://t.momentic.studio/api/v2/expenses/1/approve" \
  -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.

Withdraw an expense approval

POST/api/v2/expenses/{expense_id}/withdraw
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 POST "https://t.momentic.studio/api/v2/expenses/1/withdraw" \
  -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.

List expense categories

GET/api/v2/expense_categories
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).

Query parameters

Query parameters of List expense categories
NameTypeDescription
is_activebooleanOptionalbooleantrue for active records only, false for archived only. Another value is ignored, as in Harvest.
updated_sincedatetimeOptionaldatetimeOnly records changed at or after this ISO 8601 date-time. A value that is not a date-time is refused with 400.
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 invoice ref objects under expense_categories, and the pagination fields.

curl "https://t.momentic.studio/api/v2/expense_categories" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "User-Agent: MyApp (admin@example.com)"
Response200
{
  "expense_categories": [],
  "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/expense_categories?page=1&per_page=2000&ref=first",
    "next": null,
    "previous": null,
    "last": "https://t.momentic.studio/api/v2/expense_categories?page=1&per_page=2000&ref=last"
  }
}

Retrieve one

GET/api/v2/expense_categories/{expense_category_id}
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 with a invoice ref object.

curl "https://t.momentic.studio/api/v2/expense_categories/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

POST/api/v2/expense_categories
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 -X POST "https://t.momentic.studio/api/v2/expense_categories" \
  -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

PATCH/api/v2/expense_categories/{expense_category_id}
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 -X PATCH "https://t.momentic.studio/api/v2/expense_categories/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.

Delete

DELETE/api/v2/expense_categories/{expense_category_id}
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 -X DELETE "https://t.momentic.studio/api/v2/expense_categories/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.