Export data
Create an export from a supported collection URI. The export runs asynchronously and returns an Export resource that can be polled until the generated file is ready.
Authorizations
Your API key is available in the Production and Sandbox dashboards.
Body
Format for your resource
csv, xlsx, json Collection URI used as the export source. Use the collection's query parameters to filter the exported data.
Example of supported URI values
- /entities
- /entities/{entityId}/tax-returns
- /entities/{entityId}/invoices
"/entities/91106968-1abd-4d64-85c1-4e73d96fb997/invoices?issuedAt[after]=2026-01-01"
Optional file types to include in the generated export; when specified, the export file includes the matching content files
1invoice.cfdi.xml, invoice.cfdi.pdf, tax_return.transcript, tax_return.ack_receipt, tax_return.payment_receipt ["invoice.cfdi.xml"]Response
Export resource response
Export IRI reference
"/exports/91106968-1abd-4d64-85c1-4e73d96fb997"
JSON-LD resource type
Unique export ID
"91106968-1abd-4d64-85c1-4e73d96fb997"
Generated file once the export is finished
{
"type": "Export",
"resource": "/exports/91106968-1abd-4d64-85c1-4e73d96fb997",
"mimeType": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
"extension": "xlsx",
"filename": "9137b53f-1abd-4d64-85c1-4e73d96fb997.xlsx"
}Output format for the generated export file
"xlsx"
File types to include in the export
1invoice.cfdi.xml, invoice.cfdi.pdf, tax_return.transcript, tax_return.ack_receipt, tax_return.payment_receipt ["invoice.cfdi.xml"]Current export processing status
pending, running, finished, failed "pending"
API collection URI used as the export source
"/entities/91106968-1abd-4d64-85c1-4e73d96fb997/invoices?usage=I01&type=I&issuedAt[after]=2020-01-01"
Date and time the resource was created
"2020-01-01T12:15:00.000Z"
Date and time the resource was last updated
"2020-01-01T12:15:00.000Z"