# Customers

Each issuer's customer catalog.

## Endpoints

- [Validate a customer's tax data](https://fiscalisto.com/en/docs/api/referencia/clientes/validate-tax-id.md): `POST /v1/tax_ids/validate`
- [Create a customer](https://fiscalisto.com/en/docs/api/referencia/clientes/create-customer.md): `POST /v1/customers`
- [List customers](https://fiscalisto.com/en/docs/api/referencia/clientes/list-customers.md): `GET /v1/customers`
- [Get a customer](https://fiscalisto.com/en/docs/api/referencia/clientes/get-customer.md): `GET /v1/customers/{id}`
- [Update a customer](https://fiscalisto.com/en/docs/api/referencia/clientes/update-customer.md): `POST /v1/customers/{id}`
- [Delete a customer](https://fiscalisto.com/en/docs/api/referencia/clientes/delete-customer.md): `DELETE /v1/customers/{id}`
- [Ask a customer for their tax data](https://fiscalisto.com/en/docs/api/referencia/clientes/create-customer-data-request.md): `POST /v1/customer_data_requests`
- [List data requests](https://fiscalisto.com/en/docs/api/referencia/clientes/list-customer-data-requests.md): `GET /v1/customer_data_requests`
- [Get a data request](https://fiscalisto.com/en/docs/api/referencia/clientes/get-customer-data-request.md): `GET /v1/customer_data_requests/{id}`
- [Cancel a data request](https://fiscalisto.com/en/docs/api/referencia/clientes/cancel-customer-data-request.md): `DELETE /v1/customer_data_requests/{id}`

## The Customer object

A customer in an issuer's catalog.

| Field | Type | Always present | Description |
| --- | --- | --- | --- |
| `id` | string | yes | Object identifier, with its prefix (iss_, inv_, ret_, cus_, prd_, emp_, bat_, brn_, whs_, stm_, adj_, evt_, whe_). |
| `livemode` | boolean | yes | true in production (fk_live_ keys), false in test mode (fk_test_). Test objects aren't valid before the SAT. |
| `object` | `"customer"` | yes | What kind of object it is («invoice», «customer»…). |
| `issuer` | string | yes | The issuer (iss_…). |
| `tax_id` | string | yes | RFC (Rfc), 12 characters for a persona moral and 13 for a persona física. |
| `legal_name` | string | yes | 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 | yes | Tax regime (RegimenFiscal), a c_RegimenFiscal key: 601, 612, 626… |
| `zip` | string | yes | 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` | string or null | yes | The customer's email (several separated by commas), where their invoices go. |
| `use` | string or null | yes | CFDI use (UsoCFDI), a c_UsoCFDI key. G03 by default, or S01 with regime 616. |
| `foreign` | object or null | yes | If they're foreign: their country of residence (ResidenciaFiscal, c_Pais) and their tax registration number (NumRegIdTrib), with the generic RFC XEXX010101000. |
| `foreign.country` | string | yes | Country of tax residence, a 3-letter key from c_Pais (USA, CAN…). |
| `foreign.tax_id` | string or null | yes | Tax identity registration number in their country (NumRegIdTrib). |
| `ieps_taxpayer` | boolean | yes | 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` | integer or null | yes | Credit days given, from 0 to 365, or null to not change the customer's. |
| `quote_valid_days` | integer or null | yes | 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` | string or null | yes | 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` | string or null | yes | Their customer group (cgr_…), or null if they aren't in one. |
| `price_list` | string or null | yes | 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` | number or null | yes | Discount percentage on the price, from 0 to 100; in the CFDI it goes as each line item's Descuento. |
| `created_at` | string (date-time) | yes | When it was created, ISO 8601 with Mexico City time (-06:00). |
| `updated_at` | string (date-time) or null | yes | When it last changed, ISO 8601 (-06:00). |

Example:

```json
{
  "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 CustomerDataRequest object

A link for a customer to give their tax details.

| Field | Type | Always present | Description |
| --- | --- | --- | --- |
| `id` | string | yes | Object identifier, with its prefix (iss_, inv_, ret_, cus_, prd_, emp_, bat_, brn_, whs_, stm_, adj_, evt_, whe_). |
| `livemode` | boolean | yes | true in production (fk_live_ keys), false in test mode (fk_test_). Test objects aren't valid before the SAT. |
| `object` | `"customer_data_request"` | yes | What kind of object it is («invoice», «customer»…). |
| `issuer` | string | yes | The issuer that will invoice them. |
| `status` | `open`, `completed`, `expired`, `canceled` | yes | open (the link is waiting), completed (the customer sent their details), expired (it expired) or canceled. |
| `url` | string or null | yes | The link for your customer, on fiscalisto.com. null when it is no longer open. |
| `reference` | string or null | yes | Your id for this customer or order. |
| `description` | string or null | yes | What the customer sees above the form. |
| `expires_at` | string (date-time) or null | yes | When the link stops working. |
| `created_at` | string (date-time) or null | yes | When it was created. |
| `submission` | object or null | yes | What the customer sent (the latest submission: they can correct it within the next 24 hours). null until they answer. |
| `submission.tax_id` | string | yes | Their RFC. |
| `submission.legal_name` | string | yes | Their name or razón social, as on their constancia. |
| `submission.tax_system` | string | yes | Their tax regime (c_RegimenFiscal). |
| `submission.zip` | string | yes | The postal code of their tax address. |
| `submission.use` | string | yes | The CFDI use they chose (c_UsoCFDI). |
| `submission.email` | string or null | yes | Their email to receive invoices, if they gave it. |
| `submission.source` | `constancia`, `manual` | yes | constancia (read from their constancia or from the SAT with their idCIF) or manual (typed). |
| `submission.customer` | string or null | yes | The customer (cus_…) in the issuer's catalog: the new one, or the one that already existed with that RFC. |
| `submission.applied` | boolean | yes | true if it was saved in the catalog. false if the customer already existed with other details: apply them with POST /v1/customers/{id} if they are correct. |
| `submission.submitted_at` | string (date-time) or null | yes | When they sent them. |

Example:

```json
{
  "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 TaxIdValidation object

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

| Field | Type | Always present | Description |
| --- | --- | --- | --- |
| `object` | `"tax_id_validation"` | yes | What kind of object it is («invoice», «customer»…). |
| `tax_id` | string | yes | The RFC checked. |
| `kind` | `company`, `person`, `generic` | yes | company (persona moral, 12 characters), person (persona física, 13) or generic (XAXX010101000, XEXX010101000). |
| `valid` | boolean | yes | 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 | yes | true if it was compared with the SAT's registry (you sent cif_id and the SAT answered). |
| `errors` | array of object | yes | What would make the SAT reject the invoice. Each with the field (param), a code, the explanation and, when possible, the correct value (suggestion). |
| `errors[].param` | string | yes | The field: tax_id, legal_name, tax_system, zip, use or cif_id. |
| `errors[].code` | string | yes | What failed, for your code: tax_id_format, tax_id_date, legal_name_capital_regime, legal_name_mismatch, tax_system_person, tax_system_mismatch, zip_unknown, zip_mismatch, use_tax_system, cif_id_not_found… |
| `errors[].message` | string | yes | The explanation, to show your user. |
| `errors[].suggestion` | string or null | yes | The correct value when it is known (the SAT's with cif_id, or the name without the capital regime); null otherwise. |
| `warnings` | array of object | yes | What doesn't prevent stamping but is worth checking: the check digit, uppercase, whether the RFC is on the SAT lists. |
| `warnings[].param` | string | yes | The field. |
| `warnings[].code` | string | yes | tax_id_check_digit, legal_name_format, tax_id_listed_69b or tax_id_listed_69. |
| `warnings[].message` | string | yes | The explanation. |
| `warnings[].suggestion` | string or null | yes | The suggested value, or null. |
| `sat_record` | object or null | yes | What the SAT has in the constancia (with cif_id): name, postal code and current tax regimes. null without cif_id. |
| `sat_record.legal_name` | string or null | yes | The name or razón social, as the SAT has it. |
| `sat_record.zip` | string or null | yes | The postal code of their tax address. |
| `sat_record.tax_systems` | array of string | yes | Their current tax regimes (c_RegimenFiscal). |
| `sat_error` | string or null | yes | 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` | object or null | yes | Whether the RFC appears on the SAT lists. null with a generic or misspelled RFC. |
| `sat_lists.object` | `"sat_list_check"` | yes | What kind of object it is («invoice», «customer»…). |
| `sat_lists.tax_id` | string | yes | The RFC checked. |
| `sat_lists.name` | string or null | yes | The name it appears with on the SAT lists (null if it doesn't appear). |
| `sat_lists.listed` | boolean | yes | true if the RFC appears on any list, even if it has rebutted. |
| `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. |
| `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. |
| `sat_lists.lists` | array of object | yes | Each list it appears on; empty if it doesn't appear on any. |
| `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). |
| `sat_lists.lists[].source` | string | yes | The SAT file it comes from (code). |
| `sat_lists.lists[].source_name` | string | yes | The SAT file's name, for display. |
| `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). |
| `sat_lists.lists[].published_on` | string or null | yes | Publication date at the SAT or in the DOF (null if it isn't included). |
| `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. |
| `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). |
| `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. |

Example:

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