跳到主要内容

查询 Pix 密钥

Request

ENDPOINT
/baas/pix/keys/PIX_KEY
MÉTODO
GET

路径参数

字段类型描述
pix_key *string需要查询的 PIX 密钥。
Pix 密钥类型

"pix_key" 可以是 CPF、CNPJ、电子邮件、手机号或随机密钥(UUID),格式如下:

CPF:11 位整数。

CNPJ:14 位整数。

电子邮件:包含至少一个"@"的文本。

手机号:包含以下内容的文本:"+55" + "手机区号" + "至少 8 位、至多 9 位的手机号码整数"。例如:"+5511987654321"。

随机密钥:UUID。

Response

STATUS
200
Response Body: 活跃密钥
{
"account_branch": "452",
"account_digit": "1",
"account_number": "370158",
"account_type": "checking_account",
"bank_code": 237,
"end_to_end_id": "E3240250220230404185631R0kjZnC6G",
"exists": true,
"financial_institution": "BCO BRADESCO S.A.",
"ispb": "60746948",
"masked_document_number": "***.141.85*-**",
"name": "Teste teste",
"pix_key": "teste@gmail.com",
"valid": true
}

STATUS
200
Response Body: 非活跃密钥
{
"exists": false,
"pix_key": "teste@gmail.com"
}
STATUS
422
Response Body: 密钥查询超时
{
"title": "Pix Key inquiry timeout",
"description": "Pix key inquiry timeout. Please try again.",
"translation": "Consulta de chave pix excedeu o tempo limite. Por favor tente novamente.",
"code": "PIX000069"
}
STATUS
422
Response Body: 查询 Pix 密钥时出错
{
"title": "Unprocessable Entity",
"description": "Error when querying pix key 12345678000190",
"translation": "Erro ao consultar chave pix 12345678000190",
"code": "PIX000077"
}
STATUS
429
Response Body: 达到请求速率限制
{
"title": "Rate limit reached",
"description": "Rate limit reached when checking key in Bacen",
"translation": "Limite de requisições atingido ao consultar chave no Bacen",
"code": "PIX000079"
}