This section provides the Beneficiary endpoints required to manage and operate the full lifecycle of resources within the ViaBlocks platform.
These endpoints are designed for secure, auditable, and scalable server-to-server integrations, and support core business operations and compliance workflows.
Creates a new beneficiary (recipient) associated with a sender.
Registers a new beneficiary in the system, linking them to a sender. If a beneficiary with the same full name already exists for that sender, the existing record is returned instead of creating a duplicate.
- Validates the request fields
- Checks if a beneficiary with the same name already exists for the sender
- If new, creates the beneficiary with a unique UUID
- Returns the beneficiary UUID for use in transaction creation
- A beneficiary can be shared across multiple senders
- The
senderUuidfield identifies which sender this beneficiary belongs to - If the beneficiary already exists, the existing UUID is returned
Requires x-client-id and x-secret-key headers.
UUID of the beneficiary to update.
Error codes: required=400001, type=400002, minLength=400003, maxLength=400004
Beneficiary's given name.
Error codes: type=400002, minLength=400003, maxLength=400004
Beneficiary's middle name.
Error codes: type=400002, minLength=400003, maxLength=400004
Beneficiary's primary family name.
Error codes: type=400002, minLength=400003, maxLength=400004
Beneficiary's second family name.
Error codes: type=400002, minLength=400003, maxLength=400004
Beneficiary's phone number without country code.
Error codes: type=400002, minLength=400003, maxLength=400004
International dialing code.
Error codes: type=400002, minLength=400003, maxLength=400004
Beneficiary's email.
Error codes: type=400002, minLength=400003, maxLength=400004, format=400005
Beneficiary address.
Error codes: type=400002, minLength=400003, maxLength=400004
Secondary address line.
Error codes: type=400002, minLength=400003, maxLength=400004
City of residence.
Error codes: type=400002, minLength=400003, maxLength=400004
Country (ISO 3).
Error codes: type=400002, minLength=400003, maxLength=400004
ZIP code.
Error codes: type=400002, minLength=400003, maxLength=400004
Relationship between sender and beneficiary.
Error codes: type=400002, minLength=400003, maxLength=400004
Type of identification document of the beneficiary.
You can check the types of documents available according to the beneficiary's country in our catalogs API: Catalogs Endpoint Identifications: GET /catalogs/countries/{deliveryCountryISO}/identifications
Error codes: type=400002, minLength=400003, maxLength=400004
Identification document number of the beneficiary.
Error codes: type=400002, minLength=400003, maxLength=400004
Human-readable description of the identification document.
Error codes: type=400002, minLength=400003, maxLength=400004
Expiration date of the beneficiary's identification document.
Format: YYYY-MM-DD
Error codes: type=400002, minLength=400003, maxLength=400004, format=400005
curl -i -X POST \
https://sandbox-viablocks.viamericas.io/beneficiary \
-H 'Content-Type: application/json' \
-H 'x-client-id: string' \
-H 'x-secret-key: string' \
-d '{
"senderUuid": "4ed19e29-5a6a-433d-908d-23377fabb617",
"firstName": "ANGEL",
"middleName": "",
"lastName": "RESTADO",
"secondLastName": "",
"phone": "3057118816",
"phoneCountryCode": "+1",
"email": "angel@example.com",
"addressStreet": "1450 Brickell Avenue Apt 2908, Miami, FL 33131, USA",
"addressState": "US-FL",
"addressCity": "MIAMI",
"addressCountry": "USA",
"addressZipCode": "33131",
"relationShip": "Family"
}'{ "status": "success", "message": "Beneficiary created successfully", "uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890" }