FISCALISTO / API / REFERENCE
Check an invoice without stamping · Invoices
The same body and the same checks as POST /v1/invoices, without stamping or using stamps: returns the invoice as it would be stamped now (with the issuer's tax data, the next folio, the subtotal, the taxes and the total Fiscalisto calculates), the warnings (a customer on SAT's lists, a duplicate) and the unsealed XML (unsigned_xml). Use it to show the total before charging or to validate in your system; if something fails, invoice_invalid as when stamping. It doesn't ask for an Idempotency-Key and works with a read-only key.
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
An invoice (CFDI 4.0). A field that doesn't exist is rejected with parameter_unknown, never ignored.
issuer?stringIssuer (iss_…). If the key has a single issuer or the account has only one, it can be left out.
^iss_branch?stringBranch (brn_…) the invoice is issued from: its postal code goes in LugarExpedicion, its address on the PDF and, if it has them, its series. Without it, the issuer's tax address (the Matriz).
^brn_cost_center?stringIts cost center (ccn_…): the site, project, branch or department it belongs to, to see income and expenses by center in Reportes. It doesn't change the CFDI. Its credit notes take it on their own.
^ccn_warehouse?stringWarehouse (whs_…) its track_stock products come out of. By default, its branch's (or the Matriz's).
^whs_customer?|The customer (Receptor): the id of one from your catalog (cus_…) or their data. Required except on a transfer (type T), whose recipient is the issuer itself.
items*array<>Line items (Conceptos), at least one.
1 <= items <= 200type?stringI income (by default; with global, global invoice) or T delivery note. Credit notes: POST /v1/credit_notes. Payments: POST /v1/payments.
"I""I""T"carta_porte?Carta Porte 3.1 complement (transfer of goods).
carta_porte_exemption?stringOnly on a delivery note (type T) without carta_porte: the RMF 2026 rule that allows it. 2.7.7.2.1 own goods on a local transfer (not medicines, hydrocarbons or goods for customs clearance); 2.7.7.2.2 parcel or courier delivery on the first or last mile, one line item per package with its tracking number in sku; 2.7.7.2.3 local towing or salvage truck, relating with related (05) the service's income invoice. Sending it declares that the transfer doesn't cross any stretch under federal jurisdiction. The line items go with unit_price 0 and taxability 01 (the default on a delivery note).
"2.7.7.2.1""2.7.7.2.2""2.7.7.2.3"ine?INE complement (electoral processes).
leyendas?array<>Tax legends complement.
items <= 10donation?Donee complement: a donation receipt. The issuer must be a donee (tax_system 603) with its official letter in donation_authorization (POST /v1/issuers/{id}).
local_taxes?array<>Local taxes (implocal complement): state transfers and withholdings.
items <= 20export?stringExport (Exportacion), c_Exportacion: 01 not applicable (default), 02 definitive with code A1 (carries comercio_exterior), 03 temporary (without it), 04 definitive with a code other than A1 or without a sale (with or without comercio_exterior; with it, incoterm optional).
"01""02""03""04"comercio_exterior?Foreign trade complement 2.0.
global?Global invoice to the general public (InformacionGlobal): frequency, months and year.
use?stringCFDI use (UsoCFDI), a c_UsoCFDI key. G03 by default, or S01 with regime 616.
^[A-Z]{1,2}\d{2}$payment_form?stringPayment form (FormaPago), a c_FormaPago key: 01 cash, 03 transfer, 04 credit card, 28 debit, 99 to be defined… Required with PUE; with PPD it's 99.
^\d{2}$payment_method?stringPayment method (MetodoPago): PUE (a single payment, the default) or PPD (in installments or deferred, collected with payment complements).
"PUE""PPD"paid_later?booleanWith PUE: true if it hasn't been paid yet («Por cobrar» in the app) even though it will be paid this month.
currency?stringCurrency, an ISO 4217 key from c_Moneda (MXN, USD, EUR…). MXN by default.
3 <= length <= 3series?stringSeries (Serie), up to 25 characters. Each series has its own folios.
length <= 25notes?stringRemarks that appear on the PDF (they don't go into the XML).
length <= 1000payment_terms?stringPayment 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).
1 <= length <= 1000pdf_language?stringPDF language: es (default) or en.
"es""en""bi"addenda?The recipient's addenda (Walmart, Soriana…), with its own fields.
related?Related CFDIs (CfdiRelacionados): relation type from c_TipoRelacion and the UUIDs.
exchange_rate?numberExchange rate to pesos (TipoCambio). Required if the currency isn't MXN; use the DOF's from the previous day.
0 < value <= 1000000folio?integerFolio (Folio). Fiscalisto assigns the series' next one; only send one if it must be that one.
1 <= value <= 2000000000continue_sequence?booleanWith a chosen folio: true so the following ones continue from that number.
date?stringIssue date (Fecha) if not now, YYYY-MM-DDTHH:MM:SS Mexico City time: up to 72 hours earlier.
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}$send_email?booleantrue to send the PDF and the XML by email when stamping, with Fiscalisto's design. Not sent by default.
falseemail_cc?|CC emails, separated by commas.
metadata?Your own data: up to 50 keys of 40 characters with text values of up to 500. They don't go into the CFDI; they come back in the object and in webhooks.
async?booleanOnly in POST /v1/invoices. true: it answers 202 as soon as the invoice is saved with its folio (status processing) and stamps it after answering; invoice.stamped or invoice.failed say how it ended. On the other routes that receive an invoice it changes nothing.
falseOK.
application/json- response
A checked, unstamped invoice: what would be stamped now with POST /v1/invoices and the same body.
object*stringWhat kind of object it is («invoice», «customer»…).
livemode*booleantrue in production (fk_live_ keys), false in test mode (fk_test_). Test objects aren't valid before the SAT.
issuer*stringThe issuer (iss_…).
branch*|Branch (brn_…) the invoice is issued from: its postal code goes in LugarExpedicion, its address on the PDF and, if it has them, its series. Without it, the issuer's tax address (the Matriz).
type*stringReceipt type (TipoDeComprobante): I income, E expense, P payment, T transfer, N payroll.
"I""E""T"series*|Series (Serie), up to 25 characters. Each series has its own folios.
folio*|The folio it would have if stamped now; another invoice stamped earlier may take it.
date*|Issue date (Fecha), Mexico City time.
customer*Customer (Receptor): the id of one in your catalog (cus_…) or their details in an object.
use*|CFDI use (UsoCFDI), a c_UsoCFDI key. G03 by default, or S01 with regime 616.
payment_form*|Payment form (FormaPago), a c_FormaPago key: 01 cash, 03 transfer, 04 credit card, 28 debit, 99 to be defined… Required with PUE; with PPD it's 99.
payment_method*|Payment method (MetodoPago): PUE (a single payment, the default) or PPD (in installments or deferred, collected with payment complements).
currency*stringCurrency, an ISO 4217 key from c_Moneda (MXN, USD, EUR…). MXN by default.
exchange_rate*|Exchange rate to pesos (TipoCambio). Required if the currency isn't MXN; use the DOF's from the previous day.
items*array<>Line items (Conceptos), at least one.
subtotal*|Sum of the amounts before taxes and discounts (SubTotal).
discount*|Discount (Descuento).
taxes*|The invoice's taxes, by type: IVA and IEPS transferred, IVA and ISR withheld and local taxes.
total*numberTotal in the receipt's currency (Total).
warnings*array<>What is worth checking before stamping (a customer on the SAT's 69 or 69-B lists, an invoice that looks duplicated); it doesn't prevent stamping.
unsigned_xml*stringThe XML that would be sent to the PAC, without seal or stamp.
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).
The invoice breaks a SAT rule Fiscalisto checks before sending it to the PAC. No stamp was used.
message_essays which rule and how to fix it.
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/invoices/preview' \ -H 'Authorization: Bearer fk_test_…' \ -H 'Idempotency-Key: pedido-A-1042' \ -H 'Content-Type: application/json' \ -d '{ "customer": { "tax_id": "ICV060329BY0", "legal_name": "INMOBILIARIA CVA", "tax_system": "601", "zip": "33826", "email": "pagos@cva.example" }, "payment_form": "03", "items": [ { "description": "Mensualidad", "product_key": "86121700", "quantity": 2, "unit_price": 2500 } ], "send_email": true, "metadata": { "pedido": "A-1042" }}'{ "object": "invoice_preview", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "branch": null, "type": "I", "series": null, "folio": "2", "date": "2026-10-24T10:15:42", "customer": { "tax_id": "ICV060329BY0", "legal_name": "INMOBILIARIA CVA", "tax_system": "601", "zip": "33826" }, "use": "G03", "payment_form": "03", "payment_method": "PUE", "currency": "MXN", "exchange_rate": null, "items": [ { "description": "Mensualidad", "product_key": "86121700", "unit_key": "E48", "unit_name": "Unidad de servicio", "sku": "MEN-1", "quantity": 2, "unit_price": 2500, "taxability": "02", "iva": "0.16" } ], "subtotal": 5000, "discount": 0, "taxes": { "iva": 800, "ieps": 0, "iva_withheld": 0, "isr_withheld": 0, "local_transferred": 0, "local_withheld": 0 }, "total": 5800, "warnings": [], "unsigned_xml": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><cfdi:Comprobante Version=\"4.0\" Folio=\"2\" SubTotal=\"5000.00\" Moneda=\"MXN\" Total=\"5800.00\" TipoDeComprobante=\"I\" …>…</cfdi:Comprobante>"}Was this page helpful?
Stamp an invoice POST
Checks the invoice against SAT's rules, seals it and stamps it in a single call. Answers with the stamped invoice (status valid) or, if the PAC is slow or SAT doesn't answer, 202 in processing: Fiscalisto retries it on its own and invoice.stamped lets you know. With async: true it answers 202 right away and stamps later. What you can leave out has the usual value: PUE, MXN, use G03 (S01 with regime 616), tax object 02, VAT 16%, quantity 1, unit E48.
Get an invoice GET
By its id (inv_…) or by its folio fiscal (UUID).