How to get document types by country - Subscriptions - Mercado Pago Developers

Identification types

The types of documents accepted when making a payment through Mercado Pago vary by country.

Important
Keep in mind that this information does not apply to Mexico.

Get the document types

You can get the document types accepted as follows:

GET /v1/identification_types

          
    <?php
        require ('mercadopago.php');
        $mp = new MP ('ACCESS_TOKEN');
        $identification_types = $mp->get('/v1/identification_types');
        print_r ($identification_types);
    ?>

        
          
curl -X GET \
-H "Content-Type: application/json" \
'https://api.mercadopago.com/v1/identification_types?public_key=PUBLIC_KEY'

        

Response

          
    [
        {
            "id": "DNI",
            "name": "DNI",
            "type": "number",
            "min_length": 7,
            "max_length": 8
          },
          ...
      ]

        

The results included in this response will coincide with the country associated with your Mercado Pago account. For more information about this feature and its attributes, go to API reference.

Identification types by country

The document types accepted by country are listed below.

Argentina

Identification typeID
Documento Nacional de IdentidadDNI
Cédula de IdentidadCI
Libreta CívicaLC
Libreta de EnrolamientoLE
OthersOtro

Brazil

Identification typeID
Cadastro de Pessoas FísicasCPF
Cadastro Nacional da Pessoa JurídicaCNPJ

Chile

Identification typeID
Rol Único TributarioRUT
OthersOtro

Colombia

Identification typeID
Cédula de CiudadaníaCC
Cédula de ExtranjeriaCE
Número de Identificación TributariaNIT
OthersOtro

Peru

Identification typeID
Documento Nacional de IdentidadDNI
Carné de ExtranjeríaCE
Registro Único de ContribuyentesRUC

Uruguay

Identification typeID
Cédula de IdentidadCI
OthersOtro