Extractions

Extraction extractors

The following extractors are currently available:

invoice

Pulls issued and received Invoices, including the CFDI files.

You can customize the data pull process by using the following options:

OptionDescriptionTypeDefault Value
typesFilter by invoice typearray['I','E','P','N','T']
period.fromFilter by issuing date (greater than)string2014-01-01
period.toFilter by issuing date (less than)stringnow
issuedInclude invoices issued by the taxpayerbooltrue
receivedInclude invoices received by the taxpayerbooltrue
xmlInclude the invoice CFDI XML filebooltrue
pdfInclude the invoice CFDI PDF filebooltrue
complementFilter by complementint-1

annual_tax_return

Pulls annual Tax Returns, including the PDF files and payment data.

You can customize the data pull process by using the following options:

OptionDescriptionTypeDefault Value
period.fromFilter by filing date (greater than)string2014-01-01
period.toFilter by filing date (less than)stringnow

monthly_tax_return

Pulls provisional Tax Returns, including the PDF files and payment data.

You can customize the data pull process by using the following options:

OptionDescriptionTypeDefault Value
period.fromFilter by filing date (greater than)string2014-01-01
period.toFilter by filing date (less than)stringnow

electronic_accounting

Pulls trial balance and account catalogs.

You can customize the data pull process by using the following options:

OptionDescriptionTypeDefault Value
period.fromFilter by filing date (greater than)string2014-01-01
period.toFilter by filing date (less than)stringnow

rif_tax_return

Pulls Tax incorporation regime (RIF) Tax Returns which only aplies for physical person, including the PDF files and payment data.

You can customize the data pull process by using the following options:

OptionDescriptionTypeDefault Value
period.fromFilter by filing date (greater than)string2014-01-01
period.toFilter by filing date (less than)stringnow

tax_status

Pulls the taxpayer Tax Status.

No options available.

tax_compliance

Pulls the taxpayer Tax Compliance Check.

No options available.

rpc

Pulls the RPC data.

No options available.

tax_retention

Pulls issued and received Tax Retention, including the CFDI files.

You can customize the data pull process by using the following options:

OptionDescriptionTypeDefault Value
period.fromFilter by issuing date (greater than)string2014-01-01
period.toFilter by issuing date (less than)stringnow
issuedInclude tax retentions issued by the taxpayerbooltrue
receivedInclude tax retentions received by the taxpayerbooltrue
xmlInclude the tax retention CFDI XML filebooltrue
pdfInclude the tax retention CFDI PDF filebooltrue
complementFilter by complementint-1

Extraction status

StatusDescription
pendingThe initial extraction status. The extraction request is enqueued and waiting to be processed.
runningThe extraction process started and is currently running. The running time varies depending on the extractor type and the taxpayer transactional volume. You may find partial data available in our API endpoints during this status.
finishedThe extraction finished successfully, and all data is available to be pulled from our API endpoints. This is a final status.
failedThe extraction couldn't start or failed during the process, and our internal retry policies weren't able to finish the extraction successfully. We may have partial data available in our API endpoints, but new extractions should be created to ensure all taxpayer data is available. You can check the extraction error code to understand why it failed and determine whether it can be retried or not. This is a final status.
stoppingThe extraction was requested to be stopped by the user. It is in the process of being stopped.
stoppedThe extraction was stopped by the user.

Extraction error codes

CodeDescriptionRetryable
invalid_credentialsThe taxpayer Credential is no longer valid.No
login_failedWe couldn't log in the taxpayer account.Yes
unrecoverableThe extraction process failed many times, and we reached a maximum number of retries.Yes
sat_unavailableWe detected that SAT itself is down or unresponsive.Yes
internal_errorWe detected an internal error in our own infrastructure.Yes
undefinedWe couldn't determine the error cause and our internal team will investigate it.Yes