Fiscalapi

Bulk CFDI and XML download from the SAT

An API for bulk download from the SAT (Mexico's tax authority), the service that delivers the CFDIs a taxpayer issued and received. Get issued and received CFDIs (Mexico's electronic invoices), XML, metadata, and withholding CFDIs (the CFDIs that report taxes withheld from payments). Cover multiple RFCs (Mexico's taxpayer IDs) in one place.

Download types

Download every type of SAT document for each of your RFCs

Active issued CFDIs

For each RFC, download all issued invoices that are active (vigente: not canceled with the SAT).

Active received CFDIs

For each RFC, download all received invoices that are active.

Issued CFDI metadata

Metadata for issued CFDIs, both active and canceled.

Received CFDI metadata

Metadata for received CFDIs, both active and canceled.

Issued withholding CFDIs

Download every withholding CFDI you issued.

Received withholding CFDIs

Download every withholding CFDI you received.

Key features

  • Automatic daily download

    Set up download rules that fetch your RFCs' CFDIs automatically every day, with no manual work.

    • Download rules by RFC and document type
    • One daily download request at 1:05 a.m. for the previous day's documents
    • Hourly download of ready packages
  • Automatic package processing

    Fiscalapi processes the SAT's ZIP packages automatically and makes each CFDI available through the API.

    • XML and metadata extraction every two hours
    • XML and metadata queryable per download request
    • Original ZIP package available for download
  • Automatic retries

    Fiscalapi retries transient SAT errors automatically. You don't lose downloads to temporary failures.

    • Retries with exponential backoff
    • Each download request ends in Completada (Completed) or Abandonada (Abandoned)
    • SAT request and response available per download request
  • Test environment with a simulated SAT

    Validate your integration in the test environment, at no cost, with a simulator of the SAT download flow.

    • Built-in simulator of the full SAT flow
    • Uses your most recent test invoices
    • Testing needs no e.firma (the SAT advanced electronic signature that identifies a taxpayer, formerly FIEL)
  • e.firma support

    Fiscalapi stores the credentials encrypted and tracks their validity period automatically.

    • One e.firma per person (any individual or company you register in Fiscalapi), uploaded to their profile
    • In production, a valid RFC and a current e.firma
    • The download rule is suspended if the e.firma expires or is missing

Each seat covers 1 RFC and 1 download type (issued or received) for $99.00 MXN/month, IVA (VAT) included. Bulk CFDI download requires the CFDI invoicing base subscription ($199.00 MXN/month, IVA included). See the Bulk CFDI download plans.

Frequently asked questions about bulk download

What is the SAT's bulk download service?

It's the SAT service that lets you download issued and received CFDIs, their metadata, and withholding CFDIs automatically. You authenticate with the taxpayer's e.firma.

Which documents can I download with the API?

Active issued and received CFDIs, metadata for issued and received CFDIs (active and canceled), and issued and received withholding CFDIs.

Do I need to upload my e.firma?

Yes. The SAT requires the RFC's e.firma to authenticate download requests. Fiscalapi stores it encrypted and tracks its expiration automatically.

Can I automate the daily download?

Yes. You set up download rules by RFC and document type. The API runs the download, unzips the packages, and makes the XML files available over REST.

Take the next step

Automate your SAT downloads