Harvest icon

Harvest

Interact with Harvest API for time tracking and invoicing

Expense → Get Many

AI-generated

Summary

Retrieve multiple expense records from Harvest filtered by various criteria such as user ID, client ID, project ID, billing status, and date ranges, supporting pagination and updated date filtering.

Inputs

  • expenseFilters — Specify filtering parameters to narrow the returned expenses. Filters include User ID, Client ID, Project ID, billed status, date range for spent_date, pagination (page and perPage), and updatedSince date to return only recent updates.

Output shape

a list of expense records

Supports pagination via page and perPage parameters with a maximum perPage of 2000. Filters are optional and can be combined to refine results. Returns the 'expenses' array from the Harvest API response.

Examples

Example 1: Get all expenses for a specific project and user updated since a certain date.

Set Project ID and User ID in expenseFilters, set updatedSince to the desired timestamp, and optionally adjust page and perPage for pagination.

Discussion