GEThttps://api.veriko.mx/v1/validations/{id}/cep

Download the official CEP

Visibility
public
Auth
API key
Permission
validations.cep.read
How-to guide →

Downloads the Electronic Payment Receipt (CEP) issued by Banxico for a validation with a valid verdict, or returned when the CEP was downloaded before the return was known.

The default format is xml; format=pdf requests the document as a PDF.

If the receipt, or the requested format, is not available, it responds with an HTTP status 404 (with cep_not_available in the body).

Parameters
ParameterInTypeRequiredDescription
id*pathstring (uuid)required

Validation UUID.

formatquerystringoptional

Certificate format: xml (default) or pdf.

Default: xml

e.g. xml
Request
curl -X GET 'https://api.veriko.mx/v1/validations/{id}/cep' \
  -H 'Authorization: Bearer veriko_••••'

Python example — coming soon.

JavaScript example — coming soon.

PHP example — coming soon.

Response status codesGET /v1/validations/{id}/cep
StatusClassDescriptionBody
2002xx
CEP certificate file. Content-Type is application/xml or application/pdf based on the requested format.
Body without schema
4004xx
Format outside the allowlist (invalid_export_format).
ErrorResponse
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
Validation not found (not_found) or the CEP is not available for this validation (cep_not_available). The latter code is returned when banxico_status is neither valid nor returned or the requested file is missing.
ErrorResponse
4104xx
The validation was purged and this resource no longer exists (validation_purged).
ErrorResponse
4224xx
Invalid UUID in path (invalid_uuid).
ErrorResponse
4294xx
Rate limit exceeded (rate_limit_exceeded: wait a few seconds).
RetryAfterError
Response headers200
HeaderTypeDescription
Content-Dispositionstring
Download name in the CEP-{validation_id}.{ext} format.
Errors from GET /v1/validations/{id}/cep
StatusCodeExample
400invalid_export_format

The CEP format must be xml or pdf.

Envelope
meta.request_id
a061f7880480
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
404not_found

We could not find what you requested.

Envelope
meta.request_id
ad2622e2ab63
410validation_purged

This validation was permanently deleted.

Envelope
meta.request_id
1a2b3c4d5e6ff6e5d4c3b2a1
422validation_error

Some data needs fixing.

Envelope
meta.request_id
b5f03e9ca2a1
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.