Skip to content

FISCALISTO / API / REFERENCE

Customers

Open in ChatGPTOpen in ClaudeOpen in Cursor

The object Customer

Fields
  1. Customer

A customer in an issuer's catalog.

id*string

Object identifier, with its prefix (iss_, inv_, ret_, cus_, prd_, emp_, bat_, brn_, whs_, stm_, adj_, evt_, whe_).

livemode*boolean

true in production (fk_live_ keys), false in test mode (fk_test_). Test objects aren't valid before the SAT.

object*string

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

issuer*string

The issuer (iss_…).

tax_id*string

RFC (Rfc), 12 characters for a persona moral and 13 for a persona física.

legal_name*string

Name or razón social exactly as on the constancia de situación fiscal, without the capital regime (without «S.A. de C.V.»).

tax_system*string

Tax regime (RegimenFiscal), a c_RegimenFiscal key: 601, 612, 626…

zip*string

Postal code of the tax address, 5 digits, as on the constancia de situación fiscal. An issuer's is the place of issue (LugarExpedicion) of its CFDIs.

email*|

The customer's email (several separated by commas), where their invoices go.

use*|

CFDI use (UsoCFDI), a c_UsoCFDI key. G03 by default, or S01 with regime 616.

foreign*|

If they're foreign: their country of residence (ResidenciaFiscal, c_Pais) and their tax registration number (NumRegIdTrib), with the generic RFC XEXX010101000.

ieps_taxpayer*boolean

true if the customer is an IEPS taxpayer: IEPS is broken out instead of added to the price, except that of alcohol and tobacco (rates 0.5, 1.6 and 0.304), which always goes in the price (LIEPS art. 19 fr. II).

credit_days*|

Credit days given, from 0 to 365, or null to not change the customer's.

quote_valid_days*|

Days a new quote is valid (1 to 366). On a customer or group, null uses its group's or the company's (Ajustes › Horarios).

payment_terms*|

Payment terms (CondicionesDePago), up to 1,000 characters without «|»: «Crédito a 30 días», «50 % anticipo». They go in the XML and the PDF; income and expense receipts only. They don't change when it is due (due_date uses the customer's credit days).

group*|

Their customer group (cgr_…), or null if they aren't in one.

price_list*|

Price list (prl_…). On a customer, their own, which wins over their group's; null to use their group's or everyone's.

discount_percent*|

Discount percentage on the price, from 0 to 100; in the CFDI it goes as each line item's Descuento.

created_at*string

When it was created, ISO 8601 with Mexico City time (-06:00).

Formatdate-time
updated_at*|

When it last changed, ISO 8601 (-06:00).

Example Customer

{  "id": "cus_OufpKqnrvx9p1",  "object": "customer",  "livemode": false,  "issuer": "iss_OufpKqnrvx9p",  "tax_id": "ICV060329BY0",  "legal_name": "INMOBILIARIA CVA",  "tax_system": "601",  "zip": "33826",  "email": "pagos@cva.example",  "use": "G03",  "foreign": null,  "ieps_taxpayer": false,  "credit_days": 30,  "quote_valid_days": null,  "payment_terms": "Crédito a 30 días",  "group": "cgr_OufpKqnrvx9p1",  "price_list": null,  "discount_percent": null,  "created_at": "2026-10-20T09:02:11-06:00",  "updated_at": "2026-10-24T10:15:42-06:00"}

The object CustomerDataRequest

Fields
  1. CustomerDataRequest

A link for a customer to give their tax details.

id*string

Object identifier, with its prefix (iss_, inv_, ret_, cus_, prd_, emp_, bat_, brn_, whs_, stm_, adj_, evt_, whe_).

livemode*boolean

true in production (fk_live_ keys), false in test mode (fk_test_). Test objects aren't valid before the SAT.

object*string

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

issuer*string

The issuer that will invoice them.

status*string

open (the link is waiting), completed (the customer sent their details), expired (it expired) or canceled.

One of"open""completed""expired""canceled"
url*|

The link for your customer, on fiscalisto.com. null when it is no longer open.

reference*|

Your id for this customer or order.

description*|

What the customer sees above the form.

expires_at*|

When the link stops working.

created_at*|

When it was created.

submission*|

What the customer sent (the latest submission: they can correct it within the next 24 hours). null until they answer.

Example CustomerDataRequest

{  "id": "cdr_0q1Vmmw52sbD4cHPqLfBvX0AkFg3hX2Ys",  "object": "customer_data_request",  "livemode": false,  "issuer": "iss_0q1Vmmw52sbD",  "status": "open",  "url": "https://fiscalisto.com/datos/g3U-W4H-BbObB6ychi9M5m45",  "reference": "cliente-8812",  "description": "Para facturar su suscripción de octubre.",  "expires_at": "2026-12-23T10:15:00-06:00",  "created_at": "2026-10-24T10:15:00-06:00",  "submission": null}

The object TaxIdValidation

Fields
  1. TaxIdValidation

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.

Example TaxIdValidation

{  "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?