Skip to main content
POST
Create extraction

Description

This endpoint starts a process for extracting tax documents from SAT. Extraction is an asynchronous process that can take several minutes depending on the volume of documents.
The extraction process is asynchronous. Use the returned publicId to check status or configure webhooks to receive notifications.

Request

object
required
Information of the taxpayer from whom to extract documents
object
required
Credentials to access SAT
object
required
Extraction options
object
Optional filters for extraction

Response

string
Unique extraction ID for subsequent queries
string
Current status: PENDING, PROCESSING, COMPLETED, FAILED
string
Creation timestamp in ISO 8601 format
object
Copy of the options sent in the request
object
Processed taxpayer information
number
Number of documents found (0 initially)
number
Number of documents processed successfully
number
Number of documents that failed to process

Examples

Successful response

Common errors

Important notes

Passwords: Always encode passwords in base64 before sending them. Plain text passwords will be rejected.
Large periods: For date ranges greater than 3 months, consider splitting the extraction into multiple requests for better performance.
Asynchronous status: Once the extraction is created, use the Check status endpoint to monitor progress.