Skip to content
developers

Payout

Beneficiaries and validations

How zulu identifies a beneficiary, when it registers them, how it compares their name and which validations run before money moves.

There is no endpoint to create beneficiaries: the first withdrawal to a person or company registers them, and the following ones validate them.

Identification

A beneficiary is identified by their document type and number (documentType + documentNumber). It may be the balance holder itself (one of its accounts) or a third party.

entityTypeDocumentName
personCC, CE, PPT or passportfirstName and lastName (required), middleName and secondLastName
companyNIT, with or without its check digitcompanyName (required)
GET/v1/document-typesList document typesSandbox · coming soon

Registration and verification

  • If the beneficiary does not exist, they are registered with the data you send.
  • If they already exist, they must be verified and the name you send must match the registered one.
  • If the account is not registered for that beneficiary, it is registered.

How the name is compared

The name matches when it shares at least one word with the registered one, regardless of accents, case or order: "LUIS GOMEZ", "Gómez Luis" and "luis a. gómez" all match "Luis Gómez". Documents are compared by their digits, so a NIT with or without its check digit is the same.

Accounts

FieldWhat it is
bankCode4-digit ACH code (catalog). Needed for online ACH.
accountTypeahorros or corriente; savings/saving and checking are aliases.
accountNumberAccount number; leading zeros count.

Validations and their order

RuleOperations
Validation order: verified user (403) → origin entity (422) → verified beneficiary and name (422) → method → balance with the fee (422) → COP account (422) → bank and account type (422) → order and debit → dispatch. The first failure answers; nothing is recorded.createTransfer
HTTPerrorcauseDescription
400BadRequestApiErrorerror in struct validationOne or more fields fail their validation. values carries one message per field, keyed by its JSON path, naming the Go validator that failed.
403ForbiddenApiErrorthe user is not verifiedThe user behind the credentials is not verified. In the sandbox: the workspace "verified" setting.
422UnprocessableEntityApiErrorthe beneficiary with document "%s" is not verifiedThe beneficiary registered with that document is not verified. Test data: document 1111111111.
422UnprocessableEntityApiErrorthe name does not match the beneficiary registered with document "%s"The name sent shares no word with the registered beneficiary's (format, accents and order are tolerated). Test data: document 2222222222, registered as "Ana Pérez".
422UnprocessableEntityApiErrorbank with code "%s" is not supportedThe bankCode is not an available bank (see GET /v1/banks). Test data: 9999.
422UnprocessableEntityApiErroraccount type "%s" is not supportedUnsupported account type. Body validation stops it first (400), so in practice it does not appear.

Test the validations

FieldValueEffectOperations
destination.bankAccount.accountNumber0000000001The withdrawal goes out by ACH (IN_PROGRESS), reaches SENT and ends REJECTED; the debit is reversed and a webhook is sent for each change.createTransfergetTransactionadvanceTransaction
destination.bankAccount.accountNumber0000000002The ACH dispatch does not queue: the withdrawal continues as a manual payment and answers {status: IN_PROGRESS, method: MANUAL}.createTransfer
destination.breBKey.key@failbrebThe Bre-B transfer fails: the withdrawal is left for manual payment and answers {status: CREATED, method: MANUAL}, as in production.createTransfer
destination.documentNumber1111111111The beneficiary is registered but not verified: 422 the beneficiary with document "1111111111" is not verified.createTransfer
destination.documentNumber2222222222The beneficiary is already registered as "Ana Pérez". A name sharing a word (regardless of accents, case or order) passes; any other answers 422 the name does not match the beneficiary registered with document "2222222222".createTransfer
destination.bankAccount.bankCode9999The bank is not in the catalog: 422 bank with code "9999" is not supported.createTransfer

With document 1111111111 the beneficiary is not verified; with 2222222222 they are already registered as "Ana Pérez", so "Luis Gómez" answers 422 and "Ana María Pérez" passes.