Project Financials

The project financials report returns forecast revenue and cost for every project on the caller’s board. Each project is priced over its whole life — past and future — at today’s rates: there is no window and no filter, so the figures are the board’s own forecast rather than a period’s. It is the public read of the same computation the planning board’s financials view renders.

The financials object

Attribute Type Description
scope string The breadth the report actually covered: all, managed, or self. It is resolved from the caller and never from a parameter, and it is the effective scope: a managed caller who manages no project is demoted to self.
truncated boolean Whether the report is a subset of the board, so a total summed across projects is short: one of the lists the report was priced from stopped at its cap, or a project whose figures are all hidden from this caller therefore has no row at all. Which cap stopped is not published. A hidden figure inside a row does not set this flag — that figure is null in the row instead.
projects array One project figure object per board project the caller may see a figure for. Empty for a self scope caller, and for an account with no board projects.

The report is not paginated: there are no page, per_page, total_entries or links properties, and the body is the whole report. A self scope caller always receives an empty projects array, because the figures would have to be summed from teammates’ planned hours that caller may not see — scope is how a client tells that apart from an empty board.

The project figure object

revenue.amount is in the row’s currency; cost.amount and average_cost_rate are in its cost_currency. The two currencies are separate on purpose: a project may bill in one currency while the account costs it in another, and no figure is converted between them.

Attribute Type Description
project_id integer Unique ID for the project.
name string The project’s name, prefixed with its code as [CODE] Name, or the bare name when the project has no code. The account’s “Hide project codes” display preference does not apply to the API.
client_id integer The ID of the project’s client.
client_name string The name of the project’s client.
currency string The project’s billing currency as an ISO 4217 code: the project’s own currency, else its client’s, else the account’s.
cost_currency string The account’s currency as an ISO 4217 code. Costs stay in it whatever currency the project bills in.
planned_hours decimal Planned hours on the project over its whole life, rounded to two decimals. Hours, not money. Each bar is counted the way the board draws it — on the assignee’s own working days, or on every calendar day when the bar is flagged as active on days off — and time-off bars are not counted.
project_type string How the project bills: time_and_materials, fixed_fee, or non_billable — the same three words the Profitability Report publishes for the same project. A project that is not billable is non_billable even when it also carries a fee. It is null when revenue is null.
revenue object The forecast revenue figure, a figure object, or null when the caller may not see the project’s billable rates.
cost object The forecast cost figure, a figure object, or null when the caller may not read cost rates.
average_cost_rate decimal What an hour of the project’s planned time costs on average, in cost_currency, rounded to two decimals: money per hour, computed from the planned time alone because expenses are not hours. It is null when the project has no planned hours, when any of its hours has no cost rate, when cost.amount is null, and when cost is null. It is never an average of only the priced part.

A row always carries at least one of revenue and cost; a project the caller may see neither figure for has no row at all, and sets truncated.

cost is planned hours priced at the cost rate, plus every planned expense on the project. revenue is planned hours priced at the billable rate for a time_and_materials project, the project fee for a fixed_fee project, and 0.0 for a non_billable one, plus the billable planned expenses, which are re-billed to the client. A fixed-fee figure is the whole contract rather than what has accrued: a milestone project’s fee is the sum of its milestones, a monthly retainer’s is its fee times the months it runs, and an open-ended retainer runs through the last planned day, which fee_through reports.

An hour is priced from the project’s own rate when the project bills or costs by project, from the task’s rate when it bills or costs by task, and otherwise from the person’s own rate — or, for a placeholder with exactly one role, that role’s rate. A scheduled non-user has neither a rate nor a role, so their hours are priced only on a project or task rate. Hours that bill nothing, on a non-billable task, are priced at zero.

A missing rate is never priced as zero. The figure counts every hour that has a rate and names whose hours have none in unpriced, so one person without a rate leaves a real, flagged total rather than no total at all.

The figure object

Attribute Type Description
amount decimal The forecast figure, rounded to two decimals, in the currency the row names — currency for revenue, cost_currency for cost. It is null when the hours could not be priced, and missing says why. A published figure of 0.0 is a real zero: a non-billable project, or planned hours that bill nothing.
missing string Why amount is null: rates, fee, fee_dates, open_ended_fee, expense_currency, or expenses_hidden. It is null on a figure that has an amount, including a genuine 0.0.
hours_without_rate decimal Hours that could not be priced, rounded to two decimals. 0.0 when every hour was priced. These hours are not in amount, so a non-zero value beside an amount means that amount is a partial total.
unpriced array One unpriced owner object per owner whose hours have no rate, largest first and then by name. Empty when nothing is unpriced.
fee_through date The last planned day an open-ended monthly retainer’s fee was counted through. null on every other figure, including a retainer that has an end date.

The six values of missing mean:

  • rates — nothing in the figure could be priced above zero while at least one hour had no rate. Hours on a non-billable task count as nothing rather than as priced, so they cannot rescue a total: a project whose billable rate is missing reads as unpriceable rather than as 0.0. A figure whose hours all bill nothing, with no hour missing a rate, is a real 0.0.
  • fee — a fixed-fee project has no fee set.
  • fee_dates — a monthly retainer has an end date, and the range from its fee start to that date contains no month.
  • open_ended_fee — an open-ended monthly retainer has no last planned day to count through, or counts no month from its fee start to that day.
  • expense_currency — a planned expense on the project is in a currency the figure is not in, and there is no exchange rate to bridge the two, so the total is withheld rather than summed across currencies.
  • expenses_hidden — the project has billable planned expenses and the caller may not read cost rates. Adding them to revenue would let the difference reveal the hidden cost amounts, so the revenue figure is withheld instead.

The unpriced owner object

Attribute Type Description
kind string What the hours belong to, and what lacked a rate: person, placeholder, scheduled_non_user, project, task, no_task, or deleted_task. project means the project’s own rate is missing, no_task a bar with no task on a project costed or billed by task, and deleted_task a bar whose task no longer exists.
name string The owner’s name: a person’s full name, a placeholder’s name, a scheduled non-user’s display name, or a task’s name. It is null for project, no_task and deleted_task, which name no owner.
hours decimal That owner’s unpriced hours, rounded to two decimals.

Required permissions

The account must have Forecast enabled: a company without it gets 403 with Forecast is not enabled for this account. Two company switches are answered next, both owned by this read, because the board answers them with a bare 404 that an API client cannot tell from a mistyped path:

  • the account’s Forecast financials flag — off answers 403 with Forecast financials are not enabled for this account;
  • the account’s “Project financial estimates” switch — off answers 403 with Project financial estimates are turned off for this account.

The caller must hold a Forecast seat and a Forecast read claim. A caller missing either gets 403 with Forecast is not enabled for this user. The claim decides how much of the board is reported, and scope publishes the answer.

Money is gated separately from access, by rate permission. revenue and project_type are published only to a caller who may see the project’s billable rates; everyone else gets revenue: null and project_type: null and still reads cost. cost and average_cost_rate are published only to a caller who may read all cost rates — cost_rates:read:all — and everyone else gets cost: null and average_cost_rate: null and still reads revenue. The row’s shape does not change with the caller: a hidden figure is null, never an absent key.

The shared gates, the beta contract and the refusals every Forecast read shares are on the Forecast API overview.

Retrieve the project financials

Beta endpoint. Fully available, but the response shape may still change. Until it is frozen, every response includes Harvest-Api-Stability: beta.

Returns forecast revenue and cost for every project on the caller’s board, with a 200 OK response code. The report covers each project’s whole life, past and future, so it takes no window and no filter, and it is not paginated: there is no second page and no smaller page size.

GET /v2/forecast/financials

No parameter narrows or pages the report. A query parameter that asks for something else is refused rather than ignored, because answering the whole board to a client that asked for a period or a filter would label the figures as something they are not:

  • page is accepted only as 1, and per_page only as 2000 — the default. A client that sends them on every call is not paging, so they are let through; any other value is refused.
  • from and to are refused, because this read has no window.
  • cursor and updated_since are refused: this read reports one whole board and has no paging to honour.
  • Any other key is refused as unsupported, so a mistyped filter cannot be served the whole board as if it had been applied.
  • access_token, account_id, ref and format are accepted: they are how the request layer identifies the caller, attributes the call and picks the body format, not filters.

Example Request:

curl "https://api.harvestapp.com/v2/forecast/financials" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Harvest-Account-Id: $ACCOUNT_ID" \
  -H "User-Agent: MyApp ([email protected])"

Example Response:

{
  "scope": "all",
  "truncated": false,
  "projects": [
    {
      "project_id": 14307913,
      "name": "[MW] Marketing Website",
      "client_id": 5735774,
      "client_name": "ABC Corp",
      "currency": "EUR",
      "cost_currency": "USD",
      "planned_hours": 120.0,
      "project_type": "time_and_materials",
      "revenue": {
        "amount": 12500.0,
        "missing": null,
        "hours_without_rate": 0.0,
        "unpriced": [],
        "fee_through": null
      },
      "cost": {
        "amount": 5300.0,
        "missing": null,
        "hours_without_rate": 0.0,
        "unpriced": [],
        "fee_through": null
      },
      "average_cost_rate": 40.0
    },
    {
      "project_id": 14307920,
      "name": "[NW] Retainer — Northwind",
      "client_id": 5735781,
      "client_name": "Northwind Traders",
      "currency": "USD",
      "cost_currency": "USD",
      "planned_hours": 75.0,
      "project_type": "fixed_fee",
      "revenue": {
        "amount": 9000.0,
        "missing": null,
        "hours_without_rate": 0.0,
        "unpriced": [],
        "fee_through": "2026-08-31"
      },
      "cost": {
        "amount": 3187.5,
        "missing": null,
        "hours_without_rate": 0.0,
        "unpriced": [],
        "fee_through": null
      },
      "average_cost_rate": 42.5
    },
    {
      "project_id": 14307931,
      "name": "Internal Tooling",
      "client_id": 5735774,
      "client_name": "ABC Corp",
      "currency": "USD",
      "cost_currency": "USD",
      "planned_hours": 40.0,
      "project_type": "non_billable",
      "revenue": {
        "amount": 0.0,
        "missing": null,
        "hours_without_rate": 0.0,
        "unpriced": [],
        "fee_through": null
      },
      "cost": {
        "amount": 1800.0,
        "missing": null,
        "hours_without_rate": 0.0,
        "unpriced": [],
        "fee_through": null
      },
      "average_cost_rate": 45.0
    },
    {
      "project_id": 14307944,
      "name": "[BR] Brand Refresh",
      "client_id": 5735788,
      "client_name": "Cedar & Finch",
      "currency": "USD",
      "cost_currency": "USD",
      "planned_hours": 12.5,
      "project_type": "time_and_materials",
      "revenue": {
        "amount": null,
        "missing": "rates",
        "hours_without_rate": 12.5,
        "unpriced": [
          {
            "kind": "person",
            "name": "Bob Powell",
            "hours": 12.5
          }
        ],
        "fee_through": null
      },
      "cost": {
        "amount": 500.0,
        "missing": null,
        "hours_without_rate": 0.0,
        "unpriced": [],
        "fee_through": null
      },
      "average_cost_rate": 40.0
    }
  ]
}

The third row is a real zero and the fourth is not: Internal Tooling is non-billable, so its revenue is 0.0, while Brand Refresh has revenue it could not price, so its amount is null and missing names the reason.

Errors

Status When
400 The User-Agent header is missing: User-Agent header required.
400 updated_since is not a datetime: Invalid updated_since datetime provided: "nope".
400 page is not an integer, is zero or negative, or is past the largest page the report can serve: Invalid page parameter: must be an integer, Invalid page parameter: must be greater than 0, or Invalid page parameter: must be from 1 to 2305843009213693.
400 per_page is not an integer, or is outside the range the surface accepts: Invalid per_page parameter: must be an integer, or Invalid per_page parameter: must be from 1 to 2000.
401 Authentication failed: Authentication failed for API request.
403 The account does not have Forecast: Forecast is not enabled for this account.
403 The caller holds no Forecast seat, or holds one without a Forecast read claim: Forecast is not enabled for this user.
403 The account’s Forecast financials flag is off: Forecast financials are not enabled for this account.
403 The account’s “Project financial estimates” switch is off: Project financial estimates are turned off for this account.
403 The account is inactive: Account inactive.
403 The caller is not authorized to read the board: Not authorized!.
406 The Accept header disallows JSON.
422 page is greater than 1: Invalid page parameter: this endpoint returns the whole report, so only the first page exists.
422 per_page is anything but the default: Invalid per_page parameter: this endpoint returns the whole report, so only the default of 2000 can be honoured.
422 from or to is sent: Invalid from parameter: this endpoint reports the project's whole life, so it has no window, and the same sentence for to. Several refused parameters are answered in one message, their sentences joined with . .
422 A query parameter the endpoint does not have is sent, such as project_id or sort_by: Invalid project_id parameter: not supported by this endpoint, with several keys listed together and sorted.
422 updated_since is sent: The updated_since parameter is not supported on this endpoint.
422 cursor is malformed, or is well formed and still refused: Invalid cursor parameter, Invalid cursor parameter: must not be empty, Invalid cursor parameter: must be a valid base64 encoded JSON string, or Invalid cursor parameter: this endpoint does not support cursor pagination.
500 An unexpected failure.

Still have questions? We’re happy to help!

Contact Us