# Bank reconciliation

The bank's deposits, with the invoices they paid.

The guide, step by step: https://fiscalisto.com/en/docs/api/conciliacion-bancaria.md

## Endpoints

- [Send deposits](https://fiscalisto.com/en/docs/api/referencia/conciliacion-bancaria/create-bank-transactions.md): `POST /v1/bank_transactions`
- [List deposits](https://fiscalisto.com/en/docs/api/referencia/conciliacion-bancaria/list-bank-transactions.md): `GET /v1/bank_transactions`
- [Get a deposit](https://fiscalisto.com/en/docs/api/referencia/conciliacion-bancaria/get-bank-transaction.md): `GET /v1/bank_transactions/{id}`
- [Reconcile a deposit](https://fiscalisto.com/en/docs/api/referencia/conciliacion-bancaria/match-bank-transaction.md): `POST /v1/bank_transactions/{id}/match`
- [Explain a deposit without an invoice](https://fiscalisto.com/en/docs/api/referencia/conciliacion-bancaria/classify-bank-transaction.md): `POST /v1/bank_transactions/{id}/classify`
- [Undo the reconciliation](https://fiscalisto.com/en/docs/api/referencia/conciliacion-bancaria/reopen-bank-transaction.md): `POST /v1/bank_transactions/{id}/reopen`

## The BankImport object

The deposits that were added.

| Field | Type | Always present | Description |
| --- | --- | --- | --- |
| `object` | `"bank_import"` | 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. |
| `added` | integer | yes | How many deposits were added. (from -9007199254740991 to 9007199254740991) |
| `duplicates` | integer | yes | How many were already there (skipped). (from -9007199254740991 to 9007199254740991) |
| `data` | array of object | yes | The deposits added. |
| `data[].id` | string | yes | Object identifier, with its prefix (iss_, inv_, ret_, cus_, prd_, emp_, bat_, brn_, whs_, stm_, adj_, evt_, whe_). |
| `data[].livemode` | boolean | yes | true in production (fk_live_ keys), false in test mode (fk_test_). Test objects aren't valid before the SAT. |
| `data[].object` | `"bank_transaction"` | yes | What kind of object it is («invoice», «customer»…). |
| `data[].issuer` | string | yes | The issuer. |
| `data[].date` | string | yes | The day of the deposit (YYYY-MM-DD). |
| `data[].amount` | number | yes | What was deposited, in pesos. |
| `data[].description` | string | yes | The bank's concept. |
| `data[].reference` | string or null | yes | The reference or tracking key, or null. |
| `data[].account` | string or null | yes | The last 4 digits of the account, or null. |
| `data[].payer_tax_id` | string or null | yes | The RFC of whoever deposited, if known. |
| `data[].status` | `open`, `matched`, `classified` | yes | open (unreconciled), matched (it paid invoices) or classified (it isn't from an invoice). |
| `data[].classification` | `venta`, `prestamo`, `traspaso`, `devolucion`, `intereses` or null | yes | classified: venta (not yet invoiced), prestamo, traspaso, devolucion or intereses; otherwise null. |
| `data[].note` | string or null | yes | A note when classifying it, or null. |
| `data[].invoices` | array of string | yes | The invoices (inv_…) it paid, if reconciled. |
| `data[].payment` | string or null | yes | The payment complement (inv_…) stamped with it, or null. |
| `data[].suggested_match` | object or null | yes | 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. |
| `data[].suggested_match.invoices` | array of string | yes | The invoices, like the body of POST /v1/invoices, with an optional reference. |
| `data[].suggested_match.amounts` | object | yes | What the deposit would pay of each invoice (by inv_…). |
| `data[].suggested_match.method` | `PPD`, `PUE` | yes | PUE: receivable invoices that become paid when reconciling; PPD: paid with their payment complement (POST /v1/payments). |
| `data[].suggested_match.confidence` | `high`, `medium` | yes | high (the amount and also the RFC, name or folio match) or medium (check it first). |
| `data[].suggested_match.reasons` | array of string | yes | Why it is suggested, in words. |
| `data[].created_at` | string (date-time) or null | yes | When it was sent. |

## The BankTransaction object

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

| Field | Type | Always present | Description |
| --- | --- | --- | --- |
| `id` | string | yes | Object identifier, with its prefix (iss_, inv_, ret_, cus_, prd_, emp_, bat_, brn_, whs_, stm_, adj_, evt_, whe_). |
| `livemode` | boolean | yes | true in production (fk_live_ keys), false in test mode (fk_test_). Test objects aren't valid before the SAT. |
| `object` | `"bank_transaction"` | yes | What kind of object it is («invoice», «customer»…). |
| `issuer` | string | yes | The issuer. |
| `date` | string | yes | The day of the deposit (YYYY-MM-DD). |
| `amount` | number | yes | What was deposited, in pesos. |
| `description` | string | yes | The bank's concept. |
| `reference` | string or null | yes | The reference or tracking key, or null. |
| `account` | string or null | yes | The last 4 digits of the account, or null. |
| `payer_tax_id` | string or null | yes | The RFC of whoever deposited, if known. |
| `status` | `open`, `matched`, `classified` | yes | open (unreconciled), matched (it paid invoices) or classified (it isn't from an invoice). |
| `classification` | `venta`, `prestamo`, `traspaso`, `devolucion`, `intereses` or null | yes | classified: venta (not yet invoiced), prestamo, traspaso, devolucion or intereses; otherwise null. |
| `note` | string or null | yes | A note when classifying it, or null. |
| `invoices` | array of string | yes | The invoices (inv_…) it paid, if reconciled. |
| `payment` | string or null | yes | The payment complement (inv_…) stamped with it, or null. |
| `suggested_match` | object or null | yes | 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. |
| `suggested_match.invoices` | array of string | yes | The invoices, like the body of POST /v1/invoices, with an optional reference. |
| `suggested_match.amounts` | object | yes | What the deposit would pay of each invoice (by inv_…). |
| `suggested_match.method` | `PPD`, `PUE` | yes | PUE: receivable invoices that become paid when reconciling; PPD: paid with their payment complement (POST /v1/payments). |
| `suggested_match.confidence` | `high`, `medium` | yes | high (the amount and also the RFC, name or folio match) or medium (check it first). |
| `suggested_match.reasons` | array of string | yes | Why it is suggested, in words. |
| `created_at` | string (date-time) or null | yes | When it was sent. |

Example:

```json
{
  "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": "open",
  "classification": null,
  "note": null,
  "invoices": [],
  "payment": null,
  "suggested_match": {
    "invoices": [
      "inv_OufpKqnrvx9p6hW1yQbT3mZr8sKdLx0VeN"
    ],
    "amounts": {
      "inv_OufpKqnrvx9p6hW1yQbT3mZr8sKdLx0VeN": 5800
    },
    "method": "PUE",
    "confidence": "high",
    "reasons": [
      "Mismo monto",
      "RFC del cliente en el concepto"
    ]
  },
  "created_at": "2026-10-25T09:00:00-06:00"
}
```
