What is a beneficiary?
In Veriko, we call a "beneficiary" any bank account that receives SPEI transfers. Beneficiaries may or may not be saved in Veriko. Although saving them is very useful, it has three concrete effects:
- Auto-fills the bank on future validations.
- Helps image-based validations (OCR) identify the
cuenta_beneficiariawhen it is masked or incomplete (common on some receipts). - Enables the account statements in Finance and improves organization.
The three beneficiary types
The account_type (beneficiary account type) is detected from the number of digits:
clabe— 18 digits. The bank is detected and derived automatically. Does not requirebank_codein the body.card— 16 digits. The bank is detected and derived automatically. Does not requirebank_code.phone— exactly 10 digits. A mobile number linked to a bank account. It does requirebank_code, and it is mandatory in the body because no public phone→bank mapping exists; the endpoint responds422 bank_code_required_for_phonewhenbank_codeis missing.
Beneficiaries and image-based validations (OCR)
When you call POST /v1/validate-ocr, the "beneficiary account" in the image may come incomplete or in the shape "••••5678" or "4111 •••• •••• 1111" (common on receipts from some banks); Veriko's lookup system uses the last visible digits and runs a search in this order:
- The request's
cuenta_beneficiariaparameter (not recommended): Provide the full receiving account of the transfer; the account extracted from the image will be ignored and the validation will use the one you specified. - User allow-list: Filters the user's active beneficiaries based on the digits obtained from the image in relation to the receiving (beneficiary) account.
Without registered beneficiaries a masked receipt may stay ambiguous and fail to resolve. That is why it is advisable to register the accounts in which you frequently receive payments.
Create and manage beneficiaries
POST /v1/beneficiaries: Create a beneficiary — Accepts an optionalalias.GET /v1/beneficiaries: List beneficiaries saved — With filters for archived ones.DELETE /v1/beneficiaries/{id}: Archive beneficiaries — So they stop appearing in the lists.PATCH /v1/beneficiaries/{id}: Edit beneficiary — To keep your catalog up to date.