GEThttps://api.veriko.mx/v1/finance/ceps/exports/{id}/download

Download the archive of a CEP export

Visibility
public
Auth
API key
Permission
finance.ceps.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 (with export_not_ready in the body).
  • If the archive expired (24 hours after becoming ready), it responds with an HTTP status 410 (with export_expired in the body). Request the export again.
  • If it does not exist or was requested by someone else, it responds with an HTTP status 404 (with export_not_found in the body).

While it has not expired, it can be downloaded as many times as needed.

Parameters
ParameterInTypeRequiredDescription
id*pathstring (uuid)required

Export UUID.

Request
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.

Response status codesGET /v1/finance/ceps/exports/{id}/download
StatusClassDescriptionBody
2002xx
ZIP archive containing CEP XML/PDF files and CSV + XLSX manifests.
Body without schema
4014xx
Authentication is required or the provided credentials are invalid.
ErrorResponse
4034xx
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
4044xx
export_not_found: The export does not exist or was requested by someone else.
ErrorResponse
4094xx
export_not_ready: The export is still in progress or failed.
ErrorResponse
4104xx
export_expired: The archive expired and was deleted. Request the export again.
ErrorResponse
4294xx
Rate limit exceeded (rate_limit_exceeded: wait a few seconds).
RetryAfterError
Response headers200
HeaderTypeDescription
Cache-Controlstring
Disables intermediary caching of the download.
Content-Dispositionstring
Suggested filename for the download.
Content-Lengthinteger
Exact size of the ZIP archive in bytes.
Content-Typestring
X-Finance-Itemsinteger
Number of CEPs included in the ZIP archive.
Errors from GET /v1/finance/ceps/exports/{id}/download
StatusCodeExample
401unauthorized

This request requires authentication.

Envelope
meta.request_id
c4d5e6f7a8b99b8a7f6e5d4c
403permission_denied

You do not have permission to access this resource.

Envelope
meta.request_id
d5e6f7a8b9c00c9b8a7f6e5d
429rate_limit_exceeded

You exceeded the request limit.

Envelope
meta.request_id
f7a8b9c0d1e22e1d0c9b8a7f
Response headers
  • Retry-After: integer — Seconds to wait before retrying. Matches the endpoint's rate-limit window (typically 60s for list endpoints, 1-5s for in-flight idempotent operations).
  • X-RateLimit-Limit: integer — Configured request cap for this bucket. It is emitted on every 429 and, on the authenticated API, also on successful responses, where it is the per-key cap of the account plan.
  • X-RateLimit-Remaining: integer — Requests remaining in the current window. Always 0 at the moment of the 429; on a successful response of the authenticated API it is what is left of the per-key cap.
  • X-RateLimit-Reset: integer — Absolute Unix epoch (seconds) when the window resets. Emitted on every 429, alongside Retry-After, and on successful responses of the authenticated API.