GEThttps://api.veriko.mx/v1/beneficiaries/export

Export beneficiaries as CSV

Visibility
public
Auth
API key
Permission
beneficiaries.records.read
How-to guide →

Downloads the beneficiary accounts of the authenticated account as a file, under the same with_archived filter as GET /v1/beneficiaries.

The download format is chosen with ?format (csv by default, xlsx as the alternative). The row cap is 100,000, and ?limit asks for fewer, never more.

Account numbers come out masked, except the CLABE: a card is exported as 4111 •••• •••• 1111 and a phone as ••••5678; the CLABE is exported in full. The criterion and the other masked surfaces are covered in data masking.

Parameters
ParameterInTypeRequiredDescription
formatquerystringoptional

Output format. csv by default; xlsx produces a spreadsheet. Any other value is served as csv.

Default: csv

e.g. csv
limitqueryintegeroptional

Trims the number of rows in the file. It only lowers the cap: a value above 100,000, or below 1, leaves the default cap in place.

e.g. 500
with_archivedquerystringoptional

Archived filter: empty or omitted = all; 0 = active only; 1 = archived only. Same contract as GET /v1/beneficiaries.

e.g. 0
Request
curl -X GET 'https://api.veriko.mx/v1/beneficiaries/export' \
  -H 'Authorization: Bearer veriko_••••'

Python example — coming soon.

JavaScript example — coming soon.

PHP example — coming soon.

Response status codesGET /v1/beneficiaries/export
StatusClassDescriptionBody
2002xx
File with the beneficiary list per the requested filter and format.
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
4294xx
Rate limit exceeded (rate_limit_exceeded: wait a few seconds).
RetryAfterError
Response headers200
HeaderTypeDescription
Content-Dispositionstring
Suggested filename, derived from the brand and the export date.
Content-Typestring
Varies by ?format. For CSV: text/csv; charset=UTF-8 with a UTF-8 BOM at the start of the body.
Errors from GET /v1/beneficiaries/export
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.