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.
- Configurable rules by RFC and document type
- Automatic daily scheduling
- Notifications when downloads complete
- Real-time monitoring dashboard
Automatic package processing
Fiscalapi processes the SAT's ZIP packages automatically and makes each CFDI available through the API.
- Automatic ZIP package decompression
- CFDI extraction, conversion, and storage
- Packages available in XML, JSON, and ZIP formats
- No manual processing required
Automatic retries
Fiscalapi retries transient SAT errors automatically. You don't lose downloads to temporary failures.
- Automatic retries with exponential backoff
- Smart handling of SAT errors
- Prioritized retry queue
- Detailed logs of every attempt
SAT
Test
Test environment with a simulated SAT
Validate your full integration in the test environment, which simulates the SAT download flow.
- Full simulation of the SAT service
- Same endpoints as production
- Realistic test data
- No e.firma (the SAT advanced electronic signature that identifies a taxpayer, formerly FIEL) needed for testing
e.firma support
Manage e.firma credentials for multiple RFCs securely. The SAT requires them to authenticate your download requests.
- Secure certificate storage
- e.firma management by RFC
- Automatic expiration checks
- Private key encryption
Developer resources
Detailed documentation, official SDKs, and tools to help you integrate quickly.
Bulk CFDI download is billed per RFC and download type, starting at $99 MXN per month. 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