FISCALISTO / API / REFERENCE
Create a customer · Customers
A customer in the issuer's catalog, with their tax data as on their constancia. An RFC already in the catalog answers customer_exists.
bearerAuthAuthorizationBearer <key>Your secret key: fk_test_… in test mode, fk_live_… in production. Desarrolladores › Llaves.
Idempotency-Key?stringOptional (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).
1 <= length <= 255application/json- body
issuer?stringIssuer (iss_…). If the key has a single issuer or the account has only one, it can be left out.
tax_id*stringRFC (Rfc), 12 characters for a persona moral and 13 for a persona física.
^[A-ZÑ&]{3,4}\d{6}[A-Z0-9]{3}$legal_name*stringName or razón social exactly as on the constancia de situación fiscal, without the capital regime (without «S.A. de C.V.»).
1 <= length <= 300tax_system*stringTax regime (RegimenFiscal), a c_RegimenFiscal key: 601, 612, 626…
^6\d\d$zip*stringPostal 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.
^\d{5}$email?|The customer's email (several separated by commas), where their invoices go with send_email.
use?stringCFDI use (UsoCFDI), a c_UsoCFDI key. G03 by default, or S01 with regime 616.
^[A-Z]{1,2}\d{2}$foreign?|If they're foreign: their country of residence (ResidenciaFiscal, c_Pais) and their tax registration number (NumRegIdTrib), with the generic RFC XEXX010101000.
group?|Their customer group (cgr_…), or null for none.
price_list?|Their own price list (prl_…), which wins over their group's; null: their group's or everyone's.
discount_percent?|Their own discount on each line item, in %; null: their group's.
ieps_taxpayer?booleantrue 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?|Their credit days: their invoices are due these many days after their date (due_date, collections); null: their group's or the empresa's.
quote_valid_days?|Days a new quote is valid for this customer (valid_until); null: its group's or the company's (Ajustes › Horarios).
payment_terms?|Their payment terms («Crédito a 30 días»): new invoices in the app start with them; null: the empresa's. POST /v1/invoices doesn't set them on its own: send them in payment_terms.
OK.
application/json- response
A customer in an issuer's catalog.
id*stringObject identifier, with its prefix (iss_, inv_, ret_, cus_, prd_, emp_, bat_, brn_, whs_, stm_, adj_, evt_, whe_).
livemode*booleantrue in production (fk_live_ keys), false in test mode (fk_test_). Test objects aren't valid before the SAT.
object*stringWhat kind of object it is («invoice», «customer»…).
issuer*stringThe issuer (iss_…).
tax_id*stringRFC (Rfc), 12 characters for a persona moral and 13 for a persona física.
legal_name*stringName 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*stringTax regime (RegimenFiscal), a c_RegimenFiscal key: 601, 612, 626…
zip*stringPostal 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*booleantrue 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*stringWhen it was created, ISO 8601 with Mexico City time (-06:00).
date-timeupdated_at*|When it last changed, ISO 8601 (-06:00).
There's already a customer with that RFC in the issuer's catalog (or a product with that SKU). For a customer,
customeris its id (cus_…): use it, or update it withPOST /v1/customers/{id}.The issuer is archived and no longer stamps. Its documents can still be read and canceled.
The account has several issuers and the request doesn't say which: send
issuer(iss_…).The object belongs to the other mode: an fk_test_ key only sees test data and an fk_live_ key only live data.
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.
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.
This key can't use that issuer.
There is no such issuer in the account (or it belongs to the other mode).
There's no object with that id (or it belongs to another issuer or the other mode).
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/customers' \ -H 'Authorization: Bearer fk_test_…' \ -H 'Idempotency-Key: pedido-A-1042' \ -H 'Content-Type: application/json' \ -d '{ "tax_id": "ICV060329BY0", "legal_name": "INMOBILIARIA CVA", "tax_system": "601", "zip": "33826", "email": "pagos@cva.example"}'{ "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"}Was this page helpful?