Skip to content

FISCALISTO / API / REFERENCE

Explain a deposit without an invoice · Bank reconciliation

Open in ChatGPTOpen in ClaudeOpen in Cursor
POST
/v1/bank_transactions/{id}/classify

A deposit no invoice explains: venta (not invoiced yet), prestamo, traspaso, devolucion or intereses. SAT can presume an unexplained deposit is income (CFF art. 59 fr. III).

Authorization

bearerAuth
headerAuthorizationBearer <key>

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

Path parameters

id*string

The object's id.

Headers

Idempotency-Key?string

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

Length1 <= length <= 255

Request body

application/json
  1. body
classification*string

venta (a sale not invoiced yet), prestamo (a loan), traspaso (between your own accounts), devolucion (a refund) or intereses (what the bank pays; taxable income).

One of"venta""prestamo""traspaso""devolucion""intereses"
note?string

A note for your team (where it came from, why).

Lengthlength <= 500

Response body

OK.

application/json
  1. response

A deposit into the issuer's account, and the invoices it paid.

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.

date*string

The day of the deposit (YYYY-MM-DD).

amount*number

What was deposited, in pesos.

description*string

The bank's concept.

reference*|

The reference or tracking key, or null.

account*|

The last 4 digits of the account, or null.

payer_tax_id*|

The RFC of whoever deposited, if known.

status*string

open (unreconciled), matched (it paid invoices) or classified (it isn't from an invoice).

One of"open""matched""classified"
classification*|

classified: venta (not yet invoiced), prestamo, traspaso, devolucion or intereses; otherwise null.

note*|

A note when classifying it, or null.

invoices*array<string>

The invoices (inv_…) it paid, if reconciled.

payment*|

The payment complement (inv_…) stamped with it, or null.

suggested_match*|

If it is open, the invoices it seems to pay (by amount, RFC, folio in the concept and date): invoices, what goes to each one (amounts), method, confidence (high or medium) and why (reasons). null if none fits.

created_at*|

When it was sent.

Errors

  • The deposit can't be matched, classified or reopened that way. message_es says why.

  • 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/bank_transactions/btx_OufpKqnrvx9p9Rt4sLm2XyT5uBcW8sKdLx/classify' \  -H 'Authorization: Bearer fk_test_…' \  -H 'Idempotency-Key: pedido-A-1042' \  -H 'Content-Type: application/json' \  -d '{  "classification": "traspaso",  "note": "De la cuenta de ahorro"}'
{  "id": "btx_OufpKqnrvx9p9Rt4sLm2XyT5uBcW8sKdLx",  "object": "bank_transaction",  "livemode": false,  "issuer": "iss_OufpKqnrvx9p",  "date": "2026-10-24",  "amount": 5800,  "description": "SPEI RECIBIDO INMOBILIARIA CVA · ICV060329BY0",  "reference": "F-1024",  "account": "4821",  "payer_tax_id": "ICV060329BY0",  "status": "classified",  "classification": "traspaso",  "note": "De la cuenta de ahorro",  "invoices": [],  "payment": null,  "suggested_match": null,  "created_at": "2026-10-25T09:00:00-06:00"}

Was this page helpful?