跳到主要内容

Pix

发起 Pix 交易

Request

ENDPOINT
/account/ACCOUNT_KEY/pix_transfer
MÉTODO
POST

路径参数

字段类型描述字符数
account_keyuuidv4账户唯一标识密钥。36
Request Body: 通过 Pix 密钥转账
{
"request_control_key": "b6804f32-101e-4702-8fbc-c2dbc4c2caec",
"pix_transfer_type": "key",
"target_pix_key": "target_pix_key@email.com",
"transaction_amount": 500.65,
"end_to_end_id": "E73856642202309201429bZKfklNlbwu",
"pix_message": "Ola Mundo"
}

Body Params

字段类型描述字符数
request_control_key *uuidv4客户请求唯一标识密钥,格式为 uuid v4。36
pix_transfer_type *enumerator要执行的 Pix 类型。对于密钥转账,应为 key"key"
target_pix_key *string接收交易的账户 Pix 密钥。100
transaction_amount *number转账金额。10
end_to_end_id *stringPix 交易在 SPI(即时支付系统)内的幂等键。此密钥在 Pix 密钥查询中返回。仅当 pix_transfer_typekeystatic_qr_codedynamic_qr_code 时才应发送。32
pix_messagestring随 Pix 转账发送的消息。140
注意

查询使用的 end_to_end_id 必须是以将发起转账的账户名义查询的!

注意

一个 end_to_end_id 只能用于一笔转账,无论该转账是否成功。

Response

STATUS
201
Response Body: 转账已发送
{
"request_control_key": "b6804f32-101e-4702-8fbc-c2dbc4c2caec",
"pix_transfer_key": "8cb70dea-9fb0-4a68-9572-99a72849c8d6",
"pix_transfer_status": "sent",
"created_at": "2021-10-22T20:30:23.459Z"
}
STATUS
202
Response Body: 转账待处理
{
"request_control_key": "b6804f32-101e-4702-8fbc-c2dbc4c2caec",
"pix_transfer_key": "8cb70dea-9fb0-4a68-9572-99a72849c8d6",
"pix_transfer_status": "pending",
"created_at": "2021-10-22T20:30:23.459Z"
}
说明

若返回 HTTP Status 202pix_transfer_status 值为 pending,则不应重试 Pix 请求。

该转账将被重新处理。需通过查询 Pix 转账验证转账状态。

STATUS
4xx
Response Body: 转账已拒绝
{
"title": "titulo",
"description": "description in English",
"translation": "descrição em portugues",
"code": "codigo",
"extra_fields": {
"pix_transfer_data": {
"request_control_key": "b6804f32-101e-4702-8fbc-c2dbc4c2caec",
"pix_transfer_key": "8cb70dea-9fb0-4a68-9572-99a72849c8d6",
"pix_transfer_status": "rejected",
"created_at": "2021-10-22T20:30:23.459Z"
}
}
}
STATUS
4xx
Response Body: 错误
{
"title": "titulo",
"description": "description in English",
"translation": "descrição em portugues",
"code": "codigo",
"extra_fields": {}
}
HTTP 状态码
status
QI 代码
code
标题
title
英文描述
description
葡语描述
translation
400QIT000001Bad RequestSchema ErrorErro de Schema
406PXT000103request_control_key must be a valid uuid v4 stringrequest_control_key was not accepted for not being a valid uuid v4 stringrequest_control_key não foi aceito por não ser uma palavra uuid v4 válida
400PXT000048Bad RequestEmoji not allowed in pix message.Emoji não é permitido na mensagem pix.
400PXT000104Invalid Transaction AmountTransaction amount of {transaction_amount} is not valid. It must be a positive value with at maximum 2 decimal placesO valor de transação {transaction_amount} não é válido. Deve ser um valor positivo com no máximo duas casas decimais
404PXT000004Account not foundAccount not found for: {account_datum}Conta não encontrada para: {account_datum}
400PXT000003Account is ClosedAccount {account_key} is closed.Conta {account_key} está fechada.
422PXT000092Invalid Account TypePix is not yet implemented for non-checking or non-escrow account typesTransações Pix não estão implementadas para conta que não sejam escrow ou livres
403PIT000001User is not allowed to do this transactionUsuário não tem autorização para fazer essa transação
400PXT000010Account is BlockedAccount {account_key} is blocked.Conta {account_key} está bloqueada.
400PIT000003Bad RequestInsufficient account balance for transfer and fee amount.Saldo de conta insuficiente para a transferência e a taxa.
400PXT000118Requester is not Pix ParticipantThe requester sent an alias key but is not a indirect pix participantO requisitante enviou uma alias key no entanto não é um participante do pix indireto
404PXT000120Alias sent not foundAlias key attached to this account not foundAlias key vinculada à conta não encontrada
406PXT000105Invalid end_to_end_idThe end_to_end_id sent {end_to_end_id} is not valid.O end_to_end_id enviado {end_to_end_id} não é válido.
400PXT000108Bad RequestBilling account closed or blockedConta de cobrança encerrada ou bloqueada
400PXT000079Bad RequestInsufficient billing account balance for fee.Saldo de conta de cobrança insuficiente para a taxa.
400PIT000004Bad RequestTransaction amount is over limit.O total da transferência é superior ao limite.
404PIX000056Not FoundPix key inquiry not foundConsulta de chave pix não encontrada
404PXT000041Not FoundQr Code not foundQr Code não encontrado
400PXT000053Bad RequestQrCode already paidQr Code já Pago
400PXT000115Bad RequestInsufficient account balance for transfer and fee amount.Saldo de conta insuficiente para a transferência e a taxa
400PXT000128Bad RequestPix key {pix_key} sent does match inquiry pix key. Verify if end_to_end_id sent is correctChave Pix {pix_key} enviada não condiz com consulta. Verifique se end_to_end_id enviado está correto
409PXT000109Bad Requestrequest_control_key {request_control_key} already in userequest_control_key {request_control_key} já utilizada
400PXT000061Bad RequestEnd to end id invalid. A pix transfer with the end to end id {end_to_end} has already been registered!End to end id inválido. Uma transação pix com o identificador único {end_to_end} já foi registrada!
400PXT000129SPI Error messageMessage rejected by SPI-ICOMMensagem rejeitada pela SPI-ICOM
408PXT000130SPI Timeout ControlSPI Timeout ControlControle de timeout no SPI
400PXT000131Receiver Internal ErrorCancelled transaction due to receiver's internal errorTransação interrompida devido a erro no PSP do Recebedor
400PXT000132Invalid Target Account NumberTarget account number is invalidNúmero da conta de destino é inexistente ou inválido
400PXT000133Blocked Target AccountTarget account is blocked.A conta de destino encontra-se bloqueada.
400PXT000134Closed Target AccountTarget account is closed.A conta de destino encontra-se encerrada.
400PXT000135Unsupported TransactionUnsupported transaction for given target account.A conta de destino não suporta este tipo de transação.
400PXT000136Invalid ParticipantSPI participant is not PSP settler agent of payer nor receiver.Participante direto do SPI não é liquidante do PSP do Pagador / Recebedor.
400PXT000137Zero Value Payment OrderZero value payment order.Ordem de pagamento com valor zero.
400PXT000138Insufficient FundsInsufficient funds in PI account from payer.Saldo insuficiente na conta PI do pagador.
400PXT000139Return Value Too GreatReturn value greater than corresponding payment order.Valor de devolução acima do valor de pagamento correspondente.
400PXT000140Invalid Transactions NumberInvalid transactions number.Quantidade de transações inválida.
400PXT000141Unrelated Beneficiary Document NumberBeneficiary document number is not that of target account owner.CPF/CNPJ do usuário recebedor não é compatível com o titular da conta de destino.
400PXT000142Invalid Beneficiary Document NumberInvalid beneficiary document numberCPF/CNPJ da conta de destino está incorreto.
400PXT000143Incorrect Message ElementIncorrect message element.Elemento da mensagem incorreto.
403PXT000144Rejected Payment OrderBeneficiary's PSP has rejected payment order.Ordem de pagamento foi rejeitada pelo banco recebedor.
403PXT000145Unauthorized PayerSigning participant is unauthorized to make a payment order for paying account.Participante que assinou a mensagem não é autorizado a realizar a operação na conta PI debitada.
400PXT000146Invalid DatetimeInvalid datetime for message delivery.Data e Hora do envio da mensagem inválida.
400PXT000147Generic ErrorError while processing payment (generic error).Erro no processamento do pagamento (erro genérico).
400PXT000148Bad Format Operation IdentifierBadly formatted operation's identifier.Identificador da operação mal formatado.
400PXT000149Invalid Payer ISPBInvalid or non-existent payer's PSP ISPB number.Número ISPB do PSP do Pagador é inválido ou inexistente.
400PXT000150Invalid Beneficiary ISPBInvalid or non-existent beneficiary's PSP ISPB number.Número ISPB do banco recebedor é inválido ou inexistente.
400PXT000151Incorrect TypeIncorrect type for target account.Tipo incorreto para a conta transacional especificada.
400PXT000152Repeated End-to-End ID ErrorThe end_to_end_id was already usedO end_to_end_id já foi utilizado
400PXT000153Invalid Target Account TypeThe target account type cannot receive PIX transactionsO tipo de conta destino não pode receber transações PIX
400PXT000154Invalid ISPBInvalid or non-existent ISPB number.Número ISPB é inválido ou inexistente.
400PXT000155Amount too GreatAmount too great for credited account.Valor de pagamento/devolução acima do permitido para a conta de destino creditada.
400PXT000156QR Code RejectedQR Code rejected by beneficiary's PSP.QR Code rejeitado pelo PSP do usuário recebedor.
503PXT000157Bacen Service Unavailable ErrorCould not send the message to ICOM after 3 retriesNão pode enviar a mensagem para a ICOM depois de 3 tentativas
400PXT000158Invalid AmountPaid amount diverges from expected amount of {expected_amount}O valor do pagamento diverge do valor esperado de {expected_amount}
400PXT000159QR code inactiveQR code is not active at the time of paymentQR code não está ativo no instante do pagamento

在巴西中央银行查询 Pix 密钥

Request

ENDPOINT
/pix_key/PIX_KEY?account_key=ACCOUNT_KEY
MÉTODO
GET

路径参数

字段类型描述字符数
pix_key *string将被查询的 Pix 密钥。77
Pix 密钥类型

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

CPF:11 位整数。

CNPJ:14 位整数。

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

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

随机密钥:UUID4。

查询参数

字段类型描述字符数
account_key *uuidv4账户唯一标识密钥。36
查询 token 的使用

为确保 Pix 密钥查询 token 向正确的人收费,必须发送 account_key

Response

STATUS
200
Response Body: 密钥有效
{
"account_branch": "0001",
"account_created_at": "2023-09-06T22:03:34.000Z",
"account_digit": "8",
"account_number": "2897775",
"account_type": "checking",
"bank_code": null,
"end_to_end_id": "E73856642202309201429bZKfklNlbwu",
"financial_institution": "BANCO INDIRETO PRUPRU",
"ispb": "32402502",
"owner_masked_document_number": "**.458.****/0001-**",
"owner_name": "Empresa teste 01",
"owner_person_type": "legal",
"owner_trading_name": null,
"pix_key": "0f723f66-b333-4187-be16-97fc37c86052"
}
STATUS
4xx
Response Body: 错误
{
"title": "titulo",
"description": "description in English",
"translation": "descrição em portugues",
"code": "codigo",
"extra_fields": {}
}
HTTP 状态码
status
QI 代码
code
标题
title
英文描述
description
葡语描述
translation
404PIX000017Pix Key is UnregisteredPix key {pix_key} is not currently usedA chave pix {pix_key} não está sendo utilizada
400PIX000081Rate Limit ExceededRate Limit ExceededLimite de requisições excedido

退还一笔 Pix

Pix 退还可在收款后 90 天内进行。

Request

ENDPOINT
/account/ACCOUNT_KEY/pix_transfer/PIX_TRANSFER_KEY/reversal
MÉTODO
POST

路径参数

字段类型描述字符数
account_key *uuidv4账户唯一标识密钥。36
pix_transfer_key *uuidv4QI 系统中 Pix 转账的唯一标识密钥。36
Request Body
{
"request_control_key": "303393bf-8f2e-4ff0-b326-ee7ad612e8ca",
"reversal_amount": 147,
"reversal_reason": "client_request",
"reversal_message": "Mensagem Pix da Devolução"
}

请求体

字段类型描述字符数
request_control_key *uuidv4请求的唯一性密钥。36
reversal_amount *number退还金额。11
reversal_reason *string退还原因。reversal_reason 枚举值
reversal_messagestring退还消息。140

reversal_reason 枚举值

枚举值描述
client_request由账户持有人提出的要求。
reconciliation因操作错误进行对账。

Response

STATUS
201
Response Body: 退还已发送
{
"reversal_status": "sent",
"transfer_amount": 147,
"pix_transfer_key": "cdcf0d25-08a1-46e3-902a-6d7ca75e6c48",
"end_to_end_id": "E32402502202407112211Id9JbxoaiTf",
"request_control_key": "7c5a1425-73eb-420e-b4fb-0ce3386c7d0c",
"created_at": "2021-10-22T20:30:23.459Z"
}
STATUS
202
Response Body: 退还待处理
{
"reversal_status": "pending",
"transfer_amount": 147,
"pix_transfer_key": "cdcf0d25-08a1-46e3-902a-6d7ca75e6c48",
"end_to_end_id": "E32402502202407112211Id9JbxoaiTf",
"request_control_key": "7c5a1425-73eb-420e-b4fb-0ce3386c7d0c",
"created_at": "2021-10-22T20:30:23.459Z"
}
说明

若返回 HTTP Status 202pix_transfer_status 值为 pending,则不应重试 Pix 请求。

该转账将被重新处理。需通过查询 Pix 转账验证转账状态。

响应体

字段类型描述字符数
reversal_statusenumerator退还交易状态枚举值。reversal_status 枚举值
transfer_amountnumber退还转账金额。11
pix_transfer_keyuuidv4退还执行的 Pix 交易密钥。36
end_to_end_idstringPix 交易在 SPI(即时支付系统)内的幂等键32
request_control_keyuuidv4客户使用的请求唯一标识密钥。36
created_atstring退还日期和时间。10

reversal_status 枚举值

枚举值描述
sentPix 转账执行成功。
pendingPix 转账待处理。
rejectedPix 转账已拒绝。
STATUS
4xx
Response Body: 退还已拒绝
{
"title": "titulo",
"description": "description in English",
"translation": "descrição em portugues",
"code": "codigo",
"extra_fields": {
"pix_transfer_data": {
"request_control_key": "b6804f32-101e-4702-8fbc-c2dbc4c2caec",
"pix_transfer_key": "8cb70dea-9fb0-4a68-9572-99a72849c8d6",
"pix_transfer_status": "rejected",
"created_at": "2021-10-22T20:30:23.459Z"
}
}
}
说明

除上述 Pix 转账错误外,Pix 退还还可能返回以下错误。

HTTP 状态码
status
QI 代码
code
标题
title
英文描述
description
葡语描述
translation
400QIT000001Bad RequestSchema ErrorErro de Schema
404PXT000018Reversal Original Transfer not FoundReversal original pix transfer not found.Transferência original da devolução não foi encontrada.
400PXT000017Reversal Too GreatReversal transfers sum amount surpasses that of original pix transfer.A soma das transferências de devolução ultrapassam o valor da transferência pix original.
400PXT000015Reversal date expiredReversal original transaction is older than 90 daysA data de criação da transação original é mais antiga que 90 dias
400PXT0000127Invalid Reversal ReasonReversal reason {reversal_reason} is not validRazão de reversão {reversal_reason} não é válida

通过 pix_transfer_key 查询 Pix 交易

Request

ENDPOINT
/account/ACCOUNT_KEY/pix_transfer/PIX_TRANSFER_KEY/PIX_TRANSFER_DIRECTION
MÉTODO
GET

路径参数

字段类型描述字符数
pix_transfer_direction *enumerator交易方向指示符(入账或出账)。pix_transfer_direction 枚举值
account_key *uuidv4QI 账户唯一标识密钥。36
pix_transfer_key *uuidv4Pix 转账唯一标识密钥。36

pix_transfer_direction 枚举值

枚举值描述
incomingPix 转账执行成功。
outgoingPix 转账执行成功。

Response

STATUS
201
Response Body: 转账已发送(outgoing)
{
"request_control_key": "6e290347-330d-4b3a-8ebb-2ac217ad6eb3",
"pix_message": "Bom dia",
"pix_transfer_type": "manual",
"account_key": "fc6862c4-2b20-4057-8063-b8809866e494",
"updated_at": "2021-10-22T20:30:23.459Z",
"created_at": "2021-10-22T20:30:23.459Z",
"target_account": {
"account_branch": "0001",
"account_digit": "3",
"account_number": "12345678",
"owner_document_number": "***02502000***",
"owner_person_type": "legal",
"owner_name": "Qi Tech",
"account_type": "checking_account",
"ispb": "32402502",
"pix_key": null
},
"receiver_conciliation_id": null,
"pix_transfer_key": "8cb70dea-9fb0-4a68-9572-99a72849c8d6",
"end_to_end_id": "E3240250220211022203051750897529",
"pix_transfer_status": "sent",
"transfer_amount": 126.97,
"fee_amount": 0.0,
"rejection_reason": null,
"reversals": [
{
"end_to_end_id": "D35713491202309182058jlqdBkkHSWU",
"transfer_amount": 0.01,
"reversal_reason": "client_request",
"pix_transfer_status": "received",
"pix_transfer_key": "423866cd-0f3f-4cdd-904b-0d2e33273afd",
"request_control_key": "7c5a1425-73eb-420e-b4fb-0ce3386c7d0a",
"created_at": "2021-10-23T20:30.459Z"
}
]
}

Response Body: 转账已拒绝(outgoing)
{
"request_control_key": "6e290347-330d-4b3a-8ebb-2ac217ad6eb3",
"pix_message": "Bom dia",
"pix_transfer_type": "manual",
"account_key": "fc6862c4-2b20-4057-8063-b8809866e494",
"updated_at": "2021-10-22T20:30:23.459Z",
"created_at": "2021-10-22T20:30:23.459Z",
"target_account": {
"account_branch": "0001",
"account_digit": "3",
"account_number": "12345678",
"owner_document_number": "***02502000***",
"owner_person_type": "legal",
"owner_name": "Qi Tech",
"account_type": "checking_account",
"ispb": "32402502",
"pix_key": null
},
"receiver_conciliation_id": null,
"pix_transfer_key": "8cb70dea-9fb0-4a68-9572-99a72849c8d6",
"end_to_end_id": "E3240250220211022203051750897529",
"pix_transfer_status": "rejected",
"transfer_amount": 126.97,
"fee_amount": 0.0,
"error_code": "PXT000132",
"error_description": "Target account number is invalid.",
"error_translation": "Número da conta de destino é inexistente ou inválido.",
"reversals": []
}

Response Body: 退还已发送(outgoing)
{
"request_control_key": "6e290347-330d-4b3a-8ebb-2ac217ad6eb3",
"pix_message": "Bom dia",
"pix_transfer_type": "reversal",
"account_key": "fc6862c4-2b20-4057-8063-b8809866e494",
"updated_at": "2021-10-22T20:30:23.459Z",
"created_at": "2021-10-22T20:30:23.459Z",
"target_account": {
"account_branch": "0001",
"account_digit": "3",
"account_number": "12345678",
"owner_document_number": "***02502000***",
"owner_person_type": "legal",
"owner_name": "Qi Tech",
"account_type": "checking_account",
"ispb": "32402502",
"pix_key": null
},
"receiver_conciliation_id": null,
"pix_transfer_key": "8cb70dea-9fb0-4a68-9572-99a72849c8d6",
"end_to_end_id": "E3240250220211022203051750897529",
"pix_transfer_status": "sent",
"transfer_amount": 126.97,
"fee_amount": 0.0,
"rejection_reason": null,
"reversals": [],
"original_incoming_pix_transfer": "6e290347-330d-4b3a-8ebb-2ac217ad6eb3"
}

Response Body: 转账已收到(incoming)
{
"request_control_key": "6e290347-330d-4b3a-8ebb-2ac217ad6eb3",
"pix_transfer_key": "8cb70dea-9fb0-4a68-9572-99a72849c8d6",
"account_key": "fc6862c4-2b20-4057-8063-b8809866e494",
"end_to_end_id": "E18236120202308111235s14fddf2801",
"pix_transfer_status": "received",
"receiver_conciliation_id": "745c28c780bc4822bbade86dd875d10b",
"transfer_amount": 126.97,
"fee_amount": 0.0,
"source_account": {
"account_branch": "0001",
"account_digit": "3",
"account_number": "12345678",
"owner_document_number": "***02502000***",
"owner_person_type": "legal",
"owner_name": "Qi Tech",
"account_type": "checking_account",
"ispb": "32402502"
},
"pix_transfer_type": "dynamic_qr_code",
"reversals": []
}
Response Body: 退还已收到(incoming)
{
"request_control_key": "6e290347-330d-4b3a-8ebb-2ac217ad6eb3",
"pix_transfer_key": "8cb70dea-9fb0-4a68-9572-99a72849c8d6",
"account_key": "fc6862c4-2b20-4057-8063-b8809866e494",
"end_to_end_id": "E18236120202308111235s14fddf2801",
"pix_transfer_status": "received",
"receiver_conciliation_id": "745c28c780bc4822bbade86dd875d10b",
"transfer_amount": 126.97,
"fee_amount": 0.0,
"source_account": {
"account_branch": "0001",
"account_digit": "3",
"account_number": "12345678",
"owner_document_number": "***02502000***",
"owner_person_type": "legal",
"owner_name": "Qi Tech",
"account_type": "checking_account",
"ispb": "32402502"
},
"pix_transfer_type": "reversal",
"reversals": [],
"original_outgoing_pix_transfer": "6e290347-330d-4b3a-8ebb-2ac217ad6eb3"
}
Response Body: 转账已拒绝(incoming)
{
"request_control_key": "6e290347-330d-4b3a-8ebb-2ac217ad6eb3",
"pix_transfer_key": "8cb70dea-9fb0-4a68-9572-99a72849c8d6",
"account_key": "fc6862c4-2b20-4057-8063-b8809866e494",
"end_to_end_id": "E18236120202308111235s14fddf2801",
"pix_transfer_status": "rejected",
"receiver_conciliation_id": "745c28c780bc4822bbade86dd875d10b",
"transfer_amount": 126.97,
"fee_amount": 0.0,
"source_account": {
"account_branch": "0001",
"account_digit": "3",
"account_number": "12345678",
"owner_document_number": "***02502000***",
"owner_person_type": "legal",
"owner_name": "Qi Tech",
"account_type": "checking_account",
"ispb": "32402502"
},
"pix_transfer_type": "dynamic_qr_code",
"reversals": []
}
STATUS
4xx
Response Body: 错误
{
"title": "titulo",
"description": "description in English",
"translation": "descrição em portugues",
"code": "codigo",
"extra_fields": {}
}
HTTP 状态码QI 代码
code
标题
title
英文描述
Description
葡语描述
translation
400PXT000075Pix Transfer Key or End To End Not ProvidedNo pix transfer key or end to end id provided.Não foram fornecidos uma pix transfer key ou end to end id.
404PXT000023Outgoing PIX Transfer Not FoundPix transfer key {pix_transfer_key} was not foundTransferência PIX de saída com chave {pix_transfer_key} não foi encontrada.
403PIT000001User is not allowed to do this transactionUser is not allowed to do this transactionUsuário não tem autorização para fazer essa transação

查询多笔 Pix 交易

Request

ENDPOINT
/account/ACCOUNT_KEY/pix_transfers
MÉTODO
GET

路径参数

字段类型描述字符数
account_key *uuidv4QI 账户唯一标识密钥36

查询参数

字段类型描述字符数
pix_transfer_directionenumerator交易方向指示符(入账或出账)。若未发送,默认为 outgoingpix_transfer_direction 枚举值
request_control_keyuuidv4客户使用的请求唯一标识密钥。36
end_to_end_idstringPix 交易幂等键32
transaction_keyuuidv4账户变动标识密钥36
date_fromstring起始日期。格式:"YYYY-MM-DD"
date_tostring结束日期。格式:"YYYY-MM-DD"
pageinteger请求的页码,默认为 1
page_sizeinteger查询请求的页面大小,默认值和最大值为 30最大值 30

pix_transfer_direction 枚举值

枚举值描述
incomingPix 入账转账
outgoingPix 出账转账

Response

STATUS
201
Response Body
{
"data": [
{
"request_control_key": "6e290347-330d-4b3a-8ebb-2ac217ad6eb3",
"pix_message": "Bom dia",
"pix_transfer_type": "manual",
"account_key": "fc6862c4-2b20-4057-8063-b8809866e494",
"updated_at": "2021-10-22T20:30:23.459Z",
"created_at": "2021-10-22T20:30:23.459Z",
"target_account": {
"account_branch": "0001",
"account_digit": "3",
"account_number": "12345678",
"owner_document_number": "***02502000***",
"owner_person_type": "legal",
"owner_name": "Qi Tech",
"account_type": "checking_account",
"ispb": "32402502",
"pix_key": null
},
"receiver_conciliation_id": null,
"pix_transfer_key": "8cb70dea-9fb0-4a68-9572-99a72849c8d6",
"end_to_end_id": "E3240250220211022203051750897529",
"pix_transfer_status": "sent",
"transfer_amount": 126.97,
"fee_amount": 0.0,
"rejection_reason": null,
"reversals": [
{
"end_to_end_id": "D35713491202309182058jlqdBkkHSWU",
"transfer_amount": 0.01,
"reversal_reason": "client_request",
"pix_transfer_status": "received",
"pix_transfer_key": "423866cd-0f3f-4cdd-904b-0d2e33273afd",
"request_control_key": "7c5a1425-73eb-420e-b4fb-0ce3386c7d0a",
"created_at": "2021-10-23T20:30.459Z"
}
]
}
],
"pagination": {
"current_page": 1,
"rows_per_page": 30
}
}

待处理交易的 Webhook

此 Webhook 用于通知最初响应为待处理(返回 HTTP 状态码 202)的交易完成情况。

Webhook 请求体

Request Body: 交易已发送
{
"webhook_type": "baas.pix_transfer.outgoing_pix",
"webhook_datetime": "2021-10-22T20:30:23.459Z",
"data": {
"request_control_key": "b6804f32-101e-4702-8fbc-c2dbc4c2caec",
"pix_transfer_key": "8cb70dea-9fb0-4a68-9572-99a72849c8d6",
"pix_transfer_status": "sent",
"created_at": "2021-10-22T20:30:23.459Z"
}
}
Request Body: 交易已拒绝
{
"webhook_type": "baas.pix_transfer.outgoing_pix",
"webhook_datetime": "2021-10-22T20:30:23.459Z",
"data": {
"request_control_key": "b6804f32-101e-4702-8fbc-c2dbc4c2caec",
"pix_transfer_key": "8cb70dea-9fb0-4a68-9572-99a72849c8d6",
"pix_transfer_status": "rejected",
"created_at": "2021-10-22T20:30:23.459Z",
"error_code": "PXT000132",
"error_description": "Target account number is invalid.",
"error_translation": "Número da conta de destino é inexistente ou inválido.",
"error_short_description": null
}
}

Webhook Body 参数

字段类型描述最大字符数
webhook_typestring定义正在报告的事件类型的枚举值23
webhook_datetimestringWebhook 发送的日期和时间20
request_control_keystring用于查询所发出请求的 UUID436
pix_transfer_keystringQI 系统中 Pix 转账的标识密钥36
pix_transfer_statusstring交易状态。200
created_atstring交易创建日期和时间。20

入账 Pix 的 Webhook

此 Webhook 用于通知到达某账户的 Pix 交易。

Webhook 请求体

Request Body: 已收到 Pix
{
"webhook_type": "baas.pix_transfer.incoming_pix",
"webhook_datetime": "2021-10-22T20:30:23.459Z",
"data": {
"pix_transfer_key": "8cb70dea-9fb0-4a68-9572-99a72849c8d6",
"end_to_end_id": "E18236120202308111235s14fddf2801",
"pix_transfer_status": "received",
"account_key": "7c5a1425-73eb-420e-b4fb-0ce3386c7d0c",
"receiver_conciliation_id": "745c28c780bc4822bbade86dd875d10b",
"transfer_amount": 126.97,
"fee_amount": 0.0,
"source_account": {
"account_branch": "0001",
"account_digit": "3",
"account_number": "12345678",
"owner_document_number": "***02502000***",
"owner_person_type": "legal",
"owner_name": "Qi Tech",
"account_type": "checking_account",
"ispb": "32402502"
},
"pix_transfer_type": "dynamic_qr_code",
"pix_message": "pix message received",
"created_at": "2021-10-22T20:30:23.459Z",
"reversals": []
}
}

Webhook Body 参数

字段类型描述最大字符数
webhook_typestring定义正在报告的事件类型的枚举值23
webhook_datetimestringWebhook 发送的日期和时间20
pix_transfer_typeenumerator已执行的 Pix 类型pix_transfer_type 枚举值
target_pix_keystring接收交易的账户 Pix 密钥100
source_accountObject目标账户 - 仅在 "manual" 类型交易中发送source_account 对象
transfer_amountnumber转账金额10
receiver_conciliation_idstring收款方对账标识35
end_to_end_idstringPix 交易幂等键 - 仅在转账类型为 "key" 时发送32
pix_messagestring随 Pix 转账发送的消息140
fee_amountnumber转账金额10
pix_transfer_statusstringPix 交易状态10
account_keystringQI 账户唯一标识密钥36
pix_transfer_keystringPix 转账唯一标识密钥36

pix_transfer_type 枚举值

枚举值描述
manual使用目标账户数据的 Pix
key使用 Pix 密钥的 Pix
static_qr_code使用静态 QR Code 的 Pix
dynamic_qr_code使用动态 QR Code 的 Pix
reversalPix 退还

source_account 对象

字段类型描述字符数
account_branch *string账户支行号6
account_digit *string账户验证码1
account_number *string账户号码20
owner_document_number *string账户持有人 CPF 或 CNPJ(仅数字)14
owner_namestring账户持有人姓名150
account_type*enumerator账户类型account_type 枚举值
ispb *string在巴西中央银行储备转账系统中识别银行的八位数代码8

account_type 枚举值

枚举值描述
checking_account活期账户
salary_account工资账户
saving_account储蓄账户
payment_account支付账户

Pix 退还的 Webhook

此 Webhook 用于通知到达某账户的 Pix 退还。

Webhook 请求体

Request Body: 已收到 Pix
{
"webhook_type": "baas.pix_transfer.incoming_pix",
"webhook_datetime": "2021-10-22T20:30:23.459Z",
"data": {
"pix_transfer_key": "8cb70dea-9fb0-4a68-9572-99a72849c8d6",
"end_to_end_id": "E18236120202308111235s14fddf2801",
"pix_transfer_status": "received",
"account_key": "7c5a1425-73eb-420e-b4fb-0ce3386c7d0c",
"receiver_conciliation_id": "745c28c780bc4822bbade86dd875d10b",
"transfer_amount": 126.97,
"fee_amount": 0.0,
"source_account": {
"account_branch": "0001",
"account_digit": "3",
"account_number": "12345678",
"owner_document_number": "***02502000***",
"owner_person_type": "legal",
"owner_name": "Qi Tech",
"account_type": "checking_account",
"ispb": "32402502"
},
"pix_transfer_type": "reversal",
"pix_message": "pix message received",
"created_at": "2021-10-22T20:30:23.459Z",
"reversals": [],
"original_outgoing_pix_transfer": "b56862c4-2b20-4057-8063-b8809866e494"
}
}

Webhook Body 参数

字段类型描述最大字符数
webhook_typestring定义正在报告的事件类型的枚举值23
webhook_datetimestringWebhook 发送的日期和时间20
pix_transfer_typeenumerator已执行的 Pix 类型pix_transfer_type 枚举值
target_pix_keystring接收交易的账户 Pix 密钥100
source_accountObject目标账户 - 仅在 "manual" 类型交易中发送source_account 对象
transfer_amountnumber转账金额10
receiver_conciliation_idstring收款方对账标识35
end_to_end_idstringPix 交易幂等键 - 仅在转账类型为 "key" 时发送32
pix_messagestring随 Pix 转账发送的消息140
fee_amountnumber转账金额10
pix_transfer_statusstringPix 交易状态10
account_keystringQI 账户唯一标识密钥36
pix_transfer_keystringPix 转账唯一标识密钥36
original_outgoing_pix_transferstring原始出账 Pix 转账的唯一标识密钥36

pix_transfer_type 枚举值

枚举值描述
manual使用目标账户数据的 Pix
key使用 Pix 密钥的 Pix
static_qr_code使用静态 QR Code 的 Pix
dynamic_qr_code使用动态 QR Code 的 Pix
reversalPix 退还

source_account 对象

字段类型描述字符数
account_branchstring账户支行号6
account_digitstring账户验证码1
account_numberstring账户号码20
owner_document_numberstring账户持有人 CPF 或 CNPJ(仅数字)14
owner_namestring账户持有人姓名150
account_typeenumerator账户类型account_type 枚举值
ispbstring在巴西中央银行储备转账系统中识别银行的八位数代码8

account_type 枚举值

枚举值描述
checking_account活期账户
salary_account工资账户
saving_account储蓄账户
payment_account支付账户