Reports and Metrics API

Read revenue, profit, burn and runway with the currency, completeness, exclusions and valuation basis of every figure.

Summary

GET /reports/revenue, /reports/profit, /reports/burn-rate, /reports/runway and the matching /metrics routes return the same figures as the Overview and Reports pages. Every figure carries a calculation object that says which currency it is in, whether it is complete, partial or unavailable, which records were left out and why, when it was calculated and how amounts in other currencies were valued.

A missing figure is null with a reason. It is never 0.

Capabilities

MethodEndpointScopeResult
GET/reports/revenuereports.readMonthly revenue against the comparison period, summary.calculation and summary.previousCalculation.
GET/reports/profitreports.readMonthly profit against the comparison period; the totals are null when profit is unavailable.
GET/reports/burn-ratereports.read{ result, calculation }: monthly gross burn and the contract over the range.
GET/reports/runwayreports.read{ months, basis, calculation }.
GET/reports/expensesreports.readMonthly expenses; summary.calculation for the total spend.
GET/reports/spendingreports.read{ result, calculation }: spending by category and the contract over the range.
GET/metrics/expenses, /metrics/spending, /metrics/tax-summarymetrics.readAs before, plus summary.calculation.
GET/metrics/revenue, /metrics/profitmetrics.readAs before, plus summary.calculation and summary.previousCalculation.
GET/metrics/burn-ratemetrics.readAs before, plus summary.calculation.
GET/metrics/runwaymetrics.readAs before, plus summary.basis and summary.calculation.

Prerequisites

Send from and to as YYYY-MM-DD. Send currency (ISO 4217) to report in one currency; without it the workspace's base currency is used. A workspace with no base currency must send currency (see Errors).

Concepts

The calculation object

FieldMeaning
completenesscomplete: nothing was left out. partial: some records were left out and exclusions lists them. unavailable: there is no figure.
reportingCurrencyThe ISO code value is in.
valueThe figure in minor units of reportingCurrency (cents for USD, yen for JPY); runway's value is { "months": number | null }. null when unavailable.
unavailableReasonOnly when unavailable: no_reporting_currency, incomplete_data (records were left out and a partial figure would mislead), or no_data.
exclusionsOne entry per reason, record type and currency: reason (missing_exchange_rate, unresolved_currency), recordType (transaction, bank_account, …), currency (null when no currency was recorded), count, and amount in that currency's minor units (null when the currency is unknown).
calculatedAtWhen the figure was calculated.
valuationbasis: not_converted, stored_base_amount (the base amount stamped on each transaction when it was imported), latest_stored_rate, or mixed; ratesAsOf: the update time of the oldest stored rate used.

How currencies are combined

A transaction in the reporting currency counts at its own amount. A transaction in another currency counts at the base amount stamped on it when that amount was stamped in the reporting currency, otherwise at the latest stored exchange rate. A base amount stamped in a previous base currency is never read as the current one. A transaction with no rate, or with no recorded currency, is left out and listed in exclusions. Amounts are never added at face value.

Partial and unavailable figures

Revenue and burn can be partial: the totals are the part that could be counted, and exclusions says what is missing. Profit, net burn and runway are never partial: when anything is left out they are unavailable with incomplete_data, and their totals are null. Runway is also unavailable when a cash account's balance cannot be valued in the reporting currency.

/reports/runway and /metrics/runway answer months: null with an available calculation when the team is not burning cash (value.months is null) or the forecast sees no breach inside its horizon, and months: null with completeness: unavailable when there is no figure. Read calculation before showing a null as "no countdown".

Workflow

  1. Choose a report from the endpoint table and use an API key with its listed read scope.
  2. Set from and to for the reporting period. Send currency when you need a specific reporting currency or the workspace has no base currency.
  3. Read the response's calculation object before displaying the figure. For revenue and profit, read summary.calculation; when comparing periods, also check summary.previousCalculation. Show exclusions beside a partial figure; show the reason instead of a value when the calculation is unavailable.
  4. If the response is 409 REPORT_CURRENCY_REQUIRED, choose a currency or set the workspace's base currency before requesting the report again.

Behavior specification

Errors

With no base currency and no currency parameter these routes answer 409 with code REPORT_CURRENCY_REQUIRED: the figures would have to add several currencies together. Set the workspace's base currency or send currency. Figures in one currency (individual transactions, bank balances, invoices, and any report requested with currency) keep working without a base currency. See Errors and Safe Retries.

Changes on 26 November 2026 and how to migrate

Before issue 4028 these reports dropped foreign transactions that had no stamped base amount without saying so, kept only same-currency rows when currency was sent, added every currency together for a workspace with no base currency, and left cash accounts without an exchange rate out of runway silently. Now:

RouteBeforeNowWhat to change
/reports/revenue, /reports/profitsummary.currentTotal and prevTotal were always numbersThey are null when the figure is unavailable; summary.calculation and summary.previousCalculation were addedTreat null as "no figure" and show calculation beside a partial total
/reports/burn-rateA bare array of { date, value, currency }{ result, calculation }; result is the old arrayRead body.result
/reports/runwayA bare number or null{ months, basis, calculation }Read body.months, and body.calculation.completeness to tell "unavailable" from "no countdown"
/metrics/revenue, /metrics/profitTotals always numbersProfit totals are null when unavailable; summary.calculation addedAs for /reports/profit
/metrics/burn-rate, /metrics/runway—summary.calculation (and summary.basis for runway) addedAdditive
/reports/spendingA bare array of categories{ result, calculation }; result is the old arrayRead body.result
/reports/expenses, /metrics/expenses, /metrics/spending, /metrics/tax-summary—summary.calculation added; tax is never converted, so other currencies are listed as left outAdditive
All of the above, and the other /metrics routesA workspace with no base currency got figures in its most-used currency or USD (meta.currencySource: "inferred")409 REPORT_CURRENCY_REQUIREDSend currency, or set the base currency
All of the aboveWith currency, only rows already in that currency countedRows in other currencies are converted where a rate is stored, and listed when notExpect totals to include converted foreign transactions

Before and after

GET /reports/revenue?from=2026-03-01&to=2026-03-31 with a transaction in XTS and no XTS rate:

// Before
{ "summary": { "currentTotal": 1000, "prevTotal": 800, "currency": "USD" }, "meta": { … }, "result": [ … ] }
// After
{ "summary": { "currentTotal": 1000, "prevTotal": 800, "currency": "USD",
    "calculation": { "completeness": "partial", "reportingCurrency": "USD", "value": 100000,
      "exclusions": [{ "reason": "missing_exchange_rate", "recordType": "transaction", "currency": "XTS", "count": 1, "amount": 25000 }],
      "calculatedAt": "2026-11-26T10:00:00.000Z", "valuation": { "basis": "not_converted", "ratesAsOf": null } },
    "previousCalculation": { "completeness": "complete", … } }, "meta": { … }, "result": [ … ] }

GET /reports/profit for the same period:

// Before
{ "summary": { "currentTotal": 570, "prevTotal": 400, "currency": "USD" }, … }
// After
{ "summary": { "currentTotal": null, "prevTotal": 400, "currency": "USD",
    "calculation": { "completeness": "unavailable", "value": null, "unavailableReason": "incomplete_data", "exclusions": [ … ], … },
    "previousCalculation": { "completeness": "complete", "value": 40000, … } }, … }

GET /reports/burn-rate:

// Before
[{ "date": "2026-03-01", "value": 400, "currency": "USD" }]
// After
{ "result": [{ "date": "2026-03-01", "value": 400, "currency": "USD" }],
  "calculation": { "completeness": "partial", "reportingCurrency": "USD", "value": 40000, "exclusions": [ … ], … } }

GET /reports/runway:

// Before
12
// After: a countdown
{ "months": 12, "basis": "trailing_burn", "calculation": { "completeness": "complete", "value": { "months": 12 }, … } }
// After: not burning cash (no countdown)
{ "months": null, "basis": "none", "calculation": { "completeness": "complete", "value": { "months": null }, … } }
// After: a cash account with no exchange rate
{ "months": null, "basis": "none", "calculation": { "completeness": "unavailable", "unavailableReason": "incomplete_data",
    "exclusions": [{ "reason": "missing_exchange_rate", "recordType": "bank_account", "currency": "XTS", "count": 1, "amount": 200000 }], … } }

GET /reports/spending:

// Before
[{ "name": "Software", "slug": "software", "amount": 400, "currency": "USD", "color": "#8492A6", "percentage": 100, "excludedCurrencies": ["XTS"] }]
// After
{ "result": [{ "name": "Software", "slug": "software", "amount": 400, … }],
  "calculation": { "completeness": "partial", "reportingCurrency": "USD", "value": 40000, "exclusions": [ … ], … } }

Any of these routes for a workspace with no base currency and no currency parameter:

// Before: 200 with figures in the most-used currency or USD
// After: 409
{ "code": "REPORT_CURRENCY_REQUIRED", "error": "Conflict",
  "message": "This report needs one currency: set the team's base currency or choose a currency." }

meta.currencySource is no longer inferred. An invoice with no recorded currency is no longer counted as the base currency in invoice metrics; it is left out and named unknown.

Diagrams

Reading a report figure

Rendering diagram…

Screenshots

Not applicable: this page describes an API rather than an application screen.

Verification

  1. Request /reports/revenue for a period with a transaction in a currency that has no exchange rate. Confirm completeness is partial and exclusions names that currency with its count and amount.
  2. Request /reports/profit for the same period. Confirm currentTotal is null and unavailableReason is incomplete_data.
  3. Add a cash account in a currency with no exchange rate and request /reports/runway. Confirm months is null and the calculation is unavailable with a bank_account exclusion.
  4. Clear the base currency and request any of these routes without currency. Confirm 409 with code REPORT_CURRENCY_REQUIRED; with currency the request succeeds.
  5. Compare /reports/revenue with the Overview Revenue card for the same range: the total and the completeness agree.