Skip to main content

Creating a PIX key for an Alias

Request

ENDPOINT
/account/ACCOUNT_KEY/alias/ALIAS_KEY/pix_key
METHOD
POST
Request Body - 'random_key' type key
{
"request_control_key": "3d3d0083-ac71-46f0-8a90-c00a157a4893",
"pix_key_type": "random_key"
}
Request Body - CPF type key
{
"request_control_key": "3d3d0083-ac71-46f0-8a90-c00a157a4893",
"pix_key_type": "cpf",
"pix_key": "67824450007"
}

Request Path Params

FieldTypeDescriptionCharacters
account_keyuuidv4Unique account key.36
alias_keyuuidv4Unique alias key.36

Request Body Params

FieldTypeDescriptionMax. Characters
request_control_key *stringUUID4 for querying purposes about the made request.36
pix_key_type *stringDefinition of the type of key to be created. Possible values: 'cpf', 'cnpj', 'email', 'phone_number', 'random_key'10
pix_keystringPIX key value to be created. Should not be sent for 'random_key' type cases.10
PIX Key Types

The pix_key sent in the request can be a CPF, CNPJ, email or mobile phone, following these formats:

CPF: Integer number with 11 digits.

CNPJ: Integer number with 14 digits.

Email: Text containing at least one "@".

Mobile phone: Text containing the following values: "+55" + "mobile area code" + "Mobile phone integer number with minimum 8 and maximum 9 digits". Ex: "+5511987654321".

Response

STATUS
200
Response Body

{
"pix_key": "asra-4cd6-4c04-9651-1c0a2c30d7dd",
"pix_key_status": "active",
"created_at": "2021-12-06T21:16:11.001Z",
"pix_key_type": "random_key"
}

Response Body Params

FieldTypeDescriptionMax. Characters
pix_keystringCreated PIX key value.200
pix_key_statusstringPIX key activation status. Can be "active","inactive" or "pending"8
created_atdatetime ZuluRequest creation date.20
PIX Key Types

The pix_key sent in the request response can be a CPF, CNPJ, email, mobile phone or random key, following these formats:

CPF: Integer number with 11 digits.

CNPJ: Integer number with 14 digits.

Email: Text containing at least one "@".

Mobile phone: Text containing the following values: "+55" + "mobile area code" + "Mobile phone integer number with minimum 8 and maximum 9 digits". Ex: "+5511987654321".

Random key: UUIDV4.

STATUS
4XX
Response Body: Error
{
"title": "titulo",
"description": "description in English",
"translation": "descrição em portugues",
"code": "codigo",
"extra_fields": {}
}
HTTP CodeQI Code
code
Title
title
Description (eng)
Description
Description (ptbr)
translation
403PIX000080Not enough permissionThe selected agent is not an Pix Indirect ParticipantO agente selecionado não é um Participante Indireto do Pix
404PIX000082Alias not foundAlias {alias_key} not foundAlias {alias_key} não encontrado