FISCALISTO / API / REFERENCE
Invoices
Income, global and transfer invoices: stamp, look up, send, cancel and replace.
Guide to Invoices: what each endpoint is for, step by step and with examples.
Objects
The object Invoice
Status lifecycle
processingpendingvalidrejectedcanceled
processingpendingbecomesvalidThe PAC answers (Fiscalisto asks it again on its own) · invoice.stampedprocessingbecomesrejectedSAT or the PAC don't accept it · invoice.failedvalidbecomescanceledPOST /v1/invoices/{id}/cancelor/substitute: right away, or when the customer accepts · invoice.canceled
While the customer decides on a cancellation it stays valid, with cancellation.status pending (invoice.cancellation_pending); if they reject it, it stays valid (invoice.cancellation_rejected).
- Invoice
An issued CFDI 4.0: income or global invoice, delivery note, credit note (E), payment complement (P) or payroll receipt (N).
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_…).
branch*|The branch (brn_…) it was stamped from, or null (the issuer's tax address). Its payments and credit notes follow it.
cost_center*|Its cost center (ccn_…), or null. The one sent when creating it, or the one set or changed later with POST /v1/invoices/{id}.
type*stringReceipt type (TipoDeComprobante): I income, E expense, P payment, T transfer, N payroll.
"I""E""P""T""N"status*stringprocessing: the PAC hasn't answered (it resolves on its own; listen for invoice.stamped). valid: stamped. pending: stamped, without the UUID yet (it resolves on its own, like processing). A cancellation waiting on the customer doesn't change status: it stays valid, with cancellation.status pending. rejected: the SAT or the PAC didn't accept it (see error). canceled: canceled.
"processing""pending""valid""rejected""canceled"uuid*|Tax folio the SAT assigns (UUID of the Timbre Fiscal Digital), in uppercase.
series*|The series (Serie) it was stamped with, or null.
folio*|Internal folio. On a rejected one it is the one attempted: it isn't used up, and the series' next CFDI uses it.
date*|Issue date (Fecha), Mexico City time.
customer*The customer (Receptor) as it ended up in the CFDI: RFC, name, tax regime and postal code (and foreign if they are abroad).
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).
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).
notes*|Note for the customer: it appears on the PDF, not in the XML. Changed after stamping with POST /v1/invoices/{id} (the XML doesn't change; the next PDF carries it).
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 receipt's taxes summed by type: IVA and IEPS transferred, IVA and ISR withheld and local taxes; null on a payment complement.
total*|Total in the receipt's currency (Total).
payment_status*|Whether it has been collected (Cuentas por cobrar): paid, partial (payment complements or credit notes for part of it) or unpaid. A PUE is paid, except with paid_later until POST /v1/invoices/{id}/mark_paid. null if it isn't income or isn't valid.
amount_due*|What is left to collect, in its currency, or null.
amount_paid*|What was collected: valid payment complements and credit notes, or everything if it is a paid PUE. null if it doesn't apply.
paid_on*|A PUE that was pending collection (paid_later or mark_unpaid): the day the customer paid (YYYY-MM-DD), the one given to POST /v1/invoices/{id}/mark_paid or that of the deposit reconciled with it. null if there is no recorded payment date (a PUE paid when stamped), if it hasn't been paid or if it is PPD (its payments are in its complements).
due_date*|While it is still to be collected (unpaid or partial): the day it is due (YYYY-MM-DD), its date plus the credit days on the customer's record (or their customer group's) or, without them, the empresa's (30 if you didn't change them); a PUE with paid_later, the last day of its month. These are the days Cuentas por cobrar and the collection reminders use. null if it was already paid or doesn't apply.
related*|Related CFDIs (CfdiRelacionados): relation type from c_TipoRelacion and the UUIDs.
payment?|Only on a payment complement (type P).
payroll?Only on a payroll receipt (type N).
global?Only on a global invoice.
cancellation*|The cancellation, if requested: status, reason, replacement and when.
email*|The email send: to whom, cc to whom and when (null if it hasn't been sent).
error*|Why the SAT or the PAC didn't accept it: message, SAT code and original text.
recurring_invoice*|The recurring invoice (rin_…) that stamped it on its own, or null if it was stamped with a call.
tickets*array<string>The tickets (tkt_…) it invoices: the one your customer invoiced through autofactura, the one your team invoiced from the ticket's page, or the ones associated with it. Empty otherwise; a global invoice's tickets are in GET /v1/tickets with status=global.
origin*|What stamped the invoice; null if it was stamped outside Fiscalisto.
created_at*|When it was created, ISO 8601 with Mexico City time (-06:00).
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.
warnings?array<string>Warnings about the invoice (only in the response that stamps it or, with 202, the one that leaves it processing): it is stamped as sent.
email_error?stringWhy the email couldn't be sent; the receipt was stamped.
substitutes?The invoice this one replaced and whether it was canceled.
advance_application?The advance payment's application: method, application note and its status.
Example Invoice
{ "id": "inv_OufpKqnrvx9p0Nfbydl9jG4UNGeTYcvdrg", "object": "invoice", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "branch": null, "cost_center": null, "type": "I", "status": "valid", "uuid": "5F1E8C2A-3B7D-4C9E-A1B2-C3D4E5F60718", "series": null, "folio": "1", "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", "payment_terms": null, "notes": null, "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, "payment_status": "paid", "amount_due": 0, "amount_paid": 5800, "paid_on": null, "due_date": null, "related": null, "cancellation": null, "email": { "to": "pagos@cva.example", "cc": null, "sent_at": "2026-10-24T10:15:44-06:00" }, "error": null, "recurring_invoice": null, "tickets": [], "origin": { "type": "api", "name": "Tienda en línea" }, "created_at": "2026-10-24T10:15:42-06:00", "metadata": { "pedido": "A-1042" }}The object InvoicePreview
- InvoicePreview
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.
Example InvoicePreview
{ "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?
Create an onboarding link POST
A page on fiscalisto.com where the issuer's owner uploads their CSD and signs the contract with the PAC with their e.firma, without those files or their passwords going through your platform. With keep_efirma: true the page also asks their permission to store their e.firma encrypted, to query SAT (downloads, tax returns, opinion, constancia and buzón); with efirma_only: true it asks only for the e.firma, without the CSD. Send your customer to url; when they finish they go back to return_url and issuer.ready arrives. Each link works for one issuer, until it expires.
List invoices GET
Most recent first.