Skip to content

FISCALISTO / API / REFERENCE

Pay the nómina by transfer · Payroll

Open in ChatGPTOpen in ClaudeOpen in Cursor
POST
/v1/payroll_payouts

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.

Before you call

  • An issuer that already stamps. In production, with its digital seal (CSD) current: POST /v1/issuers/{id}/certificates. In test mode it stamps with SAT's test CSD.

  • A Fintoc account in the issuer's name, to pay suppliers: it's opened in the app, in Pagos › Abrir la cuenta.

  • The empresa letting the API prepare payouts, in the app, in Pagos › Configurar pagos. Even so, someone on the team signs each payout.

  • The Idempotency-Key header, a new one for each call (for example, the order's id in your system). If the response is lost, repeat the call with the same one and it isn't done twice: Idempotency.

Authorization

bearerAuth
headerAuthorizationBearer <key>

Your secret key: fk_test_… in test mode, fk_live_… in production. Desarrolladores › Llaves.

Headers

Idempotency-Key*string

A new one per CFDI (8 to 255 characters; your order id works). If the response is lost, repeat the request with the same value: it answers the same and never stamps twice.

Length8 <= length <= 255

Request body

application/json
  1. body
issuer?string

The issuer (iss_…). By default, your only issuer.

payment_date*string

The payment date (FechaPago) of the stamped payroll receipts it pays (YYYY-MM-DD).

Pattern^\d{4}-\d{2}-\d{2}$
pay_on?string

The day it goes out (YYYY-MM-DD, today or later). Today by default: it goes out as soon as it's signed.

Pattern^\d{4}-\d{2}-\d{2}$

Response body

OK. Repeating the request with the same Idempotency-Key answers the same, with the same status and the idempotent-replayed: true header.

application/json
  1. response

A nómina's payout in Pagos: each employee's net to their approved CLABE, in a draft payout someone on the team signs in the app.

object*string

What kind of object it is («invoice», «customer»…).

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_…) that pays.

payment_date*string

The payment date of the receipts it pays.

payout*

The draft payout (pyo_…), with one line per employee: it's signed in the app, at its app_url.

excluded*array<>

Who isn't in this payout and why: their CLABE isn't registered or can't be paid yet, they have no CLABE, their net is zero or they're already in another payout of this nómina.

Errors

  • Stamping requires the Idempotency-Key header (8 to 255 characters, a new one per document), so a retry never stamps twice.

  • 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.

  • The pago can't be prepared or changed like that (an invoice already paid or in another pago, a supplier without an approved account, a rule that blocks it, a limit, or it already went out). message_es says why, line by line.

  • The issuer's RFC doesn't pay suppliers with Fiscalisto: connect Fintoc in the app, under Pagos.

  • 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.

  • The empresa doesn't let the API prepare pagos: turn it on in the app, under Pagos › Configurar pagos.

  • The key acts as the person who created it, with their access in the empresa: they lack the permission for this, what you asked would give more than they have, or they're no longer a member.

  • 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_payouts' \  -H 'Authorization: Bearer fk_test_…' \  -H 'Idempotency-Key: pedido-A-1042' \  -H 'Content-Type: application/json' \  -d '{  "payment_date": "2026-11-15"}'
{  "object": "payroll_payout",  "livemode": false,  "issuer": "iss_OufpKqnrvx9p",  "payment_date": "2026-11-15",  "payout": {    "id": "pyo_OufpKqnrvx9p4Pq9mZr1XyT5uBcW8sKdLx",    "object": "payout",    "livemode": false,    "issuer": "iss_OufpKqnrvx9p",    "number": 12,    "status": "paid",    "name": "Fletes",    "pay_on": "2026-11-18",    "exchange_rate": null,    "total": 11600,    "currency": "MXN",    "note": "Fletes de octubre",    "source": "api",    "payout_mandate": null,    "signatures": {      "required": 1,      "given": 1    },    "app_url": "https://fiscalisto.com/k7x2m9/pagos/po_4b1e2c3d4f504a618b729c83d4e5f601",    "transfers": [      {        "id": "pyt_OufpKqnrvx9p5Rt7mZr1XyT5uBcW8sKdLx",        "object": "payout_transfer",        "livemode": false,        "issuer": "iss_OufpKqnrvx9p",        "payout": "pyo_OufpKqnrvx9p4Pq9mZr1XyT5uBcW8sKdLx",        "supplier_tax_id": "AAA010101AAA",        "supplier_name": "Fletes del Norte",        "payee_account": "pya_OufpKqnrvx9p6Ac3mZr1XyT5uBcW8sKdLx",        "clabe": "002010077777777771",        "bank": "BANAMEX",        "amount": 11600,        "currency": "MXN",        "concept": "Pago 12 A120",        "reference": "1200001",        "status": "succeeded",        "tracking_key": "FNTC2026111800012",        "cep_url": "https://www.banxico.org.mx/cep/go?i=90646&s=20210302&d=FNTC2026111800012",        "failure_reason": null,        "invoices": [          {            "uuid": "9F1C2B3A-4D5E-4F60-8A7B-1C2D3E4F5A6B",            "amount": 11600,            "currency": "MXN",            "without_invoice": false,            "description": null          }        ],        "sent_at": "2026-11-18T09:00:04-06:00",        "settled_at": "2026-11-18T09:00:41-06:00"      }    ],    "cancel_reason": null,    "created_by_api": true,    "created_at": "2026-11-17T16:20:00-06:00",    "approved_at": "2026-11-17T18:02:00-06:00",    "sent_at": "2026-11-18T09:00:00-06:00",    "settled_at": "2026-11-18T09:00:41-06:00",    "canceled_at": null  },  "excluded": [    {      "employee": "emp_OufpKqnrvx9p3RxmD1RIDgEHzKYPYnYBlV",      "name": "MARIA OLIVIA MARTINEZ SAGAZ",      "tax_id": "MASO451221PM4",      "amount": 5000.37,      "status": "add",      "reason": "Su CLABE aún no está registrada en Pagos."    }  ]}

Was this page helpful?