MagenMagen Docs

Pix key types

The Magen API accepts the 5 official Pix key types defined by Bacen. The pixType field indicates which type is being used, and the format of pixKey changes according to each one.

Available types

TypeDescriptionFormatExample
cpfHolder's CPF (individual)11 numeric digits, no formatting12345678901
cnpjHolder's CNPJ (legal entity)14 numeric digits, no formatting12345678901234
phoneMobile phoneE.164 standard with country code (55)5511987654321
emailEmail addressValid email formatuser@domain.com
evpRandom keyUUID v4 (issued by Bacen)123e4567-e89b-12d3-a456-426655440000

Validation

The API validates the pixKey format automatically according to the pixType provided. If the format does not match, it returns 400 Bad Request before sending the operation to Bacen.

Before making a withdrawal, we recommend looking up the key in DICT to validate that it exists and confirm the holder. See DICT lookup.

On this page