GEThttps://api.veriko.mx/v1/finance/statement

Monthly statement (PDF / XLSX / CSV / HTML)

Visibility
public
Auth
API key
Permission
finance.reports.create
How-to guide →

Generates the month's financial statement in four formats:

  • format=pdf (default): bank-statement-style PDF with portfolio summary, verdict distribution, top counterparties and banks, daily breakdown and up to 1,000 transactions in the appendix.
  • format=xlsx: workbook with 6 sheets (Resumen, Detalle diario, Top contrapartes, Top bancos, Veredicto, Verificaciones). The Verificaciones sheet carries the month's full history with no cap.
  • format=csv: CSV partitioned into [HEADER], [KPIS], [TRANSACTIONS] and [TOTALS] sections. The section order is stable, which is what makes parsing by marker possible.
  • format=html: same content as the PDF, served inline for printing from the browser.

Every variant returns the X-Finance-Folio header with the period's deterministic folio.

Parameters
ParameterInTypeRequiredDescription
formatquerystringoptional

Requested file format for the download. Accepted: pdf, xlsx, csv or html.

Default: pdf

e.g. pdf
month*querystringrequired

Statement month in YYYY-MM format.

e.g. 2026-04
user_idquerystring (uuid)optional

Administrators only — UUID of the user to query.

e.g. f47ac10b-58cc-4372-a567-0e02b2c3d479
Request
curl -X GET 'https://api.veriko.mx/v1/finance/statement' \
  -H 'Authorization: Bearer veriko_••••'

Python example — coming soon.

JavaScript example — coming soon.

PHP example — coming soon.

Response status codesGET /v1/finance/statement
StatusClassDescriptionBody
2002xx
Statement stream in the requested format.
Body without schema
4004xx
Invalid or missing month parameter
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
4294xx
Rate limit exceeded (rate_limit_exceeded: wait a few seconds).
RetryAfterError
5005xx
pdf_render_failed, xlsx_render_failed or csv_stream_failed: retry with another format.
ErrorResponse
Response headers200
HeaderTypeDescription
Cache-Controlstring
Disables intermediary caching of the download (deterministic folio, but sensitive content).
Content-Dispositionstring
Suggested filename for the download.
X-Finance-Foliostring
Deterministic folio for the period. The same user+month pair always yields the same folio.
X-Frame-Optionsstring
—
Errors from GET /v1/finance/statement
StatusCodeExample
400invalid_month

The month is missing or has an invalid format.

Envelope
meta.request_id
d5e6f7a8b9c11c9b8a7f6e5d
400invalid_user_id

The user identifier is not in the expected format.

Envelope
meta.request_id
cb95828f79db
401unauthorized

This request requires authentication.

Envelope
meta.request_id
c4d5e6f7a8b99b8a7f6e5d4c
403forbidden

You do not have permission to perform this action.

Envelope
meta.request_id
c8fdc002c480
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.
500csv_stream_failed

We could not generate the CSV file.

Envelope
meta.request_id
f5de1c117867
500pdf_render_failed

We couldn't generate the PDF. Try again.

Envelope
meta.request_id
a6d3fdff9389
500xlsx_render_failed

We could not generate the XLSX file.

Envelope
meta.request_id
d10749df15a7