| Param name | Description |
|---|---|
|
beneficiary
required |
Beneficiary attributes Validations:
|
|
beneficiary[name]
required |
First name Validations:
|
|
beneficiary[lastname]
required |
Last name Validations:
|
|
beneficiary[matriname]
optional |
Second last name Validations:
|
|
beneficiary[dob]
optional |
Date of birth (YYYY-MM-DD) Validations:
|
|
beneficiary[email]
optional |
Email address Validations:
|
|
beneficiary[nationality]
optional |
Nationality key (e.g. mexican) Validations:
|
|
beneficiary[national_id_number]
optional |
CURP or national ID number Validations:
|
|
beneficiary[phone_number]
optional |
Phone number Validations:
|
|
beneficiary[phone_number_extension]
optional |
Phone extension Validations:
|
|
beneficiary[mobile_number]
optional |
Mobile number Validations:
|
|
beneficiary[investor_id]
required |
Associated investor UUID Validations:
|
|
beneficiary[kinship]
optional |
Kinship relationship (e.g. spouse, child, parent) Validations:
|
|
beneficiary[street]
optional |
Street name Validations:
|
|
beneficiary[street_number]
optional |
Street number Validations:
|
|
beneficiary[street_number_internal]
optional |
Interior unit number Validations:
|
|
beneficiary[zip_code]
optional |
ZIP / postal code Validations:
|
|
beneficiary[suburb]
optional |
Suburb / neighborhood Validations:
|
|
beneficiary[city]
optional |
City Validations:
|
|
beneficiary[state]
optional |
State / province Validations:
|
|
beneficiary[country]
optional |
Country code (e.g. MEX) Validations:
|
# Request body:
{
'beneficiary': {
'name': 'Juan',
'lastname': 'Perez',
'matriname': 'Torres',
'dob': '1985-06-20',
'email': 'ejemplo@correo.com',
'nationality': 'mexican',
'phone_number': '5512345678',
'mobile_number': '5598765432',
'investor_id': 'investor-uuid',
'kinship': 'spouse',
'street': 'Av. Insurgentes Sur',
'street_number': '453',
'zip_code': '06600',
'suburb': 'Hipódromo',
'city': 'Ciudad de México',
'state': 'CDMX',
'country': 'MEX'
}
}
# Response (201 Created): same structure as GET /beneficiaries/:id
| Code | Description |
|---|---|
| 400 | Bad Request |
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Not Found |
| 500 | Internal Server Error |