跳到主要内容

执行 Pix 交易

请求

ENDPOINT
/account/ACCOUNT_KEY/pix_transfer
方法
POST

Path Params

字段类型描述字符数
account_keyuuidv4账户的唯一标识键。36

通过 Pix 键转账

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 *stringSPI(即时支付系统)内 Pix 交易的幂等键。该键在 Pix 键查询中返回。仅当 pix_transfer_typekeystatic_qr_codedynamic_qr_code 时发送。32
pix_messagestring随 Pix 转账一起发送的消息。140

手动转账 - 使用账户数据

Request Body: 手动转账
{
"request_control_key": "b6804f32-101e-4702-8fbc-c2dbc4c2caec",
"pix_transfer_type": "manual",
"target_account": {
"account_branch": "0001",
"account_digit": "3",
"account_number": "12345678",
"owner_document_number": "32402502000135",
"owner_name": "Qi Tech",
"account_type": "checking_account",
"ispb": "32402502"
},
"transaction_amount": 500.65,
"pix_message": "Ola Mundo"
}

Body Params

字段类型描述字符数
request_control_key *uuidv4客户端使用的 uuid v4 格式请求唯一标识键。36
pix_transfer_type *enumeratorPix 转账类型。manual
target_account *Object目标账户 - 仅在 pix_transfer_typemanual 的转账中发送。Objeto target_account
transaction_amount *number转账金额。10
pix_messagestring随 Pix 转账一起发送的消息。140

Objeto target_account

字段类型描述字符数
account_branch *string账户支行。4
account_digit *string账户校验位。1
account_number *string账户号码。20
owner_document_number *string账户持有人的 CPF 或 CNPJ(仅数字)。14
owner_name *string账户持有人姓名。150
account_type*enumerator账户类型。Enumerador account_type
ispb *string基于金融机构 CNPJ 的代码(8位数字)。8

Enumerador account_type

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

通过 Pix QR 码转账

用于 Pix QR 码付款交易的数据必须通过使用 Pix 复制粘贴 URI 来解码 Pix QR 码获得。

I - "end_to_end_id" 字段必须与解码动态 QR 码返回的相同值。

II - 在 "transaction_amount" 字段中填写解码动态 QR 码时 "qr_code_data.amount" 字段返回的相同值;

III - 将 "pix_transfer_type" 字段更改为相应枚举值(static_qr_codedynamic_qr_code),以请求付款。

IV - "receiver_conciliation_id" 字段必须与解码动态 QR 码返回的相同值。

Request Body: 通过 QR 码转账
{
"request_control_key": "b6804f32-101e-4702-8fbc-c2dbc4c2caec",
"pix_transfer_type": "static_qr_code",
"transaction_amount": 500.65,
"end_to_end_id": "E73856642202309201429bZKfklNlbwu",
"receiver_conciliation_id": "REC00000000000000000000009459463343",
"target_pix_key": "target_pix_key@email.com",
"pix_message": "Ola Mundo"
}

Body Params

字段类型描述字符数
request_control_key *uuidv4客户端使用的 uuid v4 格式请求唯一标识键。36
pix_transfer_type *enumeratorPix 转账类型。static_qr_codedynamic_qr_code
target_pix_key *string接收交易的账户 Pix 键。100
receiver_conciliation_idstring接收方对账标识。35
transaction_amount *number转账金额。10
end_to_end_id *stringSPI(即时支付系统)内 Pix 交易的幂等键。该键在 Pix 键查询中返回。仅当 pix_transfer_typekeystatic_qr_codedynamic_qr_code 时发送。32
pix_messagestring随 Pix 转账一起发送的消息。140
警告

查询的 end_to_end_id 必须是以将发起交易的账户名义进行的!

警告

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

响应

STATUS
201
Response Body: 已发送转账
{
"request_control_key": "b6804f32-101e-4702-8fbc-c2dbc4c2caec",
"pix_transfer_key": "8cb70dea-9fb0-4a68-9572-99a72849c8d6",
"transaction_key": "848d3ff7-4e98-4911-8773-f1d1b48c3068",
"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",
"transaction_key": "848d3ff7-4e98-4911-8773-f1d1b48c3068",
"pix_transfer_status": "pending",
"created_at": "2021-10-22T20:30:23.459Z",
"transaction_key": "8ea90347-330d-4b3a-8ebb-2ac217ad6eb3"
}
信息

如果返回 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: Error
{
"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
403PIT000001User is not allowed to do this transactionUsuário não tem autorização para fazer essa transação
400PIT000003Bad RequestInsufficient account balance for transfer and fee amount.Saldo de conta insuficiente para a transferência e a taxa.
400PIT000004Bad RequestTransaction amount is over limit.O total da transferência é superior ao limite.
400PXT000003Account is ClosedAccount {account_key} is closed.Conta {account_key} está fechada.
404PXT000004Account not foundAccount not found for: {account_datum}Conta não encontrada para: {account_datum}
400PXT000010Account is BlockedAccount {account_key} is blocked.Conta {account_key} está bloqueada.
404PXT000018Reversal Original Transfer not FoundReversal original pix transfer not foundTransferência original da devolução não foi encontrada
400PXT000033Target Account Must Not Be Source AccountTarget Account Must Not Be Source AccountA conta de destino não pode ser a conta de origem
404PXT000041Not FoundQr Code not foundQr Code não encontrado
400PXT000048Bad RequestEmoji not allowed in pix message.Emoji não é permitido na mensagem pix.
400PXT000053Bad RequestQrCode already paidQr Code já Pago
400PXT000060Bad RequestNonexistent account in destination bankConta inexistente no banco de destino
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!
400PXT000079Bad RequestInsufficient billing account balance for fee.Saldo de conta de cobrança insuficiente para a taxa.
400PXT000083Bad RequestPix rejectedPix rejeitado
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
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
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
400PXT000109Bad Requestrequest_control_key {request_control_key} already in userequest_control_key {request_control_key} já utilizada
400PXT000115Bad 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
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
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}
403PXT000167Requester not allowed to access this endpointRequester has no permission to perform pix transfers on this endpointRequester não possui permissão de realizar transações pix através deste endpoint