FISCALISTO / API / REFERENCE
Cash flow
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.
Objects
The object CashForecast
- 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*stringAlways cash_forecast.
livemode*booleantrue in production (fk_live_ keys), false in test mode (fk_test_). Test objects aren't valid before the SAT.
issuer*stringThe issuer (iss_…).
today*stringToday in Mexico City (YYYY-MM-DD): the start.
end*stringThe last day of week 13.
currency*stringEverything 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*numberThe 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
- 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*stringThe planned movement (cfi_…).
object*stringAlways cash_forecast_item.
livemode*booleantrue in production (fk_live_ keys), false in test mode (fk_test_). Test objects aren't valid before the SAT.
issuer*stringThe issuer (iss_…).
description*stringWhat it is: «Renta», «Crédito del banco».
direction*stringinflow money comes in; outflow goes out.
"inflow""outflow"amount*numberHow much, in pesos.
date*stringThe day (YYYY-MM-DD), or the first time if it repeats.
frequency*stringonce one time; weekly every week; biweekly every two; monthly every month.
"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?
See how a customer pays GET
How many days they take to pay, what share arrives on time with their credit days, whether they pay slower than before, how they pay and when what they owe would arrive. From their credit invoices (PPD) of the last 12 months and their payment complements, like «Cómo paga» in the app. It doesn't apply to XAXX010101000 or XEXX010101000.
Get the cash flow GET
The issuer's next 13 weeks, like «Flujo de efectivo» in the app: what it's owed, with how long each customer usually takes to pay; what it owes suppliers; payroll; the monthly tax returns; the recurring invoices and its planned movements, from the balance you gave. It brings alerts with what you can do, and with the parameters, a scenario (not saved). An estimate: nothing changes on its own.