2026-11-23

Export Harvest to JSON: the API returns both hours and rounded_hours. The invoice used one.

Harvest's exports are files. Time comes out as a CSV, invoices as a ZIP of PDFs, and the five-export routine gets you the rest. There is a second export, and it is the one to use when you want to check a number rather than keep a copy: the API. It answers in JSON, and every time entry it returns carries two hour fields. One is what was tracked. The other is what Harvest used on the invoice. This post is the recipe for pulling all of it, and what to do with the two fields once you have them.

What you need

A personal access token and your account ID. Harvest's API documentation says the token is created in the Developers section of Harvest ID, and every request carries three headers: the token as a bearer token, the account ID, and a User-Agent that names your script and gives a contact address. That is the whole setup.

The request

One endpoint does the work: the time entries list at api.harvestapp.com, version 2. Three parameters matter.

  • per_page. The documentation says it can range between 1 and 2000, and the default is 2000. Do not build page URLs yourself. Each response carries a links object with a next URL, and Harvest's pagination page says to follow that instead.
  • from and to. These filter on spent_date, the date the time was logged against. One run per year keeps each file small enough to open.
  • updated_since. This returns only entries updated after a given date and time. It is what makes a second run cheap: pull everything once, then pull only what changed.

The rate limit for general API requests is 100 requests per 15 seconds, and a request over the limit gets a 429 with a Retry-After header saying how long to wait. At 2,000 entries a page, the 32,000-entry account in our reconciliation post is sixteen requests. Every entry already carries the id and name of its client, project, task and user, so there is no second call per entry.

What each entry carries

Harvest's own example response is the best illustration, because it shows both fields on one entry. The entry has hours of 2.11 and rounded_hours of 2.25, a billable_rate of 100.0, is_locked true with the reason "Item Approved and Locked for this Time Period", approval_status approved, is_billed false and invoice null. At that rate, 2.11 hours is $211.00 and 2.25 hours is $225.00. The $14.00 between them is the rounding, on one entry, and the record shows both sides of it.

The documentation is specific about which field is which. hours is "Number of (decimal time) hours tracked in this time entry." rounded_hours is the number "used in summary reports and invoices", rounded "according to the Time Rounding setting in your Preferences." The fields worth keeping from each record:

  • id, spent_date, hours, rounded_hours and notes.
  • billable, billable_rate and cost_rate. The rate is on the entry, so the amount is hours times rate with no lookup.
  • is_billed and invoice, which carries the invoice's id and number once the entry has been invoiced.
  • is_locked, locked_reason and approval_status, which is unsubmitted, submitted or approved.
  • client, project, task and user, each with its id and name, and external_reference if the entry came from another tool.
  • updated_at, the timestamp updated_since filters on next time.

Import your Harvest account and read the reconciliation

Free for 2 people and 1 active project; $9 per active member per month after that, no usage fees on anything. The import runs on the free plan.

Which field reconciles what

Harvest's help page on time rounding says where rounding applies and where it does not. It applies to summary time reports under Reports → Time, to the Tasks and Team tabs of project analysis, to new invoices and to project budget calculations. It does not apply to the entries on timesheets or to the detailed time report as you view it in the app. So a timesheet total is a sum of hours, and an invoice total is a sum of rounded_hours times rate. When the two disagree, you now hold the field that explains the gap.

To be fair to the CSV: the same help page says the detailed time report's CSV and Excel exports include both unrounded and rounded hours, and the report's own page says that with rounding on, the Billable Amount and Cost Amount columns are calculated from the Hours Rounded numbers. If you already have that export, you have both figures. Custom exports let you choose columns, though, so a file someone else made may or may not carry both. The page for Export all time, under Settings → Import/Export, says it downloads "all of your company time data" as a CSV and does not list its columns. The JSON record names every field on every entry, whoever ran it.

The JSON record also carries, on every entry, its own rate, the invoice it landed on, whether it is locked and why, the ids of everything it belongs to, and a timestamp you can filter on next time. That is the difference between a report and a record.

Do it while the account is open

Harvest's help article on cancelling, updated 18 September 2026, describes two paths. Close the account, and the account owner is emailed a link to the account's time and invoice data that is available for one week, and all of the account's data is permanently removed after 10 days. Schedule a cancellation instead, and the account goes on hold; if it is not reactivated after six months it is permanently deleted along with any data in it. Reactivating starts a brand-new subscription at current pricing. The article does not say whether the API keeps answering while the account is on hold. Pull the JSON before the renewal date, while you can still log in, and keep the file.

What Winnows does with the same records

The Winnows importer reads the Harvest API, not a CSV. You paste the same personal access token and account ID on the Import page, and nothing is read until you start a run. A dry run reads the whole account without writing anything and reports the counts. The full run brings in clients, projects, tasks, people, project assignments, bill rates with their history, and every time entry with its sign, so a correction stays a correction. Harvest keeps hours to two decimals and Winnows keeps whole minutes, so 0.33 hours becomes 20 minutes; where that would move the money, Winnows keeps Harvest's original amount for the entry. The report at the end recomputes every total from what was imported and compares it to Harvest's, by client, project, member and year, to the cent, with each variance itemised and Harvest's figure beside ours. Every record is matched on its Harvest id, so re-running syncs what changed and never duplicates. The import and the report run on the free plan. The import guide has the full list of what comes over and what does not.

And when you leave Winnows, the same rule applies to us. Every report and the raw entries export as CSV on every plan, there is a read-only API at all times, and both stay available for 90 days after you cancel. That is written down on the exit guarantee.

Import your Harvest account and read the reconciliation

Free for 2 people and 1 active project; $9 per active member per month after that, no usage fees on anything. The import runs on the free plan.