# Get the CFDIs behind a cross-check figure

`GET https://api.fiscalisto.com/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.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `month` | query | yes | The month (YYYY-MM), whose tax return is already due. |
| `key` | query | yes | The figure: vat_charged, vat_creditable, vat_withheld, isr_income, isr_withheld_salaries, isr_withheld_suppliers or vat_withheld_suppliers. |
| `issuer` | query |  | The issuer (iss_…). It can be left out if the key or the account has only one. |

## With the TypeScript SDK

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

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

const crossCheckCfdi = await fiscalisto.accounting.crossCheckCfdi({ month: "2026-09", key: "vat_creditable" });
```

## With the Python SDK

```python
from fiscalisto import Fiscalisto

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

cross_check_cfdi = fiscalisto.accounting.cross_check_cfdi({"month": "2026-09", "key": "vat_creditable"})
```

## With the PHP SDK

```php
<?php

use Fiscalisto\Fiscalisto;

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

$crossCheckCfdi = $fiscalisto->accounting->crossCheckCfdi([
    'month' => '2026-09',
    'key' => 'vat_creditable',
]);
```

## With the .NET SDK

```csharp
using Fiscalisto;

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

var crossCheckCfdi = await fiscalisto.Accounting.CrossCheckCfdiAsync(new GetCrossCheckCfdiParams
{
    Month = "2026-09",
    Key = "vat_creditable",
});
```

## 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()

	crossCheckCFDI, err := client.Accounting.CrossCheckCFDI(ctx, &fiscalisto.GetCrossCheckCfdiParams{
		Month: "2026-09",
		Key:   "vat_creditable",
	})
	if err != nil {
		log.Fatal(err)
	}
	fmt.Printf("%+v\n", *crossCheckCFDI)
}
```

## With the Java SDK

```java
import com.fiscalisto.FiscalistoClient;
import com.fiscalisto.model.GetCrossCheckCfdiParams;

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

var crossCheckCfdi = fiscalisto.accounting().crossCheckCfdi(new GetCrossCheckCfdiParams()
        .setMonth("2026-09")
        .setKey("vat_creditable"));
System.out.println(crossCheckCfdi);
```

## Response 200

OK.

A `CrossCheckCfdi` object:

| Field | Type | Always present | Description |
| --- | --- | --- | --- |
| `object` | `"cross_check_cfdi"` | 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. |
| `month` | string | yes | The month (YYYY-MM). |
| `key` | `vat_charged`, `vat_creditable`, `vat_withheld`, `isr_income`, `isr_withheld_salaries`, `isr_withheld_suppliers`, `vat_withheld_suppliers` | yes | 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). |
| `status` | `matches`, `differs`, `not_filed`, `unreadable` | yes | That figure's cross-check, as in GET /v1/accounting/cross_checks: matches, differs, not_filed or unreadable. |
| `declared` | number or null | yes | What was declared, in pesos; null if there is no return or it couldn't be read. |
| `declared_without_cfdi` | number | yes | 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 | yes | What the month's CFDIs say: the sum of cfdi plus adjustment. |
| `difference` | number or null | yes | declared minus declared_without_cfdi minus invoiced; null if declared is null. |
| `operation_number` | string or null | yes | The operation number of the return the figure came from. |
| `cfdi` | array of object | yes | 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. |
| `cfdi[].uuid` | string or null | yes | The CFDI's tax folio (UUID); the PPD invoice's on a payment. |
| `cfdi[].type` | `invoice`, `credit_note`, `payment`, `withholding_certificate` | yes | invoice (income invoice, PUE), credit_note (subtracts) or payment (what was paid in the month on a PPD invoice). |
| `cfdi[].date` | string or null | yes | The CFDI's date, or the payment's (YYYY-MM-DD). |
| `cfdi[].tax_id` | string or null | yes | The counterparty's RFC: the customer on issued ones, the supplier on received ones. |
| `cfdi[].name` | string or null | yes | The counterparty's name, as it comes in the CFDI. |
| `cfdi[].amount` | number | yes | What it contributes to the figure, in pesos; negative on a credit note. |
| `adjustment` | number | yes | 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` | object or null | yes | Which CFDIs would explain the difference; null if it matches. |
| `explanation.difference` | number | yes | The difference. |
| `explanation.exact` | object or null | yes | The CFDIs whose effect adds up to the difference; null if none. |
| `explanation.exact.cfdi` | array of object | yes | The combination's CFDIs. |
| `explanation.exact.cfdi[].uuid` | string or null | yes | The CFDI's tax folio (UUID); the PPD invoice's on a payment. |
| `explanation.exact.cfdi[].date` | string or null | yes | The CFDI's date, or the payment's (YYYY-MM-DD). |
| `explanation.exact.cfdi[].tax_id` | string or null | yes | The counterparty's RFC: the customer on issued ones, the supplier on received ones. |
| `explanation.exact.cfdi[].name` | string or null | yes | The counterparty's name, as it comes in the CFDI. |
| `explanation.exact.cfdi[].amount` | number | yes | What it contributes to the figure, in pesos; negative on a credit note. |
| `explanation.exact.cfdi[].effect` | number | yes | How much invoiced would change. |
| `explanation.exact.cfdi[].reason` | `cancelled`, `ppd_not_collected`, `other_month`, `month_edge`, `credit_note`, `ppd_payment`, `duplicate`, `left_out`, `withholding_certificate` | yes | Why it would explain it. |
| `explanation.exact.cfdi[].in_invoiced` | boolean | yes | true if it is in cfdi. |
| `explanation.exact.remainder` | number | yes | What is left (rounding). |
| `explanation.ambiguous` | boolean | yes | true if several combinations add up to it. |
| `explanation.causes` | array of object | yes | The possible causes, by reason. |
| `explanation.causes[].reason` | `cancelled`, `ppd_not_collected`, `other_month`, `month_edge`, `credit_note`, `ppd_payment`, `duplicate`, `left_out`, `withholding_certificate` | yes | The reason they share. |
| `explanation.causes[].total` | number | yes | The sum of their effect. |
| `explanation.causes[].cfdi` | array of object | yes | Their CFDIs. |
| `explanation.causes[].cfdi[].uuid` | string or null | yes | The CFDI's tax folio (UUID); the PPD invoice's on a payment. |
| `explanation.causes[].cfdi[].date` | string or null | yes | The CFDI's date, or the payment's (YYYY-MM-DD). |
| `explanation.causes[].cfdi[].tax_id` | string or null | yes | The counterparty's RFC: the customer on issued ones, the supplier on received ones. |
| `explanation.causes[].cfdi[].name` | string or null | yes | The counterparty's name, as it comes in the CFDI. |
| `explanation.causes[].cfdi[].amount` | number | yes | What it contributes to the figure, in pesos; negative on a credit note. |
| `explanation.causes[].cfdi[].effect` | number | yes | How much invoiced would change. |
| `explanation.causes[].cfdi[].reason` | `cancelled`, `ppd_not_collected`, `other_month`, `month_edge`, `credit_note`, `ppd_payment`, `duplicate`, `left_out`, `withholding_certificate` | yes | Why it would explain it. |
| `explanation.causes[].cfdi[].in_invoiced` | boolean | yes | true if it is in cfdi. |

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

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

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