This section outlines the specifications for the document field used in the payout API, covering both Brazil and Colombia. Each document type has a specific format that must be validated using regular expressions (regex) in the ECMAScript (JavaScript) standard.
The table below presents the supported document types, their corresponding validation patterns, and examples of valid data by country:
Key type | Regular Expression (ECMAScript (JavaScript)) | Example | Country |
---|---|---|---|
CPF | ^[0-9]{11}$ | 12345678901 | BR |
CNPJ | ^[0-9]{14}$ | 12345678901234 | BR |
CC | ^[0-9]{10}$ | 1234567890 | CO |
CE | ^[A-Za-z]{1}[0-9]{6}$ | 1234567 | CO |
TI | ^3[0-9]{9}$ | 123456 | CO |
NIT | ^[0-9]{8,10}$ | 12345678 | CO |
CNPJ and NIT for legal entities
CNPJ in Brazil and NIT in Colombia are mandatory parameters for legal entities.