v1

latestOpenAPI 3.1.02026-08-04103211436.0 KB
Forecasts

Retrieve forecast

Returns a single forecast by its Embat id. accountingAmount and exchangeRate are not computed for this endpoint and are returned as stored, typically null — use GET /forecasts/{companyId} to get them populated. If the forecast's scenario is no longer visible, this endpoint returns a response with every field set to null instead of the forecast data.

get/forecasts/{companyId}/{id}

Path parameters

idstring required
companyIdstring required

Response

Successful Response

idstring nullable

Embat forecast ID.

companyIdstring nullable

Embat company ID. You can get them from "companies" endpoints.

amountnumber nullable

Forecasted amount, in the scenario currency. Positive for inflows, negative for outflows.

accountingAmountnumber nullable

Forecasted amount converted to EUR using the exchange rate for the forecast date. null when the forecast is dated before 2021 or no exchange rate is yet available for that date. Only computed when listing forecasts with GET /forecasts/{companyId}; retrieving a single forecast by id returns this field as stored, typically null.

accountingCurrency'AED' | 'AFN' | 'ALL' | 'AMD' | 'ANG' | 'AOA' | 'ARS' | 'AUD' | 'AWG' | 'AZN' | 'BAM' | 'BBD' | 'BDT' | 'BGN' | 'BHD' | 'BIF' | 'BMD' | 'BND' | 'BOB' | 'BOV' | 'BRL' | 'BSD' | 'BTC' | 'BTN' | 'BWP' | 'BYN' | 'BZD' | 'CAD' | 'CDF' | 'CHE' | 'CHF' | 'CHW' | 'CLF' | 'CLP' | 'CNH' | 'CNY' | 'COP' | 'COU' | 'CRC' | 'CUP' | 'CVE' | 'CZK' | 'DJF' | 'DKK' | 'DOP' | 'DZD' | 'EEK' | 'EGP' | 'ERN' | 'ETB' | 'ETH' | 'EUR' | 'FJD' | 'FKP' | 'GBP' | 'GEL' | 'GHS' | 'GIP' | 'GMD' | 'GNF' | 'GTQ' | 'GYD' | 'HKD' | 'HNL' | 'HRK' | 'HTG' | 'HUF' | 'IDR' | 'ILS' | 'INR' | 'IQD' | 'IRR' | 'ISK' | 'JMD' | 'JOD' | 'JPY' | 'KES' | 'KGS' | 'KHR' | 'KMF' | 'KPW' | 'KRW' | 'KWD' | 'KYD' | 'KZT' | 'LAK' | 'LBP' | 'LKR' | 'LRD' | 'LSL' | 'LTC' | 'LTL' | 'LVL' | 'LYD' | 'MAD' | 'MDL' | 'MGA' | 'MKD' | 'MMK' | 'MNT' | 'MOP' | 'MRU' | 'MUR' | 'MVR' | 'MWK' | 'MXN' | 'MXV' | 'MYR' | 'MZN' | 'NAD' | 'NGN' | 'NIO' | 'NOK' | 'NPR' | 'NZD' | 'OMR' | 'PAB' | 'PEN' | 'PGK' | 'PHP' | 'PKR' | 'PLN' | 'PYG' | 'QAR' | 'RON' | 'RSD' | 'RUB' | 'RWF' | 'SAR' | 'SBD' | 'SCR' | 'SDG' | 'SEK' | 'SGD' | 'SHP' | 'SLE' | 'SOS' | 'SRD' | 'SSP' | 'STN' | 'SVC' | 'SYP' | 'SZL' | 'THB' | 'TJS' | 'TMT' | 'TND' | 'TOP' | 'TRY' | 'TTD' | 'TWD' | 'TZS' | 'UAH' | 'UGX' | 'USD' | 'USN' | 'UYI' | 'UYU' | 'UYW' | 'UZS' | 'VED' | 'VEF' | 'VES' | 'VND' | 'VUV' | 'WST' | 'XAF' | 'XAG' | 'XAU' | 'XBA' | 'XBB' | 'XBC' | 'XBD' | 'XCD' | 'XDR' | 'XOF' | 'XPD' | 'XPF' | 'XPT' | 'XSU' | 'XTS' | 'XUA' | 'XXX' | 'YER' | 'ZAR' | 'ZMK' | 'ZMW' | 'ZWG' | 'ZWL'
exchangeRatenumber nullable

Exchange rate applied to obtain accountingAmount from amount. Subject to the same conditions as accountingAmount.

datestring date-time nullable

Date the forecast applies to.

createdAtstring date-time nullable

Creation date of the forecast.

updatedAtstring date-time nullable

Last updated date of the forecast.

categoryIdstring nullable

Embat ID of the category the forecast is classified under.

Example response

{
  "id": "fct_00123",
  "amount": 15000,
  "accountingAmount": 13850.25,
  "exchangeRate": 1.083,
  "scenario": {
    "id": "scn_00045",
    "name": "Base case",
    "description": "Baseline treasury projection for FY2026"
  }
}