GET
https://api.veriko.mx/v1/finance/ceps/exports/{id}/downloadDownload the archive of a CEP export
How-to guide →Delivers the ZIP of an asynchronous CEP export that is ready. It is the same archive as GET /v1/finance/ceps: the XML and PDF files under ceps/ and the manifest.csv and manifest.xlsx manifests.
- If the export is still in progress or failed, it responds with an HTTP status
409(withexport_not_readyin the body). - If the archive expired (24 hours after becoming ready), it responds with an HTTP status
410(withexport_expiredin the body). Request the export again. - If it does not exist or was requested by someone else, it responds with an HTTP status
404(withexport_not_foundin the body).
While it has not expired, it can be downloaded as many times as needed.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id* | path | string (uuid) | required | Export UUID. |
curl -X GET 'https://api.veriko.mx/v1/finance/ceps/exports/{id}/download' \
-H 'Authorization: Bearer veriko_••••'Python example — coming soon.
JavaScript example — coming soon.
PHP example — coming soon.
| Status | Class | Description | Body |
|---|---|---|---|
| 200 | 2xx | ZIP archive containing CEP XML/PDF files and CSV + XLSX manifests. | Body without schema |
| 401 | 4xx | Authentication is required or the provided credentials are invalid. | ErrorResponse |
| 403 | 4xx | Insufficient permissions. Also email_verification_required: the account's email cannot receive mail and, until it is fixed or verified, only reading the profile, fixing the email, and logging out are allowed. | ErrorResponse |
| 404 | 4xx | export_not_found: The export does not exist or was requested by someone else. | ErrorResponse |
| 409 | 4xx | export_not_ready: The export is still in progress or failed. | ErrorResponse |
| 410 | 4xx | export_expired: The archive expired and was deleted. Request the export again. | ErrorResponse |
| 429 | 4xx | Rate limit exceeded ( rate_limit_exceeded: wait a few seconds). | RetryAfterError |
| Header | Type | Description |
|---|---|---|
Cache-Control | string | Disables intermediary caching of the download. |
Content-Disposition | string | Suggested filename for the download. |
Content-Length | integer | Exact size of the ZIP archive in bytes. |
Content-Type | string | |
X-Finance-Items | integer | Number of CEPs included in the ZIP archive. |
| Status | Code | Example |
|---|---|---|
| 401 | unauthorized | This request requires authentication. Envelope
|
| 403 | permission_denied | You do not have permission to access this resource. Envelope
|
| 429 | rate_limit_exceeded | You exceeded the request limit. Envelope
Response headers
|