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

Counterparty summary (CSV / XLSX / PDF / preview)

Audience
public
Auth
API key
Permission
finance:generate_self
How-to guide →

Groups the month's verifications by beneficiary account and bank, with totals, valid count, total amount, and first/last-seen dates. 7 columns: Cuenta beneficiaria, Banco, Verificaciones, Válidas, Monto total, Primera, Última.

  • format=csv (default, text/csv) / format=xlsx (application/vnd.openxmlformats-officedocument.spreadsheetml.sheet): flat list.
  • format=pdf (application/pdf): ledger with a Totales row at the bottom (Verificaciones, Válidas, Monto). Capped at 1000 rows.
  • format=preview (application/json): first 20 rows as FinancePreviewResponse.

What every export shares — the download header, what happens when one fails midway, and the caps — is in exports and formats.

Parameters
ParameterInTypeRequiredDescription
formatquerystringoptional

Output format. csv and xlsx are spreadsheet data; pdf is the document ready to file or send; preview returns the same data as JSON, to render on screen without downloading anything.

Default: csv

e.g. csv
limitqueryintegeroptional

Trims the number of rows when the output is csv or xlsx. It only lowers the cap: a value above 100,000, or below 1, leaves it as it was. It does not affect the PDF, which carries its own 1,000-row cap.

e.g. 500
month*querystringrequired

Month to report in YYYY-MM format.

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

Admins with finance:generate_all only. UUID of the user to query.

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

Python example — coming soon.

JavaScript example — coming soon.

PHP example — coming soon.

Response 200FinancePreviewResponse — CSV/XLSX/PDF stream, or JSON envelope in preview mode.
FieldTypeDescription
dataobject

Main response payload. Shape varies by endpoint (object, array, or JSON:API envelope with type, id, attributes).

typestring

JSON:API resource type (always finance_preview).

e.g. finance_preview
attributesobject

Report preview fields.

reportstring

Report type: monthly — monthly statement; counterparties — top counterparties; by-bank — bank breakdown; accounting — accounting ledger.

e.g. monthly
monthstring

Report month in YYYY-MM format.

e.g. 2026-04
headersarray

CSV column names, in the same order as the values in rows.

e.g. ["Fecha","Monto","Clave de rastreo","Estado"]
rowsarray (items: ?–20)

First 20 data rows of the report (maximum).

e.g. [["2026-04-15","15000.50","MXBA20260415001234","valid"]]
metaobject

Response metadata including API version, route prefix, unique request identifier, and the server timestamp in UTC.

versionstring

API version that processed the request.

e.g. 1.47.0
api_versionstring

API route prefix version (e.g. v1).

e.g. v1
request_idstring

Unique request identifier (hex).

e.g. a1b2c3d4e5f6
datetimeobject

Companion descriptor present in every response's meta block (and in outgoing webhook payloads). Lets clients assert the timezone contract without re-reading the spec.

e.g. {"timezone":"UTC","format":"ISO 8601"}
timezone*string

Always UTC — the canonical timezone for every datetime field in the body.

e.g. UTC
format*string

Always ISO 8601 — explicit Z suffix on every datetime.

e.g. ISO 8601
linksobject

Pagination or related links, present only when the endpoint returns a paginated collection.

Response status codesGET /v1/finance/counterparties
StatusClassDescriptionBody
2002xxCSV/XLSX/PDF stream, or JSON envelope in preview mode.FinancePreviewResponse
4004xxInvalid or missing month parameterErrorResponse
4014xxAuthentication is required or the provided credentials are invalid.ErrorResponse
4034xxInsufficient permissions.ErrorResponse
5005xxpdf_render_failed — PDF renderer crashed. Try CSV or XLSX.ErrorResponse
Response headers200
HeaderTypeDescription
Cache-ControlstringDisables intermediary caching of the download (does not apply to preview mode).
Content-DispositionstringSuggested filename (does not apply in preview mode).
Errors from GET /v1/finance/counterparties
StatusCodeExample
400invalid_month

'month' is required and must be YYYY-MM.

Envelope
meta.request_id
d5e6f7a8b9c1
401unauthorized

Invalid or missing authentication credentials.

Envelope
meta.request_id
c4d5e6f7a8b9
403forbidden

You do not have permission to access this resource.

Envelope
meta.request_id
d5e6f7a8b9c0