Skip to content

FISCALISTO / API / REFERENCE

Cash flow

Open in ChatGPTOpen in ClaudeOpen in Cursor

What comes in and goes out over the next 13 weeks, from your invoices, payroll and taxes, with alerts and scenarios.

Guide to Cash flow: what each endpoint is for, step by step and with examples.

The object CashForecast

Fields
  1. CashForecast

The cash flow for the next 13 weeks: what you are owed (with how long each customer usually takes), what you owe suppliers, payroll, tax returns, recurring invoices and your planned movements, from the balance you gave. An estimate: it changes nothing.

object*string

Always cash_forecast.

livemode*boolean

true in production (fk_live_ keys), false in test mode (fk_test_). Test objects aren't valid before the SAT.

issuer*string

The issuer (iss_…).

today*string

Today in Mexico City (YYYY-MM-DD): the start.

end*string

The last day of week 13.

currency*string

Everything in pesos: anything in another currency, at its exchange rate.

starting_balance*|

Today's balance you gave; null if you haven't given it (the forecast starts from 0).

minimum_balance*number

The least you want to have; each week below it carries a warning. 0 if you didn't give it.

suggested_starting_balance*|

The balance of your latest statements in Conciliación (60 days), only as a suggestion; null without them.

scenario*

The scenario it was calculated with: the one in the query parameters.

totals*

The 13 weeks together.

weeks*array<>

The 13 weeks, in order.

lines*array<>

Each thing that comes in or goes out, from which the weeks are added up.

warnings*array<>

Warnings with what you can do; you decide.

planned_items*array<>

Your planned movements.

notes*array<string>

What couldn't be estimated and why.

Example CashForecast

{  "object": "cash_forecast",  "livemode": false,  "issuer": "iss_OufpKqnrvx9p",  "today": "2026-11-16",  "end": "2027-02-14",  "currency": "MXN",  "starting_balance": {    "amount": 185000,    "date": "2026-11-16"  },  "minimum_balance": 50000,  "suggested_starting_balance": {    "amount": 183420.5,    "date": "2026-11-14"  },  "scenario": {    "customers_pay_days_later": 0,    "pay_suppliers_days_later": 0,    "include_doubtful": false,    "include_recurring": true,    "recurring_sales_change": 0  },  "totals": {    "inflows": 612400,    "outflows": 655900,    "ending_balance": 141500,    "lowest_balance": 38200,    "lowest_week": 3,    "weeks_below_minimum": 1,    "doubtful_left_out": 12760  },  "weeks": [    {      "week": 1,      "start": "2026-11-16",      "end": "2026-11-22",      "starting_balance": 185000,      "inflows": 34800,      "outflows": 0,      "ending_balance": 219800,      "by_type": {        "receivable": 34800      }    },    {      "week": 2,      "start": "2026-11-23",      "end": "2026-11-29",      "starting_balance": 219800,      "inflows": 0,      "outflows": 121400,      "ending_balance": 98400,      "by_type": {        "payable": 46400,        "payroll": 75000      }    }  ],  "lines": [    {      "line": "cobro:ICV060329BY0:2026-10-15:ppd",      "type": "receivable",      "direction": "inflow",      "date": "2026-11-20",      "estimated_date": "2026-11-20",      "week": 1,      "amount": 34800,      "estimated_amount": 34800,      "description": "INMOBILIARIA CVA",      "tax_id": "ICV060329BY0",      "invoices": 2,      "due_date": "2026-11-14",      "days_overdue": null,      "basis": "Suele pagar en 36 días; la factura es del 15 de octubre.",      "confidence": "medium",      "left_out": null,      "adjusted": false,      "planned_item": null    }  ],  "warnings": [    {      "type": "shortfall",      "severity": "warning",      "title": "La semana 3 cerraría con $38,200, debajo de su mínimo de $50,000",      "detail": "Le faltarían $11,800. Puede cobrar antes lo atrasado o mover un pago a proveedor.",      "week": 3,      "shortfall": 11800    }  ],  "planned_items": [    {      "id": "cfi_OufpKqnrvx9p7Hq2",      "object": "cash_forecast_item",      "livemode": false,      "issuer": "iss_OufpKqnrvx9p",      "description": "Renta de la bodega",      "direction": "outflow",      "amount": 28000,      "date": "2026-12-01",      "frequency": "monthly",      "until": null    }  ],  "notes": []}

The object CashForecastItem

Fields
  1. CashForecastItem

Something you expect to pay or collect that no invoice says (a rent, a loan, a cash sale), which counts in the cash flow.

id*string

The planned movement (cfi_…).

object*string

Always cash_forecast_item.

livemode*boolean

true in production (fk_live_ keys), false in test mode (fk_test_). Test objects aren't valid before the SAT.

issuer*string

The issuer (iss_…).

description*string

What it is: «Renta», «Crédito del banco».

direction*string

inflow money comes in; outflow goes out.

One of"inflow""outflow"
amount*number

How much, in pesos.

date*string

The day (YYYY-MM-DD), or the first time if it repeats.

frequency*string

once one time; weekly every week; biweekly every two; monthly every month.

One of"once""weekly""biweekly""monthly"
until*|

The last day it repeats; null with no end.

Example CashForecastItem

{  "id": "cfi_OufpKqnrvx9p7Hq2",  "object": "cash_forecast_item",  "livemode": false,  "issuer": "iss_OufpKqnrvx9p",  "description": "Renta de la bodega",  "direction": "outflow",  "amount": 28000,  "date": "2026-12-01",  "frequency": "monthly",  "until": null}

Was this page helpful?