The SW Sapien app connects Invopop to SW Sapien’s Efisco service to bulk download CFDI documents from the SAT (Servicio de Administración Tributaria). Instead of managing sensitive eFirma certificates or building brittle web-scraping solutions, this app delegates the complexity of SAT authentication and download to a trusted third-party provider.
This app handles CFDI download only. Once downloaded, each CFDI is passed to the SAT Mexico app for conversion to GOBL format via a separate workflow.
Bulk CFDI download: Request and download CFDIs for a given date range, both issued and received, through SW Sapien’s Efisco API.
Automatic job dispatch: For each downloaded CFDI, the app uploads the file and creates a workflow job that triggers the conversion process.
Periodic execution: Combine with the Cron app to schedule automatic daily (or other interval) imports.
Flexible document types: Configure whether to import received invoices, issued invoices, or both.
No sensitive certificate management: Authentication with SAT is handled entirely by SW Sapien, so eFirma certificates never need to be stored in Invopop.
Check out our Mexico: Receiving invoices guide for step-by-step setup instructions. The app also supports importing issued invoices; refer to the configuration options below for details.
The following workflow actions will be available once you install and enable this app:
Register Efisco Party
Initiate the registration of a party with SW Sapien’s Efisco service, generating a link for uploading the e.firma (FIEL) certificate.
Import CFDIs from Efisco
Request CFDI downloads from SW Sapien’s Efisco service for a specified date range, wait for completion, and dispatch individual conversion jobs for each CFDI.
The following templates help you get started quickly. Use them as is or as a base for your own flows.
SW Sapien register party
Initiate the registration of a party with SW Sapien’s Efisco service to enable CFDI downloads.
Example SW Sapien register party workflow
Copy
Ask AI
{ "name": "SW Sapien register party", "description": "Register a party with SW Sapien's Efisco service to enable CFDI downloads", "schema": "org/party", "steps": [ { "id": "f2a3b4c0-4d5e-11f0-e004-7d8e9f0a1b2c", "name": "Set State", "provider": "silo.state", "summary": "Set state to `processing`{.state .processing}", "config": { "state": "processing" } }, { "id": "e1f2a3b0-4d5e-11f0-e004-7d8e9f0a1b2c", "name": "Register Efisco Party", "provider": "sw-sapien.efisco.register", "summary": "Register party with Efisco service" } ], "rescue": [ { "id": "a3b4c5d0-4d5e-11f0-e004-7d8e9f0a1b2c", "name": "Set State", "provider": "silo.state", "summary": "Set state to `error`{.state .error}", "config": { "state": "error" } } ]}
SW Sapien import CFDIs
Download CFDIs from SAT via SW Sapien’s Efisco service and dispatch a conversion job for each document. This workflow is designed to be executed periodically using the Cron app.
Example SW Sapien import CFDIs workflow
Copy
Ask AI
{ "name": "SW Sapien import CFDIs", "description": "Download CFDIs from SAT via SW Sapien's Efisco service and dispatch conversion jobs", "schema": "org/party", "steps": [ { "id": "f6a7b8c0-2b3c-11f0-c002-5b6c7d8e9f0a", "name": "Import CFDIs from Efisco", "provider": "sw-sapien.efisco.import", "summary": "Download received CFDIs and create conversion jobs", "config": { "document_type": "received", "workflow_id": "" } } ], "rescue": [ { "id": "a7b8c9d0-2b3c-11f0-c002-5b6c7d8e9f0a", "name": "Set State", "provider": "silo.state", "summary": "Set state to `error`{.state .error}", "config": { "state": "error" } } ]}