Skip to content

FISCALISTO / API / REFERENCE

Exports

Open in ChatGPTOpen in ClaudeOpen in Cursor

A month's or a period's invoices in a ZIP (XML and PDF) or in Excel.

Guide to Exports: what each endpoint is for, step by step and with examples.

Object

The object Export

Status lifecycle

  • processing
  • completed
  • failed
  • expired
  • processingbecomescompletedThe file is ready
  • processingbecomesfailedIt failed to generate: request it again
  • completedbecomesexpired30 days pass and the file is deleted
Fields
  1. Export

An issuer's invoices in a period, in a ZIP or in Excel.

id*string

Object identifier, with its prefix (iss_, inv_, ret_, cus_, prd_, emp_, bat_, brn_, whs_, stm_, adj_, evt_, whe_).

object*string

What kind of object it is («invoice», «customer»…).

livemode*boolean

true in production (fk_live_ keys), false in test mode (fk_test_). Test objects aren't valid before the SAT.

issuer*string

The issuer (iss_…).

format*string

zip (each invoice's files) or xlsx (an Excel file with one row per invoice).

One of"zip""xlsx"
files*|

Which files of each invoice the ZIP carries; null for an Excel file.

direction*string

EntradaSalidaMerc: Entrada or Salida.

One of"issued""received"
from*|

From which day (inclusive), by issue date.

to*|

Up to which day (inclusive), by issue date.

type*|

Receipt type (TipoDeComprobante): I income, E expense, P payment, T transfer, N payroll.

status*string

processing: being generated. completed: ready to download. failed: it failed (see error); request it again. expired: 30 days passed and the file was deleted.

One of"processing""completed""failed""expired"
invoice_count*number

How many invoices it carries.

size_bytes*|

The file size in bytes, when it is ready.

error*|

Why the export failed, in words; null if it didn't fail.

created_at*|

When it was created, ISO 8601 with Mexico City time (-06:00).

completed_at*|

When it finished.

expires_at*|

Until when it can be downloaded (30 days after completed).

Example Export

{  "id": "xpt_OufpKqnrvx9p0Nfbydl9jG4UNGeTYcvdrg",  "object": "export",  "livemode": false,  "issuer": "iss_OufpKqnrvx9p",  "format": "zip",  "files": "xml_and_pdf",  "direction": "issued",  "from": "2026-10-01",  "to": "2026-10-31",  "type": null,  "status": "processing",  "invoice_count": 184,  "size_bytes": null,  "error": null,  "created_at": "2026-11-01T09:00:12-06:00",  "completed_at": null,  "expires_at": null}

Was this page helpful?