FISCALISTO / API
Supplier payments
Let your ERP prepare SPEI payments to your suppliers, have someone on your team sign them in the app, and let your ERP know when each transfer arrived.
With Pagos (in the app, Compras y gastos › Pagos), your company pays its suppliers by SPEI from its Fintoc account: it picks the invoices, someone signs with their passkey and the money goes out on its date to each supplier's verified account. With the API, your ERP (SAP, NetSuite, CONTPAQi or your own):
- sees what's left to pay on each received invoice, counting payment complements, credit notes and payments already made;
- prepares pagos that stay as drafts until someone on your team reviews and signs them in the app;
- knows when each transfer arrived, with its tracking key and its CEP, to reconcile it.
The API never does what moves money: it doesn't sign pagos, add or change a CLABE, or change signatures or limits. That's done in the app, with a passkey, with the waits and approvals your company configured. So a stolen key can, at most, leave a draft nobody will sign.
The objects:
- A pago (
pyo_…): one or more transfers that go out together on their date. Its status:draft→pending_approval(signatures missing) →approved→sending→paid,partially_paidorfailed; orcanceledbefore going out. - A transfer (
pyt_…): to one supplier account, with the invoices it pays.queued→sending→in_transit→succeeded; orfailed,returningandreturnedif the bank rejects or returns it. - A supplier account (
pya_…) and a recurring pago (pym_…): read only.
Before you start
- The RFC pays with Fintoc: in the app, under Pagos, connect its Fintoc account. Otherwise these routes return
400payouts_not_enabled. - The RFC is an issuer of your API account: the RFCs of the company where you created the key already are (
type: "own"), and the key uses their pagos while whoever created it may pay that RFC's suppliers in the app (and see payroll, for/v1/payroll_payouts); if not, or if they left the company, it returns403team_permission_denied. A key created by someone with the Desarrollador role doesn't see CLABEs or pagos; if the pagos are in another of your companies, connect it in Desarrolladores › Emisores with Conectar una empresa, like the supplier portal, with Usar también sus pagos a proveedores on (or later, Usar sus pagos in its row's menu). Only someone of that company who may pay suppliers and change Configurar pagos of that RFC turns that on, and it works while that person still may: if they leave the company or lose the permission, these routes and their events return403issuer_linked_empresauntil someone else who may turns them on./v1/payroll_payoutsalso needs them to be able to see payroll. - To prepare pagos, someone allowed to change the payment settings turns on, in Pagos › Configurar pagos, «Dejar que la API y los asistentes (ChatGPT, Claude) preparen pagos». It starts off, and turning it on waits like any other change that loosens security. While it's off,
POST /v1/payoutsreturns403payouts_api_disabled; reading always works.
What's left to pay
The received invoices with something left to pay, as in Pagos › Por pagar:
curl -G https://api.fiscalisto.com/v1/payable_invoices \
-H "Authorization: Bearer $FISCALISTO_API_KEY" \
-d supplier_tax_id=AAA010101AAAEach one has total, paid and amount_due in its currency (total and amount_due already without withholdings: withheld has the ISR and VAT withheld, which the company pays to SAT, or null; with an accepted early payment from the supplier portal, amount_due is the total less the discount until the nota de crédito arrives, and early_payment has status, pay_on, discount and discount_pending), in_payout (the open pago it's already in, or null; if it was split across several pagos, the first of them: amount_due is still the whole balance and a new pago can only take what those don't cover), credit_notes_subtracted (the notas de crédito the supplier related to the invoice that already came off amount_due, with uuid, series_folio, date and amount), credit_notes_to_review (if the company chose Esperar a que alguien las acepte under Notas de crédito relacionadas con la factura in Configurar pagos: the notas de crédito the supplier related to the invoice that don't come off amount_due yet, with uuid, series_folio, date, amount and declined, true if someone chose No restarla; they're accepted in the app with Aceptar nota de crédito or by applying them in a pago of that same invoice with credit_notes; empty if the company subtracts them on their own; preparing a payout of that invoice without applying it says so in warnings), payment_hold (if a rule with hold_payment held its payment: rule, note and held_at; it isn't paid until someone allowed taps Liberar el pago in the app; otherwise null) and warnings (what the before-paying rules found: canceled at the SAT, supplier on the 69-B list…). With uuid you ask for exact invoices, paid or not (up to 100, comma separated). An invoice marked paid without a complemento, or a PUE whose money source was noted (mark_paid with money_source, the app or a rule), has amount_due 0 and can't be paid until the mark is removed (mark_unpaid).
Prepare a pago
Send the folios fiscales (UUIDs); without amount, it pays everything left on each one. A supplier's invoices go in one transfer to its approved account:
curl https://api.fiscalisto.com/v1/payouts \
-H "Authorization: Bearer $FISCALISTO_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: pago-erp-8841" \
-d '{ "pay_on": "2026-11-27", "note": "Fletes de octubre", "invoices": [{ "uuid": "9F1C2B3A-4D5E-4F60-8A7B-1C2D3E4F5A6B" }] }'It returns 201 with the pago in draft. It's checked like in the app: if an invoice is already paid or in another pago, the supplier has no approved account, a rule blocks it or a limit is passed, it returns 400 payout_invalid and the message says which line and why. Always send Idempotency-Key: if the network fails and the request is repeated, no pago is made twice. The same key with a different request (other invoices, amounts or day) returns 409 idempotency_key_reused, even after more than 24 hours: use a new one for each pago.
An invoice in dollars or another currency is paid in pesos at the day's official exchange rate (the FIX published in the DOF); if none is published yet, it returns 400 payout_invalid. In a scheduled pago, exchange_rate decides what happens if the official rate moves before its day: official holds it if it moved past the Configurar pagos tolerance, to be signed with that day's rate; fixed goes for today's pesos. Without it, it takes what Configurar pagos says. Before it goes out, each invoice is checked again: if it was canceled at the SAT, paid some other way, or a scheduled pago's rate moved more than Configurar pagos allows, the pago doesn't go out and stays approved until someone fixes it in the app.
The pago doesn't go out on its own. Someone on your team opens it at app_url, reviews it and signs it with their passkey; whoever signs first counts as who prepared it, so if your company asks for someone else to sign, another person's signature is still missing. When it has all its signatures, payout.approved arrives and it goes out on its date.
Payments without an invoice
To pay something that has no supplier invoice (a payroll, an advance, a refund), send payments instead of invoices, or along with them: the RFC of whoever receives it (tax_id, with an approved account in Cuentas de proveedores), their name, the amount in pesos and description. With no_invoice_reason the pago never asks for an invoice and doesn't show in Pagos sin factura, as in a payroll, whose CFDI is the recibo; without it, the invoice is asked for like any payment without one. Those to one RFC go in a single transfer, and up to 500 go across both arrays:
curl https://api.fiscalisto.com/v1/payouts \
-H "Authorization: Bearer $FISCALISTO_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: nomina-2026-11-q1" \
-d '{ "pay_on": "2026-11-14", "name": "Nómina 1.ª quincena", "payments": [{ "tax_id": "GOMA850101AB1", "name": "Ana Gómez", "amount": 9850.5, "description": "Nómina 1.ª quincena de noviembre", "no_invoice_reason": "Nómina: el CFDI es el recibo" }] }'Know when it arrived
Listen on your webhooks:
| Event | When |
|---|---|
payout_transfer.succeeded | A transfer arrived. It has tracking_key, the invoices it paid and, shortly after, cep_url. |
payout_transfer.failed | It didn't go out; failure_reason says why. Its invoices go back to Por pagar. |
payout_transfer.returned | The supplier's bank returned it; the money goes back to your Fintoc account. |
payout.paid | Every transfer of the pago arrived. |
payout.partially_paid / payout.failed | It ended with transfers that didn't arrive, or none arrived. |
payout.canceled | It was canceled before going out. |
Or ask for the pago:
curl https://api.fiscalisto.com/v1/payouts/pyo_OufpKqnrvx9p4Pq9mZr1XyT5uBcW8sKdLx \
-H "Authorization: Bearer $FISCALISTO_API_KEY"GET /v1/payouts lists them, newest first, with status, pay_on_from and pay_on_to. It includes the ones made in the app.
Cancel
One the API prepared, while nothing has gone out:
curl https://api.fiscalisto.com/v1/payouts/pyo_OufpKqnrvx9p4Pq9mZr1XyT5uBcW8sKdLx/cancel \
-H "Authorization: Bearer $FISCALISTO_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "reason": "Se pagó por fuera" }'Its invoices go back to Por pagar and payout.canceled arrives. Each API account cancels only what its own keys prepared: one prepared in the app, or by another API account connected to the company, is canceled there (400 payout_not_from_api).
Pause all pagos
The empresa's emergency stop, for a security tool that sees something odd or a button in your ERP. At once no transfer goes out (signed pagos, retries or recurring ones), and the admins get an alert with the reason:
curl https://api.fiscalisto.com/v1/payouts/pause \
-H "Authorization: Bearer $FISCALISTO_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "reason": "Acceso sospechoso a la cuenta de tesorería" }'It returns the state (payouts_pause) with paused: true; GET /v1/payouts/pause reads it. The API never resumes: the people in Quién firma sign it in the app, each with their passkey, in Pagos › Configurar pagos. It works only where the empresa lets the API work with its pagos (otherwise 403 payouts_api_disabled), and pausing what's already paused changes nothing. Whoever created the key must be in Pausar todos los pagos for that RFC (otherwise 403 team_permission_denied), and since a pause stops the payments of every RFC of the empresa, a key limited to some issuers pauses only when it reaches every one that pays (otherwise 403 issuer_not_allowed).
Accounts and recurring pagos
GET /v1/payee_accounts says which account each supplier is paid to, who the holder the bank confirmed is, whether it can be paid yet (usable) and how it was verified (verification: bank if the bank confirmed the supplier's RFC, by_name if the bank gave no RFC and the holder's name is the supplier's per the SAT (when the empresa allows it), by_hand if someone verified it by hand because the bank's RFC differed only in its homoclave, third_party if it was authorized as a third party's). A supplier can have several accounts: is_default marks the default one, which a pago uses when no other is chosen, and account_number has its account number if one was noted beside the CLABE. GET /v1/payout_mandates lists the recurring pagos (rent, services) with their next date. Both are read only: a new CLABE or a recurring pago is added and signed in the app.
Was this page helpful?
Supplier portal
Bring the invoices your suppliers send through the portal into your ERP as soon as they're approved, and send back the date you'll pay them and the payment.
Travel and expenses
Travel and expense reports of whoever travels or spends for the issuer: their invoices checked against the law and the policy, approval, and advances, reimbursements and returns.