Get document typeshttps://api.mercadopago.com/v1/identification_types
Consult all the types of documents available by country and get a list with the ID and details of each one.
GET
Request parameters
Header
Authorization
Access Token obtained through the developer panel. Must be sent in all requests.string
REQUIRED
Response parameters
id
Identification type id.string
name
Identification type name.string
type
Identification number data type.string
min_length
Identification number min length.number
Errors
400Error
1001
Public_key not found.
401Error
1000
The credentials are required.
404Error
1004
Identification types not found.
Request
curl -X GET \
'https://api.mercadopago.com/v1/identification_types'\
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer APP_USR-8*********932064-12*********edf6d3c99*********2236c703f*********668' \
Response
[
{
"id": "CPF",
"name": "CPF",
"type": "number",
"min_length": 11,
"max_length": 11
}
]