Document Types

When creating a session, if you use one of the structures payer, buyer, or shipping, you must use the document_type attribute to send the following codes, depending on the country:

Global

The following document types are applicable globally and can be used regardless of the country:

Code
Document Type
Validation Rule
PPN
Passport
/^[a-zA-Z0-9_]{4,16}$/
TAX
TAX
/^[a-zA-Z0-9_]{4,16}$/
LIC
LIC
/^[a-zA-Z0-9_]{4,16}$/

United States (US) and PUERTO RICO (PR)

Code
Document Type
Validation Rule
SSN
US Social Security Number
/^\d{9}$/
EIN
US Federal Tax ID
/^\d{9}$/

Colombia (CO)

Code
Document Type
Validation Rule
CC
Citizenship ID
/^[1-9][0-9]{3,9}$/
CE
Foreigner ID
/^([a-zA-Z]{1,5})?[1-9][0-9]{3,7}$/
TI
Identity Card
/^[1-9][0-9]{4,11}$/
NIT
Tax Identification Number
/^[1-9]\d{6,9}$/
RUT
Single Tax Registry
/^[1-9]\d{6,9}$/

Ecuador (EC)

Code
Document Type
Validation Rule
CI
National Identity Card
/^\d{10}$/
RUC
Unique Taxpayer Registry
/^\d{13}$/

Costa Rica (CR)

Code
Document Type
Validation Rule
CRCPF
Personal Physical ID
/^[1-9][0-9]{8}$/
CPJ
Personal Legal ID
/^[1-9][0-9]{9}$/
DIMEX
DIMEX - Immigration and Foreigner ID
/^[1-9][0-9]{10,11}$/
DIDI
DIDI - Diplomatic Identification Document
/^[1-9][0-9]{10,11}$/

Chile (CL)

Code
Document Type
Validation Rule
CLRUT
Personal Physical ID
/^(\d{1,2}(?:\.?\d{1,3}){2}-[\dkK])$/

Panama (PA)

Code
Document Type
Validation Rule
CIP
Personal Identity Card
/^(N,E,PE\d+)?\d{2,6}\d{2,6}$/

Brazil (BR)

Code
Document Type
Validation Rule
CPF
Cadastro de Pessoas Físicas
/^\d{10,11}$/
CNPJ
Cadastro Nacional da Pessoa Jurídica
/^\w{14}$/

Peru (PE)

Code
Document Type
Validation Rule
DNI
National Identity Document
/^\d{8}$/
RUC
Unique Taxpayer Registry
/^\d{13,14}$/

Mexico (MX)

Code
Document Type
Validation Rule
RFC
Federal Taxpayer Registry
/^\w{12,13}$/

Spain (ES)

Code
Document Type
Validation Rule
NIF
Tax Identification Number
/^(\d{7,8})([A-HJ-NP-TV-Z])$/

Argentina (AR)

Code
Document Type
Validation Rule
CUIT
Unique Tax Identification Code
/^(\d{7,8})([A-HJ-NP-TV-Z])$/