Skip to content
Invoicing

FISCALISTO / API

Exports

An issuer's invoices for a month or a period in a single ZIP with their XML and PDF, or in an Excel: for your accountant, a backup or an audit.

Open in ChatGPTOpen in ClaudeOpen in Cursor

With an export you download at once every invoice an issuer issued or received in a month: a ZIP with each one's XML (and its PDF, if you ask) or an Excel with one row per invoice. They're the same files as Facturas › Exportar in the app. It uses no timbres and works with a read-only key.

Request the export

curl https://api.fiscalisto.com/v1/exports \
  -H "Authorization: Bearer $FISCALISTO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "month": "2026-10", "direction": "issued", "files": "xml_and_pdf" }'

month is a whole month (YYYY-MM), by issue date in Mexico City time. For another period send from and to instead of month. direction is issued (the ones it issued, the default) or received (the ones it received). format is zip (the default) or xlsx, and with zip, files picks xml (the default), pdf or xml_and_pdf. With type (I, E, P, T or N) it carries only one document type.

It answers 202 with the export in status: "processing". If no invoice matches, it answers 400 with export_empty; if one of the same format is already being generated in the company, 409 with export_in_progress.

Wait and download

A few hundred invoices take seconds; tens of thousands, a few minutes. Poll GET /v1/exports/{id} until status is completed and download it:

curl https://api.fiscalisto.com/v1/exports/xpt_OufpKqnrvx9p0Nfbydl9jG4UNGeTYcvdrg/download \
  -H "Authorization: Bearer $FISCALISTO_API_KEY" \
  -o facturas-octubre.zip

Before it finishes it answers 409 with export_not_ready. The file is kept 30 days (expires_at); after that, 410 with export_expired, and you request it again. GET /v1/exports lists the issuer's exports, newest first.

In test mode

In test mode the export carries the test invoices the issuer stamped in that period (up to 500) and is ready at once: the response says processing, as in production, and the first poll already says completed. That way you try the whole flow without waiting.

Every month, without asking

If what you want is a backup of everything every month, in the app you can turn on the monthly backup in «Ajustes › Datos y respaldos»: you get the link by email when it's ready.

Was this page helpful?