Skip to main content

Professional Card

Description​

A solution for the validation of professional cards (SEP), obtain the information by entering the number of the professional card or the name of the person.

HTTP method POST​

Endpoint​

https://api.msla-id.com/experience-idv-professionalassociations-api-v1/api/idv-govcheck/v1/mx-identity/professional-cards
[SANDBOX Environment]

For testing purposes, use the base domain: apidev.msla-id.com

info

Before proceeding, make sure you have your jwt token, if you don't, check the login documentation.

Request header parameter​

NAMEREQUIREDTYPEDESCRIPTION
Authorization✅stringbearer jwt token

Body request (JSON)​

All fields are optional, but at least one of them must be sent. An empty body (or only blank values) returns 400 IDV-2002.

NAMEREQUIREDTYPEDESCRIPTIONEXAMPLE
professionalId OptionalstringProfessional card number issued by the SEP1234567
firstName OptionalstringFirst name(s) of the personJUAN CARLOS
paternalSurname OptionalstringPaternal surnamePEREZ
maternalSurname OptionalstringMaternal surnameLOPEZ
{
"professionalId": "1234567"
}

Status code responses​

CodeDescription
200 OK. Returns data.validationCode and data.professionalCards.
400 IDV-2002 Bad request - You have to add at least one search parameter
401 Unauthorized (empty body)
404 IDV-1002 Data not found
500 IDV-1008 Internal server error
504 IDV-1100 Gateway timeout

The full documentation error codes can be found here.

Response 200 status code​

{
"traceId": "123456789010101",
"timestamp": "yyyy-mm-dd HH:MM:SS",
"data": {
"validationCode": "bl1788324399.0171921",
"professionalCards": [
{
"cardNumber": "1234567",
"institution": "UNIVERSIDAD NACIONAL AUTONOMA DE MEXICO",
"firstName": "JUAN CARLOS",
"paternalSurname": "PEREZ",
"maternalSurname": "LOPEZ",
"sex": "M",
"type": "C1",
"title": "LICENCIADO EN DERECHO"
}
]
}
}

A search by a common name can return many professional cards (there is no result limit). When you know the card number, search by professionalId.

Response fields​

FIELDTYPEDESCRIPTION
data.validationCodestringUnique identifier of the query. Keep it for traceability.
data.professionalCards[].cardNumberstringProfessional card number.
data.professionalCards[].institutionstringInstitution that issued the degree.
data.professionalCards[].firstNamestringFirst name(s) of the holder.
data.professionalCards[].paternalSurnamestringPaternal surname of the holder.
data.professionalCards[].maternalSurnamestringMaternal surname of the holder. Can be null.
data.professionalCards[].sexstringSex of the holder: M (male) or F (female).
data.professionalCards[].typestringType of professional card.
data.professionalCards[].titlestringProfessional title.

Response 400 status code​

{
"traceId": "542fc743fffda052",
"timestamp": "yyyy-mm-dd HH:MM:SS",
"code": "IDV-2002",
"message": "Bad request - You have to add at least one search parameter",
"data": null
}

Response 401 status code​

The response has no body (empty): the token is validated by the platform before reaching the service.

Response 404 status code​

{
"traceId": "43a20f33d4e8730d",
"timestamp": "yyyy-mm-dd HH:MM:SS",
"code": "IDV-1002",
"message": "Data not found.",
"data": null
}

Response 500 status code​

{
"traceId": "43a20f33d4e8730d",
"timestamp": "yyyy-mm-dd HH:MM:SS",
"code": "IDV-1008",
"message": "Error in the source of origin, please contact an administration.",
"data": null
}

Response 504 status code​

{
"traceId": "43a20f33d4e8730d",
"timestamp": "yyyy-mm-dd HH:MM:SS",
"code": "IDV-1100",
"message": "Gateway Timeout",
"data": null
}