FISCALISTO / API
Cash flow forecast
An issuer's next 13 weeks: what comes in and goes out from its invoices, payroll and taxes, with warnings and scenarios. Give it today's balance and what no invoice says.
Fiscalisto builds the cash flow forecast from what it already has for the issuer, like Flujo de efectivo in the app. It's an estimate: nothing changes on its own, not an invoice and not a payment. What you send only changes the forecast.
Line (type) | Where it comes from |
|---|---|
receivable | What your customers owe you, on the day each one usually pays (from their payment complements, like GET /v1/customers/{id}/payment_behavior) or, with no history, with their credit days. |
payable | Your suppliers' unpaid invoices: the day you scheduled in the supplier portal, their due date or their credit days. |
payroll | Payroll: the average of the latest ordinary receipts of each periodicity, on its next payday. |
taxes | The pending monthly returns: what you paid in the latest ones or, if there are none, the IVA and ISR calculated from your CFDI. |
recurring_invoice | What your active recurring invoices will bill. |
planned_inflow, planned_outflow | What you added: a rent, a loan, a cash sale. |
What's more than 90 days late doesn't count (left_out: "doubtful") unless you ask for it.
See the 13 weeks
curl https://api.fiscalisto.com/v1/cash_forecast \
-H "Authorization: Bearer $FISCALISTO_API_KEY"It answers the weeks (week 1 runs from today to Sunday) with their starting and ending balance, what comes in and goes out of each type in by_type, each line in lines with how it was estimated (basis) and how sure it is (confidence), and warnings:
Warning (type) | When |
|---|---|
no_starting_balance | You haven't given today's balance: the forecast starts from 0. |
stale_starting_balance | The balance you gave is more than 7 days old. |
shortfall | A week ends below minimum_balance (or 0); shortfall says how much would be missing. |
overdue_receivables | A quarter or more of what you're owed is already late. |
customer_concentration | A single customer is 40 % or more of what comes in. |
doubtful_left_out | What's more than 90 days late was left out. |
Each warning brings in detail what you can do. You decide.
What if…?
The parameters build a scenario without saving anything: customers_pay_days_later and pay_suppliers_days_later (0 to 120 days), recurring_sales_change (−100 to 100, percent), include_recurring=false and include_doubtful=true.
curl -G https://api.fiscalisto.com/v1/cash_forecast \
-H "Authorization: Bearer $FISCALISTO_API_KEY" \
-d customers_pay_days_later=15 \
-d recurring_sales_change=-10The answer says in scenario what it was calculated with.
Today's balance
The bank doesn't tell Fiscalisto how much you have, so the forecast starts from the balance you give. suggested_starting_balance brings the one from your latest bank statements in Conciliación, only as a suggestion. With minimum_balance, each week that ends below it brings a warning.
curl https://api.fiscalisto.com/v1/cash_forecast \
-H "Authorization: Bearer $FISCALISTO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"starting_balance": { "amount": 185000, "date": "2026-11-16" },
"minimum_balance": 50000
}'Only what you send changes; starting_balance: null removes it. It answers the forecast with the new balance.
What no invoice says
A planned item is something you expect to pay or collect with no CFDI: the rent, a loan installment, a cash sale. It goes once (once) or every week, two weeks or month, until until.
curl https://api.fiscalisto.com/v1/cash_forecast/planned_items \
-H "Authorization: Bearer $FISCALISTO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"description": "Renta de la bodega",
"direction": "outflow",
"amount": 28000,
"date": "2026-12-01",
"frequency": "monthly"
}'It answers the item (cfi_…). POST /v1/cash_forecast/planned_items/{id} changes it and DELETE deletes it. Up to 200 per issuer.
Change a line
A customer told you they'll pay later, or an invoice was already paid outside: send the line (lines[].line) with another date, another amount or excluded: true, and a note that whoever opens the week in the app will see.
curl https://api.fiscalisto.com/v1/cash_forecast/adjustments \
-H "Authorization: Bearer $FISCALISTO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"line": "cobro:ICV060329BY0:2026-10-15:ppd",
"date": "2026-12-04",
"note": "Nos avisó que paga en diciembre."
}'reset: true brings it back to the estimate. It only changes the forecast, never the invoice. If the line changes (a payment arrives and the invoice is no longer owed), the change stops applying.
With several RFCs
With an issuer that is its empresa's only RFC, the balance, the planned items and the changes are the same ones the app shows in Flujo de efectivo. If the empresa has several RFCs, each API issuer has its own, and the app adds up all the RFCs.
Was this page helpful?
Bank reconciliation
Send the deposits of the issuer's account and Fiscalisto tells you which invoice each one paid; once reconciled, its invoices are paid.
Purchase receipts
Save the photo of a receipt the issuer paid without an invoice, with the store, its RFC and the total, and request the invoice or mark it non-deductible.