Create person SPEI®
This operation allows you to register a new person in the SPEI® system.
HTTP Request
POST /clabe/person
Header Parameters
Header | Description |
---|---|
Authorization required | The Bearer token created in Get authorization Token |
Content-Type required | application/json |
Body Parameters
Parameter | Type | Pattern | Description |
---|---|---|---|
name required | string | 1-40 characters | Name of the person. |
surname required | string | 1-40 characters | First surname of the person. |
second_surname required | string | 1-40 characters | Second surname of the person. |
rfc_curp required | string | 10-13 o 18 characters | RFC o CURP of the person. |
account_reference required | string | Account reference associate. | |
birthdate required | Date | Format YYYY-MM-DD | Birthdate of the person. |
origin_country required | string | The country of origin of the person | |
email required | string | Email of the person | |
observations required | string | 0-255 characters | Additional information of the person. |
Example JSON Request:
{
"name": "Juan",
"surname": "Pérez",
"second_surname": "Gómez",
"rfc_curp": "XAXX010101000",
"account_reference": "REF123456",
"birthdate": "1990-01-01",
"origin_country": "México",
"email": "[email protected]",
"observations": "Sin observaciones."
}
Example JSON Response:
{
"success": true,
"code": 0,
"message": "Persona registrada exitosamente.",
"data": {
"spei_account": {
"id": "123456",
"name": "Juan",
"surname": "Pérez",
"second_surname": "Gómez",
"rfc_curp": "XAXX010101000",
"email": "[email protected]",
"account_reference": "REF123456",
"clabe": "012345678901234567",
"observations": "Sin observaciones.",
"type": {
"key": "PERSON",
"value": "Persona"
},
"status": {
"key": "ACTIVE",
"value": "Activo"
}
}
}
}