FISCALISTO / API / REFERENCE
File to pay the payroll at the bank · Payroll
The disbursement file that pays each employee's net from your bank's portal: BBVA (Net Cash), Banamex (BancaNet, layout D), Banorte (Banorte en su Empresa), Santander (Enlace) or a SPEI CSV for any bank. It takes the stamped (and not canceled) payroll receipts with that payment date, adds them up per employee and pays the CLABE on their record (clabe on the employee): within the same bank by account, to another one by SPEI. It doesn't charge or move money: you upload it to the bank and authorize it there. Whoever can't be paid (no CLABE, another bank on Santander) goes in excluded with the reason. Upload the first one as a test: each portal validates it before loading anything.
bearerAuthAuthorizationBearer <key>Your secret key: fk_test_… in test mode, fk_live_… in production. Desarrolladores › Llaves.
Idempotency-Key?stringOptional (the SDKs send it on their own). If the response is lost, repeat the request with the same value within 24 hours: it answers the same, with idempotent-replayed: true, and doesn't do it twice (it doesn't create, send emails or charge).
1 <= length <= 255application/json- body
issuer?stringIssuer (iss_…). If the key has a single issuer or the account has only one, it can be left out.
^iss_payment_date*stringThe receipts' payment date (FechaPago): the payroll receipts stamped with that date are paid, added up per employee. It's also the day the bank applies the file.
^\d{4}-\d{2}-\d{2}$layout?stringThe bank's format: bbva (Net Cash), banamex (BancaNet, layout D), banorte (Banorte en su Empresa), santander (Enlace, Santander accounts only) or spei (CSV for any bank). By default, that of account's bank.
"bbva""banamex""banorte""santander""spei"account?stringThe CLABE of the issuer's debit account. By default, the one used last time in the app, or its first bank account.
^\d{18}$sequence?integerThe day's file (1 to 99): a second file on the same day carries another number. 1 by default.
1 <= value <= 99client_number?stringBanamex: your BancaNet customer number (12 digits).
^\d{1,12}$issuer_number?stringBanorte: your issuer number (5 digits).
^\d{1,5}$OK.
application/json- response
The file to pay payroll from the bank's portal (it costs nothing).
object*stringWhat kind of object it is («invoice», «customer»…).
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_…).
layout*stringThe bank's format: bbva, banamex, banorte, santander or spei (CSV).
"bbva""banamex""banorte""santander""spei"payment_date*stringPayment date (FechaPago), YYYY-MM-DD. The last day of the period by default.
account*|The CLABE of the account to debit.
file_name*stringThe name the bank's portal expects it with.
content_type*stringtext/plain for the banks' portals, text/csv for spei.
"text/plain""text/csv"content*stringThe file as text, with lines ending in CR LF.
content_base64*stringThe same file in Windows-1252 (ANSI), in base64: save it as is to upload it.
total*numberTotal in the receipt's currency (Total).
count*integerHow many payments it carries.
-9007199254740991 <= value <= 9007199254740991payments*array<>Each payment in the file, in the order it goes.
excluded*array<>Who isn't in the file and why (no CLABE, another bank…).
The issuer is archived and no longer stamps. Its documents can still be read and canceled.
The account has several issuers and the request doesn't say which: send
issuer(iss_…).The object belongs to the other mode: an fk_test_ key only sees test data and an fk_live_ key only live data.
Live, this part of the API (inventario, portal de proveedores, pedidos, comprobación de gastos) follows the empresa's plan, as in the app: it comes with Operaciones (added to any paid plan; included in Corporativo). The books (the /v1/accounting routes except DIOT, cross checks, IVA refunds and fixed assets) come with Contabilidad (added to Independiente, Emprendedor or Negocio; included in Despacho and Corporativo): without it, changing the books answers this error, and reading them works only up to the last month it had it. Add either in Ajustes › Plan y pagos; test mode has everything.
That issuer is an empresa of the app connected to your account: through the API it only offers its Portal de proveedores (/v1/portal_suppliers and /v1/supplier_invoices) and, once someone who may pay suppliers and change Configurar pagos turned them on, its supplier payouts (/v1/payouts and /v1/payroll_payouts). It also stops when whoever connected it (or turned its payouts on) no longer has that permission in the empresa: message_es says which. Do everything else in the app.
This key can't use that issuer.
There is no such issuer in the account (or it belongs to the other mode).
There's no object with that id (or it belongs to another issuer or the other mode).
Plus those of any call (key, fields, limits): Errors. They all carry code, message and, when it's about a field, param.
curl -X POST 'https://api.fiscalisto.com/v1/payroll_bank_files' \ -H 'Authorization: Bearer fk_test_…' \ -H 'Idempotency-Key: pedido-A-1042' \ -H 'Content-Type: application/json' \ -d '{ "payment_date": "2026-10-31", "layout": "bbva"}'{ "object": "payroll_bank_file", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "layout": "bbva", "payment_date": "2026-10-31", "account": "012180001122334451", "file_name": "nomina-bbva-20261031-01.txt", "content_type": "text/plain", "content": "", "content_base64": "", "total": 5000.37, "count": 1, "payments": [ { "employee": "emp_OufpKqnrvx9p3RxmD1RIDgEHzKYPYnYBlV", "number": "9", "name": "MARIA OLIVIA MARTINEZ SAGAZ", "tax_id": "MASO451221PM4", "amount": 5000.37, "clabe": "012180001234567899", "spei": false, "receipts": [ "N-118" ] } ], "excluded": []}Was this page helpful?
Get a payroll batch GET
With each employee's receipt: stamped (its invoice and UUID) or why not (error.code and error.message).
Pay the nómina by transfer POST
Like «Pagar por transferencia» in the app: the net of each stamped (and not cancelled) payroll receipt with that payment date, less vales de despensa, to each employee's CLABE, in a draft supplier payout (Pagos). It never goes out on its own: someone on the team opens it at app_url and signs it with their passkey. It only pays a CLABE already registered in Pagos, approved and past its wait: the API doesn't register CLABEs, so changing an employee's clabe can't redirect their nómina (it's registered in the app and waits like any account). Whoever can't be paid goes in excluded with the reason; whoever is already in another payout of this nómina is never paid twice. Only if the empresa pays with Fintoc and lets the API prepare payouts in Pagos › Configurar pagos (otherwise 403 payouts_api_disabled); if nobody can be paid it answers 400 parameter_invalid with the reason. It requires Idempotency-Key: if the response is lost, repeat it with the same value and it answers the same payout; the same key with another date answers 409 idempotency_key_reused.