To ensure compliance with local regulations in supported countries, the PagSeguro Payout API requires that each payee includes a valid document number. This document must follow strict formatting rules depending on the country and whether the payee is an individual or a legal entity.
The API automatically validates the payee.document.value
field based on the expected structure for the specified country and document type.
Supported Document Types
The table below outlines the accepted document types, their regular expressions (using ECMAScript / JavaScript syntax), and examples of valid values for Brazil and Colombia:
Document Type | Validation Pattern (RegEx) | Example | Country | Description |
---|---|---|---|---|
CPF | ^[0-9]{11}$ | 12345678901 | BR | Individual tax ID (Brazil) |
CNPJ | ^[0-9]{14}$ | 12345678901234 | BR | Legal entity tax ID (Brazil) |
CC | ^[0-9]{10}$ | 1234567890 | CO | Cédula de Ciudadanía (Colombia) |
CE | ^[A-Za-z]{1}[0-9]{6}$ | A123456 | CO | Cédula de Extranjería (Colombia) |
TI | ^3[0-9]{9}$ | 3123456789 | CO | Tarjeta de Identidad (Colombia) |
NIT | ^[0-9]{8,10}$ | 123456789 | CO | Legal entity tax ID (Colombia) |
Legal Entities Must Use CNPJ or NIT
For business accounts:
- Use
CNPJ
in Brazil.- Use
NIT
in Colombia.These values are required to identify legal entities correctly.