# Verify a CFDI at SAT

`POST https://api.fiscalisto.com/v1/cfdi_verifications`

Whether any CFDI (yours, a supplier's or a customer's) exists at SAT and is valid or canceled, whether it can be canceled, and whether its issuer and recipient are on SAT's lists. Send its XML, the text of its QR, or the UUID with both RFCs and the total. It queries SAT's public service, without an e.firma. It doesn't use stamps. In test mode it also queries the real SAT: test CFDIs aren't there and answer not_found.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `Idempotency-Key` | header |  | 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). |

## Body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `xml` | string |  | The CFDI's XML, as text. The UUID, both RFCs and the total are read from it. Up to 4 million characters. (up to 4000000 characters) |
| `qr` | string |  | The text of the PDF's QR (https://verificacfdi.facturaelectronica.sat.gob.mx/default.aspx?id=…&re=…&rr=…&tt=…&fe=…), if you don't have the XML. (up to 500 characters) |
| `uuid` | string |  | The folio fiscal, without XML or QR. It goes with issuer_tax_id, receiver_tax_id and total. (up to 40 characters) |
| `issuer_tax_id` | string |  | The issuer's RFC, without XML or QR. (up to 13 characters) |
| `receiver_tax_id` | string |  | The recipient's RFC, without XML or QR. (up to 13 characters) |
| `total` | number |  | The CFDI's total, without XML or QR. SAT compares it as a number. (from 0 to 1000000000000000) |

Example:

```json
{
  "uuid": "5FB2822E-396D-4725-8521-CDC4BDD20CCF",
  "issuer_tax_id": "EKU9003173C9",
  "receiver_tax_id": "XIA190128J61",
  "total": 1160
}
```

## With the TypeScript SDK

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

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

const cfdiVerification = await fiscalisto.cfdiVerifications.create({
  uuid: "5FB2822E-396D-4725-8521-CDC4BDD20CCF",
  issuer_tax_id: "EKU9003173C9",
  receiver_tax_id: "XIA190128J61",
  total: 1160,
}, { idempotencyKey: "pedido-A-1042" });
```

## With the Python SDK

```python
from fiscalisto import Fiscalisto

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

cfdi_verification = fiscalisto.cfdi_verifications.create({
    "uuid": "5FB2822E-396D-4725-8521-CDC4BDD20CCF",
    "issuer_tax_id": "EKU9003173C9",
    "receiver_tax_id": "XIA190128J61",
    "total": 1160,
}, idempotency_key="pedido-A-1042")
```

## With the PHP SDK

```php
<?php

use Fiscalisto\Fiscalisto;

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

$cfdiVerification = $fiscalisto->cfdiVerifications->create([
    'uuid' => '5FB2822E-396D-4725-8521-CDC4BDD20CCF',
    'issuer_tax_id' => 'EKU9003173C9',
    'receiver_tax_id' => 'XIA190128J61',
    'total' => 1160,
], ['idempotency_key' => 'pedido-A-1042']);
```

## With the .NET SDK

```csharp
using Fiscalisto;

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

var cfdiVerification = await fiscalisto.CfdiVerifications.CreateAsync(new VerifyCfdiParams
{
    Uuid = "5FB2822E-396D-4725-8521-CDC4BDD20CCF",
    IssuerTaxId = "EKU9003173C9",
    ReceiverTaxId = "XIA190128J61",
    Total = 1160,
}, new RequestOptions { IdempotencyKey = "pedido-A-1042" });
```

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

	cfdiVerification, err := client.CfdiVerifications.Create(ctx, &fiscalisto.VerifyCfdiParams{
		UUID:          fiscalisto.String("5FB2822E-396D-4725-8521-CDC4BDD20CCF"),
		IssuerTaxID:   fiscalisto.String("EKU9003173C9"),
		ReceiverTaxID: fiscalisto.String("XIA190128J61"),
		Total:         fiscalisto.Float64(1160),
	}, fiscalisto.WithIdempotencyKey("pedido-A-1042"))
	if err != nil {
		log.Fatal(err)
	}
	fmt.Printf("%+v\n", *cfdiVerification)
}
```

## With the Java SDK

```java
import com.fiscalisto.FiscalistoClient;
import com.fiscalisto.RequestOptions;
import com.fiscalisto.model.VerifyCfdiParams;

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

var cfdiVerification = fiscalisto.cfdiVerifications().create(new VerifyCfdiParams()
        .setUuid("5FB2822E-396D-4725-8521-CDC4BDD20CCF")
        .setIssuerTaxId("EKU9003173C9")
        .setReceiverTaxId("XIA190128J61")
        .setTotal(1160), RequestOptions.idempotencyKey("pedido-A-1042"));
System.out.println(cfdiVerification);
```

## Response 200

OK.

A `CfdiVerification` object:

| Field | Type | Always present | Description |
| --- | --- | --- | --- |
| `object` | `"cfdi_verification"` | 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. |
| `uuid` | string | yes | Tax folio the SAT assigns (UUID of the Timbre Fiscal Digital), in uppercase. |
| `issuer_tax_id` | string | yes | The issuer RFC that was checked. |
| `receiver_tax_id` | string | yes | The recipient RFC that was checked. |
| `total` | number | yes | Total in the receipt's currency (Total). |
| `source` | `xml`, `qr`, `fields` | yes | Where the UUID, the RFCs and the total were read from: xml, qr or fields. |
| `sat_status` | `active`, `canceled`, `not_found`, `data_mismatch` | yes | What the SAT says: active (valid), canceled, not_found (it doesn't have it: it wasn't stamped, was stamped minutes ago or is a test one) or data_mismatch (the UUID exists but the RFCs or the total don't match). |
| `cancellable` | `without_acceptance`, `with_acceptance`, `not_cancellable` or null | yes | If valid, how it is canceled: without_acceptance (without the recipient accepting), with_acceptance (the recipient has 3 business days to accept) or not_cancellable (for example, it has valid related documents). null if it isn't valid or the SAT didn't say. |
| `cancellation_status` | `in_process`, `rejected`, `deadline_passed`, `accepted`, `without_acceptance` or null | yes | A cancellation in progress or finished: in_process (waiting for the recipient), rejected (the recipient rejected it), deadline_passed (the deadline passed and it was canceled), accepted or without_acceptance (canceled with or without acceptance). null if nobody requested one. |
| `issuer_efos` | boolean or null | yes | true if the SAT says the issuer is on the 69-B list as definitive (EFOS); false if not; null if it didn't say. |
| `sat` | object | yes | The SAT's response as is (CodigoEstatus, Estado, EsCancelable, EstatusCancelacion, ValidacionEFOS), in case you need it exactly as the SAT gives it. |
| `sat.code` | string | yes | Withholding key (CveRetenc), c_CveRetenc: 01 professional services, 05 leasing, 14 dividends, 16 interest, 18 payments abroad… Keys 06 and 14 to 24 carry their complement, as SAT's catalog asks (share_sale with 06 and 19, dividends with 14, distributable_remainder with 15, interest, trust_lease, foreign_payment, prize, trust, retirement_plan, mortgage_interest, financial_derivatives); 01, 02, 04 and 05 carry foreign_payment when the recipient is foreign; 26 (technology platforms) carries platform, and its totals and taxes are calculated from the operations. 27 and 28 can't be issued here. |
| `sat.state` | string | yes | State where they work (ClaveEntFed): JAL, CMX, NLE… |
| `sat.cancellable` | string or null | yes | EsCancelable, exactly as the SAT said it. |
| `sat.cancellation_status` | string or null | yes | EstatusCancelacion, exactly as the SAT said it. |
| `sat.efos_validation` | string or null | yes | ValidacionEFOS: 200 if the issuer isn't an EFOS, 100 if it is. |
| `xml` | object or null | yes | What else the XML carries (version, type, dates, names, currency), if you sent xml; null otherwise. |
| `xml.version` | string or null | yes | The CFDI version (4.0 or 3.3). |
| `xml.type` | string or null | yes | Receipt type (TipoDeComprobante): I income, E expense, P payment, T transfer, N payroll. |
| `xml.issued_at` | string or null | yes | The issue date (Fecha), as it comes in the XML. |
| `xml.stamped_at` | string or null | yes | The stamp date (FechaTimbrado), as it comes in the XML. |
| `xml.issuer_name` | string or null | yes | The issuer's name in the XML. |
| `xml.receiver_name` | string or null | yes | The recipient's name in the XML. |
| `xml.currency` | string or null | yes | Currency, an ISO 4217 key from c_Moneda (MXN, USD, EUR…). MXN by default. |
| `seals` | object or null | yes | The XML's seals, if you sent the xml of a CFDI 4.0: whether the receipt wasn't modified after sealing and whether the stamp comes from the SAT. null with qr or fields, or with a CFDI 3.3. |
| `seals.valid` | boolean | yes | true if there is no problem at all: the Sello matches the data and the issuer's certificate (a CSD for their RFC, valid on the issue date) and the stamp belongs to this receipt and to the SAT. |
| `seals.issuer_seal_valid` | boolean | yes | Whether the issuer's Sello signs this XML's original string with the key of the certificate it carries. false if someone changed an amount, a name or a date after sealing. |
| `seals.certificate` | object or null | yes | The issuer's certificate the XML carries (Certificado): number, RFC, name, whether it is a CSD or e.firma and its validity. null if it couldn't be read. |
| `seals.certificate.number` | string | yes | The certificate number (20 digits), as the SAT gives it. |
| `seals.certificate.tax_id` | string or null | yes | The RFC that owns the certificate. |
| `seals.certificate.name` | string or null | yes | The name or razón social on the certificate. |
| `seals.certificate.kind` | `csd`, `fiel` | yes | csd if it is a digital seal; fiel if it is an e.firma (it shouldn't be used to seal). |
| `seals.certificate.valid_from` | string | yes | From when the certificate is valid. |
| `seals.certificate.valid_to` | string | yes | Until when the certificate is valid. |
| `seals.stamp` | object or null | yes | The stamp (TimbreFiscalDigital): whether its SelloSAT comes from the SAT, with which SAT certificate and which PAC stamped it. null if the XML isn't stamped. |
| `seals.stamp.sat_seal_valid` | boolean or null | yes | Whether the SelloSAT signs the stamp with the SAT's certificate (NoCertificadoSAT). null if the SAT's certificate couldn't be fetched at that moment. |
| `seals.stamp.sat_certificate_number` | string | yes | The number of the SAT certificate that sealed the stamp. |
| `seals.stamp.pac_tax_id` | string or null | yes | The RFC of the PAC that stamped it (RfcProvCertif). |
| `seals.problems` | array of object | yes | Each problem, with its code and what it means. Empty if valid is true. |
| `seals.problems[].code` | `malformed_xml`, `missing_seal`, `certificate_unreadable`, `certificate_number_mismatch`, `certificate_not_issuer`, `certificate_not_csd`, `certificate_not_valid_at_issue`, `seal_mismatch`, `stamp_not_for_this_seal`, `sat_seal_mismatch` | yes | Withholding key (CveRetenc), c_CveRetenc: 01 professional services, 05 leasing, 14 dividends, 16 interest, 18 payments abroad… Keys 06 and 14 to 24 carry their complement, as SAT's catalog asks (share_sale with 06 and 19, dividends with 14, distributable_remainder with 15, interest, trust_lease, foreign_payment, prize, trust, retirement_plan, mortgage_interest, financial_derivatives); 01, 02, 04 and 05 carry foreign_payment when the recipient is foreign; 26 (technology platforms) carries platform, and its totals and taxes are calculated from the operations. 27 and 28 can't be issued here. |
| `seals.problems[].message` | string | yes | What happened and how to fix it, for a person. |
| `seals.original_string` | string or null | yes | The receipt's original string, as the SAT builds it with its XSLTs. null if the XML couldn't be read. |
| `issuer_sat_lists` | object or null | yes | The issuer on the SAT lists (69-B, 69-B Bis and art. 69), like GET /v1/sat_lists/{tax_id}, at no cost. Only when the SAT has the receipt (active or canceled); null otherwise, or if the lists couldn't be read. |
| `issuer_sat_lists.object` | `"sat_list_check"` | yes | What kind of object it is («invoice», «customer»…). |
| `issuer_sat_lists.tax_id` | string | yes | The RFC checked. |
| `issuer_sat_lists.name` | string or null | yes | The name it appears with on the SAT lists (null if it doesn't appear). |
| `issuer_sat_lists.listed` | boolean | yes | true if the RFC appears on any list, even if it has rebutted. |
| `issuer_sat_lists.risk` | `high`, `medium`, `none`, `unknown` | yes | high: 69-B or 69-B Bis as presumed or definitive (the SAT says it simulates operations; its invoices can't be deducted). medium: an art. 69 list (not located, firm or enforceable debts, canceled, sentences, CSD without effect). none: it doesn't appear on any, with all lists up to date, or it already rebutted or has a favorable ruling. unknown: it doesn't appear, but some list couldn't be updated (see lists_unavailable): don't treat it as clean. |
| `issuer_sat_lists.verified` | boolean | yes | true if every list was read successfully in the last two days. With false, not appearing doesn't mean it is clean. |
| `issuer_sat_lists.lists` | array of object | yes | Each list it appears on; empty if it doesn't appear on any. |
| `issuer_sat_lists.lists[].list` | `69`, `69b`, `69b_bis` | yes | 69b: art. 69-B (simulated operations). 69b_bis: art. 69-B Bis (tax losses). 69: art. 69 (not located, debts, canceled). |
| `issuer_sat_lists.lists[].source` | string | yes | The SAT file it comes from (code). |
| `issuer_sat_lists.lists[].source_name` | string | yes | The SAT file's name, for display. |
| `issuer_sat_lists.lists[].situation` | string or null | yes | Its status according to the SAT: Presunto, Definitivo, Desvirtuado, Sentencia favorable; in art. 69, the case (null if the file doesn't include it). |
| `issuer_sat_lists.lists[].published_on` | string or null | yes | Publication date at the SAT or in the DOF (null if it isn't included). |
| `issuer_sat_lists.lists[].details` | object or null | yes | Everything else the SAT publishes for that RFC (official letters, dates, amounts), as is; null if nothing. |
| `issuer_sat_lists.lists_updated_at` | string (date-time) or null | yes | When the lists were last updated (every day at 00:00 Mexico City time). |
| `issuer_sat_lists.lists_unavailable` | array of string | yes | The lists that couldn't be confirmed (their last update failed, is missing or is more than two days old). Empty if all are up to date. |
| `receiver_sat_lists` | object or null | yes | The recipient on the SAT lists, same as the issuer. |
| `receiver_sat_lists.object` | `"sat_list_check"` | yes | What kind of object it is («invoice», «customer»…). |
| `receiver_sat_lists.tax_id` | string | yes | The RFC checked. |
| `receiver_sat_lists.name` | string or null | yes | The name it appears with on the SAT lists (null if it doesn't appear). |
| `receiver_sat_lists.listed` | boolean | yes | true if the RFC appears on any list, even if it has rebutted. |
| `receiver_sat_lists.risk` | `high`, `medium`, `none`, `unknown` | yes | high: 69-B or 69-B Bis as presumed or definitive (the SAT says it simulates operations; its invoices can't be deducted). medium: an art. 69 list (not located, firm or enforceable debts, canceled, sentences, CSD without effect). none: it doesn't appear on any, with all lists up to date, or it already rebutted or has a favorable ruling. unknown: it doesn't appear, but some list couldn't be updated (see lists_unavailable): don't treat it as clean. |
| `receiver_sat_lists.verified` | boolean | yes | true if every list was read successfully in the last two days. With false, not appearing doesn't mean it is clean. |
| `receiver_sat_lists.lists` | array of object | yes | Each list it appears on; empty if it doesn't appear on any. |
| `receiver_sat_lists.lists[].list` | `69`, `69b`, `69b_bis` | yes | 69b: art. 69-B (simulated operations). 69b_bis: art. 69-B Bis (tax losses). 69: art. 69 (not located, debts, canceled). |
| `receiver_sat_lists.lists[].source` | string | yes | The SAT file it comes from (code). |
| `receiver_sat_lists.lists[].source_name` | string | yes | The SAT file's name, for display. |
| `receiver_sat_lists.lists[].situation` | string or null | yes | Its status according to the SAT: Presunto, Definitivo, Desvirtuado, Sentencia favorable; in art. 69, the case (null if the file doesn't include it). |
| `receiver_sat_lists.lists[].published_on` | string or null | yes | Publication date at the SAT or in the DOF (null if it isn't included). |
| `receiver_sat_lists.lists[].details` | object or null | yes | Everything else the SAT publishes for that RFC (official letters, dates, amounts), as is; null if nothing. |
| `receiver_sat_lists.lists_updated_at` | string (date-time) or null | yes | When the lists were last updated (every day at 00:00 Mexico City time). |
| `receiver_sat_lists.lists_unavailable` | array of string | yes | The lists that couldn't be confirmed (their last update failed, is missing or is more than two days old). Empty if all are up to date. |
| `checked_at` | string (date-time) | yes | When the SAT was asked. |

```json
{
  "object": "cfdi_verification",
  "livemode": true,
  "uuid": "5FB2822E-396D-4725-8521-CDC4BDD20CCF",
  "issuer_tax_id": "EKU9003173C9",
  "receiver_tax_id": "XIA190128J61",
  "total": 1160,
  "source": "xml",
  "sat_status": "active",
  "cancellable": "with_acceptance",
  "cancellation_status": null,
  "issuer_efos": false,
  "sat": {
    "code": "S - Comprobante obtenido satisfactoriamente.",
    "state": "Vigente",
    "cancellable": "Cancelable con aceptación",
    "cancellation_status": null,
    "efos_validation": "200"
  },
  "xml": {
    "version": "4.0",
    "type": "I",
    "issued_at": "2026-11-14T10:20:31",
    "stamped_at": "2026-11-14T10:20:35",
    "issuer_name": "ESCUELA KEMPER URGATE",
    "receiver_name": "XENON INDUSTRIAL ARTICLES",
    "currency": "MXN"
  },
  "seals": {
    "valid": true,
    "issuer_seal_valid": true,
    "certificate": {
      "number": "30001000000500003416",
      "tax_id": "EKU9003173C9",
      "name": "ESCUELA KEMPER URGATE",
      "kind": "csd",
      "valid_from": "2023-05-18T11:43:51.000Z",
      "valid_to": "2027-05-18T11:43:51.000Z"
    },
    "stamp": {
      "sat_seal_valid": true,
      "sat_certificate_number": "30001000000500003456",
      "pac_tax_id": "SPR190613I52"
    },
    "problems": [],
    "original_string": "||4.0|A|77|2026-11-14T10:20:31|03|30001000000500003416|1000.00|MXN|1160.00|I|01|PUE|42501|EKU9003173C9|ESCUELA KEMPER URGATE|601|XIA190128J61|XENON INDUSTRIAL ARTICLES|76343|601|G03|80101500|1|E48|Consultoría|1000.00|1000.00|02|1000.00|002|Tasa|0.160000|160.00|1000.00|002|Tasa|0.160000|160.00|160.00||"
  },
  "issuer_sat_lists": {
    "object": "sat_list_check",
    "tax_id": "EKU9003173C9",
    "name": null,
    "listed": false,
    "risk": "none",
    "verified": true,
    "lists": [],
    "lists_updated_at": "2026-11-14T00:12:40-06:00",
    "lists_unavailable": []
  },
  "receiver_sat_lists": {
    "object": "sat_list_check",
    "tax_id": "XIA190128J61",
    "name": null,
    "listed": false,
    "risk": "none",
    "verified": true,
    "lists": [],
    "lists_updated_at": "2026-11-14T00:12:40-06:00",
    "lists_unavailable": []
  },
  "checked_at": "2026-11-14T10:25:02-06:00"
}
```

## Errors

- `daily_limit` (429): You reached today's limit of something not paid with stamps. Retry-After says how many seconds until midnight in Mexico City.
- `sat_unavailable` (502): SAT didn't answer or didn't let the issuer's e.firma in. No stamp was used. Retry in 10 minutes.

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