Skip to content

FISCALISTO / API / REFERENCE

Get the CFDIs behind a cross-check figure · Accounting

Open in ChatGPTOpen in ClaudeOpen in Cursor
GET
/v1/accounting/cross_checks/cfdi

The CFDIs that make up what was invoiced (invoiced) for a month's cross-check figure, with the same calculations as Impuestos: each PUE invoice or credit note in its month and each PPD invoice for what was paid in the month, with what it contributes. The sum of cfdi plus adjustment is invoiced. It's for seeing why a figure differs: with a difference, explanation brings the CFDIs whose combination adds up to it (canceled later, PPD without collection in the month, from neighboring days of another month, credit notes, PPD collections, repeated or undeclared) and the possible causes. Free: it doesn't query SAT.

Authorization

bearerAuth
headerAuthorizationBearer <key>

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

Query parameters

month*string

The month (YYYY-MM), whose tax return is already due.

Pattern^\d{4}-(0[1-9]|1[0-2])$
key*string

The figure: vat_charged, vat_creditable, vat_withheld, isr_income, isr_withheld_salaries, isr_withheld_suppliers or vat_withheld_suppliers.

One of"vat_charged""vat_creditable""vat_withheld""isr_income""isr_withheld_salaries""isr_withheld_suppliers""vat_withheld_suppliers"
issuer?string

The issuer (iss_…). It can be left out if the key or the account has only one.

Response body

OK.

application/json
  1. response

The CFDIs that make up a figure in a month's cross-check (invoiced): each with what it contributes, and the adjustment Impuestos adds on top.

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.

month*string

The month (YYYY-MM).

key*string

The figure: vat_charged (IVA transferred), vat_creditable (creditable IVA), vat_withheld (IVA withheld from it), isr_income (income for ISR), isr_withheld_salaries (ISR withheld on its payroll receipts), isr_withheld_suppliers or vat_withheld_suppliers (ISR or IVA it withheld from suppliers).

One of"vat_charged""vat_creditable""vat_withheld""isr_income""isr_withheld_salaries""isr_withheld_suppliers""vat_withheld_suppliers"
status*string

That figure's cross-check, as in GET /v1/accounting/cross_checks: matches, differs, not_filed or unreadable.

One of"matches""differs""not_filed""unreadable"
declared*|

What was declared, in pesos; null if there is no return or it couldn't be read.

declared_without_cfdi*number

Of declared, what the return itself says didn't come from invoices (additional nominal income in isr_income, 16% IVA above the SAT's preload in vat_charged); 0 if there is none.

invoiced*number

What the month's CFDIs say: the sum of cfdi plus adjustment.

difference*|

declared minus declared_without_cfdi minus invoiced; null if declared is null.

operation_number*|

The operation number of the return the figure came from.

cfdi*array<>

Each CFDI that adds up in the month, from largest to smallest: PUEs and credit notes in their month, PPD invoices for what was paid in the month.

adjustment*number

What Impuestos adds on top of the CFDIs: in vat_creditable, the proportion of shared expenses, the withheld IVA paid over from the previous month and imports; 0 for the rest.

explanation*|

Which CFDIs would explain the difference; null if it matches.

Errors

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

Plus those of any call (key, fields, limits): Errors. They all carry code, message and, when it's about a field, param.

curl -X GET 'https://api.fiscalisto.com/v1/accounting/cross_checks/cfdi?month=2026-09&key=vat_creditable' \  -H 'Authorization: Bearer fk_test_…'
{  "object": "cross_check_cfdi",  "livemode": false,  "issuer": "iss_OufpKqnrvx9p",  "month": "2026-09",  "key": "vat_creditable",  "status": "differs",  "declared": 0,  "declared_without_cfdi": 0,  "invoiced": 152.98,  "difference": -152.98,  "operation_number": "261150269496",  "cfdi": [    {      "uuid": "5E2D6C1A-9B3F-4C7E-8A21-3F6B9D0C4E57",      "type": "invoice",      "date": "2026-09-12",      "tax_id": "CNM980114PI2",      "name": "CADENA COMERCIAL OXXO",      "amount": 96.55    },    {      "uuid": "A1F4C2B9-7D3E-4E8A-9C05-1B2D3E4F5A6B",      "type": "payment",      "date": "2026-09-25",      "tax_id": "TME840315KT6",      "name": "TELEFONOS DE MEXICO",      "amount": 56.43    }  ],  "adjustment": 0,  "explanation": {    "difference": -152.98,    "exact": {      "cfdi": [        {          "uuid": "5E2D6C1A-9B3F-4C7E-8A21-3F6B9D0C4E57",          "date": "2026-09-12",          "tax_id": "CNM980114PI2",          "name": "CADENA COMERCIAL OXXO",          "amount": 96.55,          "effect": -96.55,          "reason": "left_out",          "in_invoiced": true        },        {          "uuid": "A1F4C2B9-7D3E-4E8A-9C05-1B2D3E4F5A6B",          "date": "2026-09-25",          "tax_id": "TME840315KT6",          "name": "TELEFONOS DE MEXICO",          "amount": 56.43,          "effect": -56.43,          "reason": "ppd_payment",          "in_invoiced": true        }      ],      "remainder": 0    },    "ambiguous": false,    "causes": [      {        "reason": "ppd_payment",        "total": -56.43,        "cfdi": [          {            "uuid": "A1F4C2B9-7D3E-4E8A-9C05-1B2D3E4F5A6B",            "date": "2026-09-25",            "tax_id": "TME840315KT6",            "name": "TELEFONOS DE MEXICO",            "amount": 56.43,            "effect": -56.43,            "reason": "ppd_payment",            "in_invoiced": true          }        ]      }    ]  }}

Was this page helpful?