Skip to main content

Get a cardholder

This operation query a cardholder using several param filters. If several params are used to search, they will be concatenated with AND operator. At least one param filter should be specified.

HTTP Request

  • GET /cardholders

Header Parameters

HeaderDescription
Authorization 
required
The Bearer token created in
Get authorization Token
Content-Type 
required
application/json

Query Parameters

ParámetroTipoPatrónDescripción
id 
optional
stringUUIDThe card_id to search.
rfc
optional
string10-13 charactersThe rfc to search.
curp 
optional
string18 charactersThe curp to search.
email
optional
string5-100 charactersThe email to search.
primary_phone
optional
string10 digitsThe primary_phone to search.
mobile_phone
opcional
string10 digitsThe mobile to search.

Example JSON Request:

GET /cardholders?id=ec123456-1qq2-1234-tt5g-8873fe52bf54

Example JSON Response:

{
"success": true,
"code": 0,
"message": "OK",
"data": {
"cardholder": {
"id": "ec123456-1qq2-1234-tt5g-8873fe52bf54",
"first_name": "John",
"second_name": "Doe",
"surname": "González",
"second_surname": "Pérez",
"rfc": "XAXX010101000",
"curp": "XEXX010101HNEXXXA4",
"email": "[email protected]",
"primary_phone": "5555555555",
"mobile_phone": "5555555555",
"address": {
"street": "Av. Siempre",
"external_street_number": "#12",
"internal_street_number": "Lt3.",
"suburb": "Nápoles",
"township": "Benito Juárez",
"city": "Ciudad de México",
"state": "CDMX",
"postal_code": "55120",
"country": "484"
},
"birthdate": "1995-09-22",
"gender": "M",
"gross_monthly_income": 20000,
"net_monthly_income": 20000,
"observations": "",
"has_kids": true,
"marital_status": "CASADO",
"external_id": "123",
"accounts": [
{
"id": "cca4c4a5-504e-4fa4-bafc-a947bcf77f4e",
"account_number": 555555555,
"creation_date": "2020-11-25T18:00:00.000-06:00",
"activation_date": null,
"assigned_by": "161549d5-644b-4df2-bfc8-4b3df2e6a327",
"status": "ACTIVE",
"document": {
"type": "INE",
"number": "321321321321321"
},
"cards": [
{
"id": "12123214-2e34-4fff-844f-321654987123",
"last_four": "1234",
"assignation_date": "2020-11-26T02:26:32.066-06:00",
"status": "ACTIVE",
"assigned_by": {
"id": "161549d5-644b-4df2-bfc8-4b3df2e6a327",
"alias": "API_KEY",
"name": "WS_NAME",
"description": ""
}
}
]
}
]
}
}
}