# Pay the nómina by transfer

`POST https://api.fiscalisto.com/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`](https://fiscalisto.com/en/docs/api/referencia/emisores/upload-certificate). 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](https://fiscalisto.com/en/docs/api/idempotencia).

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `Idempotency-Key` | header | yes | 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. |

## Body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `issuer` | string |  | The issuer (iss_…). By default, your only issuer. |
| `payment_date` | string | yes | The payment date (FechaPago) of the stamped payroll receipts it pays (YYYY-MM-DD). |
| `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. |

Example:

```json
{
  "payment_date": "2026-11-15"
}
```

## With the TypeScript SDK

```ts
import { Fiscalisto } from "fiscalisto";

// La llave viene de FISCALISTO_API_KEY.
const fiscalisto = new Fiscalisto();

const payrollPayout = await fiscalisto.payrollPayouts.create({ payment_date: "2026-11-15" }, { idempotencyKey: "pedido-A-1042" });
```

## With the Python SDK

```python
from fiscalisto import Fiscalisto

# La llave viene de FISCALISTO_API_KEY.
fiscalisto = Fiscalisto()

payroll_payout = fiscalisto.payroll_payouts.create({"payment_date": "2026-11-15"}, idempotency_key="pedido-A-1042")
```

## With the PHP SDK

```php
<?php

use Fiscalisto\Fiscalisto;

// La llave viene de FISCALISTO_API_KEY.
$fiscalisto = new Fiscalisto();

$payrollPayout = $fiscalisto->payrollPayouts->create(['payment_date' => '2026-11-15'], ['idempotency_key' => 'pedido-A-1042']);
```

## With the .NET SDK

```csharp
using Fiscalisto;

// La llave viene de FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

var payrollPayout = await fiscalisto.PayrollPayouts.CreateAsync(new CreatePayrollPayoutParams { PaymentDate = "2026-11-15" }, new RequestOptions { IdempotencyKey = "pedido-A-1042" });
```

## With the Go SDK

```go
package main

import (
	"context"
	"fmt"
	"log"

	fiscalisto "fiscalisto.com/go"
)

func main() {
	// La llave viene de FISCALISTO_API_KEY.
	client, err := fiscalisto.NewClient("")
	if err != nil {
		log.Fatal(err)
	}
	ctx := context.Background()

	payrollPayout, err := client.PayrollPayouts.Create(ctx, &fiscalisto.CreatePayrollPayoutParams{
		PaymentDate: "2026-11-15",
	}, fiscalisto.WithIdempotencyKey("pedido-A-1042"))
	if err != nil {
		log.Fatal(err)
	}
	fmt.Printf("%+v\n", *payrollPayout)
}
```

## With the Java SDK

```java
import com.fiscalisto.FiscalistoClient;
import com.fiscalisto.RequestOptions;
import com.fiscalisto.model.CreatePayrollPayoutParams;

// La llave viene de FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

var payrollPayout = fiscalisto.payrollPayouts().create(new CreatePayrollPayoutParams().setPaymentDate("2026-11-15"), RequestOptions.idempotencyKey("pedido-A-1042"));
System.out.println(payrollPayout);
```

## Response 201

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

A `PayrollPayout` object:

| Field | Type | Always present | Description |
| --- | --- | --- | --- |
| `object` | `"payroll_payout"` | yes | What kind of object it is («invoice», «customer»…). |
| `livemode` | boolean | yes | true in production (fk_live_ keys), false in test mode (fk_test_). Test objects aren't valid before the SAT. |
| `issuer` | string | yes | The issuer (iss_…) that pays. |
| `payment_date` | string | yes | The payment date of the receipts it pays. |
| `payout` | object | yes | A supplier payout with Fintoc: one or more SPEI transfers that go out together on their day, after the signatures the empresa requires. The API prepares it; it is only signed in the app. |
| `payout.id` | string | yes | Object identifier, with its prefix (iss_, inv_, ret_, cus_, prd_, emp_, bat_, brn_, whs_, stm_, adj_, evt_, whe_). |
| `payout.livemode` | boolean | yes | true in production (fk_live_ keys), false in test mode (fk_test_). Test objects aren't valid before the SAT. |
| `payout.object` | `"payout"` | yes | What kind of object it is («invoice», «customer»…). |
| `payout.issuer` | string | yes | The issuer (iss_…) that pays. |
| `payout.number` | integer | yes | Its number in the empresa (Pago 12), as in the app. (from -9007199254740991 to 9007199254740991) |
| `payout.status` | `draft`, `pending_approval`, `approved`, `sending`, `paid`, `partially_paid`, `failed`, `canceled` | yes | draft (someone still has to sign it in the app), pending_approval (signatures missing), approved (signed: it goes out on its day), sending, paid (all arrived), partially_paid (some arrived), failed (none arrived) or canceled. |
| `payout.name` | string or null | yes | The lote's name («Fletes»), or null: the app calls it by its day. |
| `payout.pay_on` | string | yes | The day it goes out (YYYY-MM-DD, Mexico City time). |
| `payout.exchange_rate` | `official`, `fixed` or null | yes | In a scheduled pago with invoices in another currency, how it takes the exchange rate: official (the official one; if it moved past the Configurar pagos tolerance by the day it goes, it's held until signed again) or fixed (it goes at the rate it was signed with). null in pesos or if it goes today. |
| `payout.total` | number | yes | The sum of its transfers, in pesos. |
| `payout.currency` | `"MXN"` | yes | Always MXN: SPEI transfers are in pesos. |
| `payout.note` | string or null | yes | The note for whoever reviews it, or null. |
| `payout.source` | `app`, `api`, `assistant`, `rule`, `recurring` | yes | Where it came from: app, api, assistant (an assistant such as ChatGPT or Claude), rule (a rule that pays on its own) or recurring (a recurring payment). |
| `payout.payout_mandate` | string or null | yes | The recurring payment (pym_…) that made it, or null. |
| `payout.signatures` | object | yes | required: how many signatures it requires (null while it is a draft); given: how many people have already signed. The API never signs. |
| `payout.signatures.required` | integer or null | yes | How many signatures it requires, or null while it is a draft. |
| `payout.signatures.given` | integer | yes | How many people have already signed it in the app. (from -9007199254740991 to 9007199254740991) |
| `payout.app_url` | string | yes | Where someone on the team reviews and signs it, in the app. |
| `payout.transfers` | array of object | yes | Its transfers, one per supplier and account. |
| `payout.transfers[].id` | string | yes | Object identifier, with its prefix (iss_, inv_, ret_, cus_, prd_, emp_, bat_, brn_, whs_, stm_, adj_, evt_, whe_). |
| `payout.transfers[].livemode` | boolean | yes | true in production (fk_live_ keys), false in test mode (fk_test_). Test objects aren't valid before the SAT. |
| `payout.transfers[].object` | `"payout_transfer"` | yes | What kind of object it is («invoice», «customer»…). |
| `payout.transfers[].issuer` | string | yes | The issuer (iss_…) that pays. |
| `payout.transfers[].payout` | string | yes | The payout (pyo_…) it belongs to. |
| `payout.transfers[].supplier_tax_id` | string | yes | The supplier's RFC. |
| `payout.transfers[].supplier_name` | string or null | yes | The supplier's name, or null. |
| `payout.transfers[].payee_account` | string | yes | The supplier account (pya_…) it goes to. |
| `payout.transfers[].clabe` | string | yes | The 18-digit CLABE it goes to. |
| `payout.transfers[].bank` | string or null | yes | The CLABE's bank, or null. |
| `payout.transfers[].amount` | number | yes | How much, in pesos. |
| `payout.transfers[].currency` | `"MXN"` | yes | Always MXN. |
| `payout.transfers[].concept` | string | yes | The concept the supplier sees at their bank. |
| `payout.transfers[].reference` | string or null | yes | The SPEI numeric reference, or null. |
| `payout.transfers[].status` | `queued`, `sending`, `in_transit`, `unknown`, `succeeded`, `failed`, `returning`, `returned`, `not_sent`, `removed` | yes | queued (about to go out), sending, in_transit, unknown (to be confirmed with the bank), succeeded (arrived), failed (didn't go out), returning (the bank is returning it), returned, not_sent or removed (taken out of the payout). |
| `payout.transfers[].tracking_key` | string or null | yes | The SPEI tracking key, or null before it goes out. |
| `payout.transfers[].cep_url` | string or null | yes | The link to Banxico's CEP, or null until it arrives. |
| `payout.transfers[].failure_reason` | string or null | yes | Why it didn't go out or why it was returned, or null. |
| `payout.transfers[].invoices` | array of object | yes | What it pays: each invoice (uuid) with its amount in its currency, or a payment without an invoice (without_invoice, with description). |
| `payout.transfers[].invoices[].uuid` | string or null | yes | Tax folio the SAT assigns (UUID of the Timbre Fiscal Digital), in uppercase. |
| `payout.transfers[].invoices[].amount` | number | yes | Amount. |
| `payout.transfers[].invoices[].currency` | string | yes | Currency, an ISO 4217 key from c_Moneda (MXN, USD, EUR…). MXN by default. |
| `payout.transfers[].invoices[].without_invoice` | boolean | yes | true if it is a payment without an invoice (advance, deposit…). |
| `payout.transfers[].invoices[].description` | string or null | yes | Description. |
| `payout.transfers[].sent_at` | string (date-time) or null | yes | When it went out, or null. |
| `payout.transfers[].settled_at` | string (date-time) or null | yes | When it arrived or was resolved, or null. |
| `payout.cancel_reason` | string or null | yes | Why it was canceled, or null. |
| `payout.created_by_api` | boolean | yes | true if the API prepared it. |
| `payout.created_at` | string (date-time) or null | yes | When it was prepared. |
| `payout.approved_at` | string (date-time) or null | yes | When it got all its signatures, or null. |
| `payout.sent_at` | string (date-time) or null | yes | When its transfers started going out, or null. |
| `payout.settled_at` | string (date-time) or null | yes | When it finished (all arrived or were resolved), or null. |
| `payout.canceled_at` | string (date-time) or null | yes | When it was canceled, or null. |
| `excluded` | array of object | yes | 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. |
| `excluded[].employee` | string or null | yes | The employee (emp_…); null if another system stamped the receipt and there is no employee with that RFC. |
| `excluded[].name` | string | yes | Name. |
| `excluded[].tax_id` | string | yes | RFC (Rfc), 12 characters for a persona moral and 13 for a persona física. |
| `excluded[].amount` | number | yes | Their net: the sum of their receipts with that payment date, less vales. |
| `excluded[].status` | `ready`, `add`, `waiting`, `blocked`, `no_clabe`, `zero`, `in_payout` | yes | add: their CLABE isn't registered in Pagos yet (it's registered in the app); waiting: their account is being verified or in its wait; blocked: their account has a problem; no_clabe: no CLABE in their record; zero: their net is zero; in_payout: already in another payout of this nómina; ready: it didn't fit (a payout holds up to 500). |
| `excluded[].reason` | string | yes | Why it isn't in this payout. |

```json
{
  "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."
    }
  ]
}
```

## Errors

- `feature_not_in_plan` (403): 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.
- `idempotency_key_missing` (400): Stamping requires the Idempotency-Key header (8 to 255 characters, a new one per document), so a retry never stamps twice.
- `issuer_archived` (400): The issuer is archived and no longer stamps. Its documents can still be read and canceled.
- `issuer_linked_empresa` (403): 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.
- `issuer_missing` (404): There is no such issuer in the account (or it belongs to the other mode).
- `issuer_not_allowed` (403): This key can't use that issuer.
- `issuer_required` (400): The account has several issuers and the request doesn't say which: send `issuer` (iss_…).
- `livemode_mismatch` (400): The object belongs to the other mode: an fk_test_ key only sees test data and an fk_live_ key only live data.
- `payout_invalid` (400): 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.
- `payouts_api_disabled` (403): The empresa doesn't let the API prepare pagos: turn it on in the app, under Pagos › Configurar pagos.
- `payouts_not_enabled` (400): The issuer's RFC doesn't pay suppliers with Fiscalisto: connect Fintoc in the app, under Pagos.
- `resource_missing` (404): There's no object with that id (or it belongs to another issuer or the other mode).
- `team_permission_denied` (403): 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.

Plus those of any call (key, fields, limits): https://fiscalisto.com/en/docs/api/errores.md.
