Harvest icon

Harvest

Interact with Harvest API for time tracking and invoicing

Expense → Update

AI-generated

Summary

Update an existing expense in Harvest by specifying its ID and providing any fields to change.

Inputs

  • ID (required) — The numeric ID of the expense to update.
  • Update Fields — Optional fields to update for the expense, including Project ID, Expense Category ID, Spent Date (YYYY-MM-DD format), Units, Total Cost, Notes, Billable status, and whether to delete the attached receipt.

Output shape

a single updated expense record as a JSON object.

Requires a valid expense ID; only provided update fields will be changed; errors if the update fails.

Examples

Example 1: Update the total cost and notes of a specific expense

Set 'ID' to the expense's ID, set 'Update Fields' with 'Total Cost' and 'Notes' to desired values.

Discussion