Skip to content

FISCALISTO / API / REFERENCE

Validate a customer's tax data · Customers

Open in ChatGPTOpen in ClaudeOpen in Cursor
POST
/v1/tax_ids/validate

Before stamping: whether the RFC, name, regime, postal code and use will pass. Without cif_id it checks what can be checked without SAT (format, regime for that type of person, postal code in the catalog, use for the regime, name without «S.A. de C.V.») and SAT's lists. With the idCIF of the constancia it reads SAT's record and compares the name, postal code and regime, as the PAC will. It doesn't use stamps.

Authorization

bearerAuth
headerAuthorizationBearer <key>

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

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
tax_id*string

The customer's RFC.

Length1 <= length <= 20
legal_name?string

The name or razón social you'll put on the invoice.

Lengthlength <= 300
tax_system?string

Their tax regime (c_RegimenFiscal), like 601 or 612.

zip?string

The postal code of their tax address.

use?string

The CFDI use (c_UsoCFDI), like G03.

cif_id?string

The idCIF of their constancia de situación fiscal (11 digits, top left, next to the QR). With it everything is compared with what SAT has.

Response body

OK.

application/json
  1. response

Whether a customer's tax details will pass the SAT.

object*string

What kind of object it is («invoice», «customer»…).

tax_id*string

The RFC checked.

kind*string

company (persona moral, 12 characters), person (persona física, 13) or generic (XAXX010101000, XEXX010101000).

One of"company""person""generic"
valid*boolean

true if there are no errors: with what you sent, the SAT shouldn't reject the invoice over the customer's details.

checked_with_sat*boolean

true if it was compared with the SAT's registry (you sent cif_id and the SAT answered).

errors*array<>

What would make the SAT reject the invoice. Each with the field (param), a code, the explanation and, when possible, the correct value (suggestion).

warnings*array<>

What doesn't prevent stamping but is worth checking: the check digit, uppercase, whether the RFC is on the SAT lists.

sat_record*|

What the SAT has in the constancia (with cif_id): name, postal code and current tax regimes. null without cif_id.

sat_error*|

Whether the SAT didn't answer in time (with cif_id): retry in a few minutes. null if it answered or wasn't checked.

sat_lists*|

Whether the RFC appears on the SAT lists. null with a generic or misspelled RFC.

Errors

  • The account has no live stamps left: to stamp, check RFCs against SAT's lists, look up constancias, request SAT downloads or fetch declarations, the compliance opinion or the mailbox from SAT. Buy a pack in Desarrolladores › Timbres y pagos, or turn on auto-recharge. Never happens in test mode.

  • You reached today's limit of something not paid with stamps. Retry-After says how many seconds until midnight in Mexico City.

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/tax_ids/validate' \  -H 'Authorization: Bearer fk_test_…' \  -H 'Idempotency-Key: pedido-A-1042' \  -H 'Content-Type: application/json' \  -d '{  "tax_id": "ICV060329BY0",  "legal_name": "Inmobiliaria CVA, S.A. de C.V.",  "tax_system": "601",  "zip": "33800",  "use": "G03",  "cif_id": "12345678901"}'
{  "object": "tax_id_validation",  "tax_id": "ICV060329BY0",  "kind": "company",  "valid": false,  "checked_with_sat": true,  "errors": [    {      "param": "legal_name",      "code": "legal_name_capital_regime",      "message": "Sin «S.A. de C.V.»: en CFDI 4.0 el nombre va sin régimen de capital, como en la constancia.",      "suggestion": "INMOBILIARIA CVA"    },    {      "param": "zip",      "code": "zip_mismatch",      "message": "El código postal no es el del domicilio fiscal que tiene el SAT.",      "suggestion": "33826"    }  ],  "warnings": [],  "sat_record": {    "legal_name": "INMOBILIARIA CVA",    "zip": "33826",    "tax_systems": [      "601"    ]  },  "sat_error": null,  "sat_lists": {    "object": "sat_list_check",    "tax_id": "ICV060329BY0",    "name": null,    "listed": false,    "risk": "none",    "verified": true,    "lists": [],    "lists_updated_at": "2026-10-24T00:12:40-06:00",    "lists_unavailable": []  }}

Was this page helpful?