Skip to content

FISCALISTO / API / REFERENCE

Prepare a supplier payout · Supplier payments

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

A draft payout with these invoices, checked as in the app: the rules before paying, the limits and each supplier's approved accounts. Those of one supplier go in one transfer. It never goes out on its own: someone on the team opens it at app_url and signs it with their passkey. Only if the empresa allows it in Pagos › Configurar pagos (if not, 403 payouts_api_disabled); what can't be paid answers 400 payout_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, never a new one. The same key with a different request (other invoices, amounts or day) answers 409 idempotency_key_reused, even after more than 24 hours.

Before you call

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

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}$
name?|

The lote's name («Fletes»), to find it in the app among the open lotes. Without one, the app calls it by its day («Lote del jueves 27 nov»).

note?|

A note for whoever reviews and signs it.

exchange_rate?string

In a scheduled pago with invoices in another currency: official (the official exchange rate; if it moved past the Configurar pagos tolerance by the day it goes, it's held until signed again) or fixed (it goes at today's rate whether it moves or not). By default, what Configurar pagos says.

One of"official""fixed"
invoices?array<>

The received invoices to pay (up to 500). Those of one supplier go in a single transfer to its approved account. Send invoices, payments or both.

Itemsitems <= 500
payments?array<>

Payments without an invoice (up to 500 across both arrays): a payroll, an advance, a refund. Those to one RFC go in a single transfer.

Itemsitems <= 500

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

id*string

Object identifier, with its prefix (iss_, inv_, ret_, cus_, prd_, emp_, bat_, brn_, whs_, stm_, adj_, evt_, whe_).

livemode*boolean

true in production (fk_live_ keys), false in test mode (fk_test_). Test objects aren't valid before the SAT.

object*string

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

issuer*string

The issuer (iss_…) that pays.

number*integer

Its number in the empresa (Pago 12), as in the app.

Range-9007199254740991 <= value <= 9007199254740991
status*string

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.

One of"draft""pending_approval""approved""sending""paid""partially_paid""failed""canceled"
name*|

The lote's name («Fletes»), or null: the app calls it by its day.

pay_on*string

The day it goes out (YYYY-MM-DD, Mexico City time).

exchange_rate*|

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.

total*number

The sum of its transfers, in pesos.

currency*string

Always MXN: SPEI transfers are in pesos.

note*|

The note for whoever reviews it, or null.

source*string

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

One of"app""api""assistant""rule""recurring"
payout_mandate*|

The recurring payment (pym_…) that made it, or null.

signatures*

required: how many signatures it requires (null while it is a draft); given: how many people have already signed. The API never signs.

app_url*string

Where someone on the team reviews and signs it, in the app.

transfers*array<>

Its transfers, one per supplier and account.

cancel_reason*|

Why it was canceled, or null.

created_by_api*boolean

true if the API prepared it.

created_at*|

When it was prepared.

approved_at*|

When it got all its signatures, or null.

sent_at*|

When its transfers started going out, or null.

settled_at*|

When it finished (all arrived or were resolved), or null.

canceled_at*|

When it was canceled, or null.

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/payouts' \  -H 'Authorization: Bearer fk_test_…' \  -H 'Idempotency-Key: pedido-A-1042' \  -H 'Content-Type: application/json' \  -d '{  "pay_on": "2026-11-27",  "name": "Fletes",  "note": "Pagos del viernes",  "invoices": [    {      "uuid": "9F1C2B3A-4D5E-4F60-8A7B-1C2D3E4F5A6B"    },    {      "uuid": "5B2E8D41-7C3A-4E19-9F60-2A1B3C4D5E6F",      "amount": 5000,      "reason": "Parcial"    }  ]}'
{  "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}

Was this page helpful?