Generating QR CODEs

As a great facilitator of receipt of funds via PIX, we will show you the types of QR CODEs that can be generated and made available by indirect participants for use by their customers. Furthermore, we enable indirect participants’ management of QR CODES by listing, changing and disabling QR CODEs.

Generation of static QR CODEs

This functionality allows indirect participants to generate static QR CODES that can be paid once or multiple times. Additionally, this charge does not expire.

The following fields are required:

FieldDescriptionFormatMandatory
valorBilling AmountdoubleYes
campoLivreMessage intended for the payer (limit 140 characters)stringNo
reutilizavelIndicates the possibility of the QR CODE receiving more than one payment. Default true booleanNo
transactionIdBilling transaction identifier If not informed, it will be generated by Banco BS2.stringYes
chavePix key and key type for generating the QR CODEobjectYes
recebedorRecipient details (document, bank details, address, etc.)objectYes
retiradaInformation for Pix Saque QR CODE (ISPB, change modality, agent modality and purpose)objectNo
chaveIdempotenciaField that guarantees idempotence for participants to process the billing request. This allows participants to guarantee that they will not create two records in their environment for the same request.stringNo

Response:

FieldDescriptionFormatNullable
idCharge identifierstringNo
transactionIdBilling transaction identifierstringYes
statusQR CODE status, as per QR CODE StatusstringNo
dataCriacaoDate and Time of QR CODE creationdate-timeNo
tipoType of QR CODE, as per Type of QR CODEstringNo
qrCodeQR CODE’s copy and paste codestringYes
campoLivreMessage to payerstringYes
chavePix key used for creating QR CODEobjectNo
valorQR CODE AmountdoubleYes
retiradaInformation for Pix Saque QR CODE (ISPB, change modality, agent modality and purpose)objectNo

Criar Qr Code Estático

Generation of dynamic QR CODEs

This functionality allows indirect participants to generate dynamic QR Codes. This charge can be paid only once.
The following fields are required:

FieldDescriptionFormatMandatory
recebedorBilling recipient details (name, document, bank details, address, etc.)objectYes
cobrancaBilling details (amount, type of change, debtor data, Pix key, etc.)objectYes
retiradaInformation for Pix Saque and Pix Troco QR CODE (ISPB, change modality, agent modality and purpose)objectNo
chaveIdempotenciaThis field guarantees idempotency for indirect participants to guarantee that they will not create two records in their environment for the same billing request.stringNo

Response:

FieldDescriptionFormatNullable
idQR CODE identifierstringNo
statusQR CODE status, as per QR CODE StatusstringNo
revisaoThis implies billing review, starting at zero and increasing by 1 each time. A bill must be increased whenever an object of the charge in question is changed.int64No
dataCriacaoQR-CODE creation date:date-timeNo
qrCodeQR CODE’s 'copy and paste' codestringYes
valorQR CODE AmountdoubleYes
locationURL data that returns updated billing data (identifier, link, type and date of creation)objectYes
cobrancaBilling details (amount, type of change, debtor data, Pix key, etc.)objectYes
retiradaInformation for Pix Saque and Pix Troco QR CODE (ISPB, change modality, agent modality and purpose)stringNo

Criar Qr Code Dinâmico

Generation of dynamic QR CODEs with due date

This functionality allows you to generate dynamic QR CODEs for payment at a future date, and in addition to the billing amount, you can also configure interest, fines and discounts. This charge can be paid only once and expires after the due date.

The following fields are required:

FieldDescriptionFormatMandatory
recebedorBilling recipient details (name, document, bank details, address, etc.)stringNo
cobrancaBilling details (amount, type of change, debtor data, Pix key, etc.)objectYes
chaveIdempotenciaThis field guarantees idempotency for indirect participants to guarantee that they will not create two records in their environment for the same billing request.stringNo

Response:

FieldDescriptionFormatNullable
idQR CODE identifierstringNo
transactionIdBilling transaction identifierstringYes
statusQR CODE status, as per QR CODE StatusstringNo
revisaoThis implies billing review, starting at zero and increasing by 1 each time. A bill must be increased whenever an object of the charge in question is changed.int64Yes
dataCriacaoQR-CODE creation datedate-timeYes
qrCodeQR CODE’s 'copy and paste' codestringYes
solicitacaoPagadorMessage to payerstringYes
chavePix key used for creating QR CODEobjectYes
devedorDebtor details (name, document, address, etc.)objectYes
calendarioExpiration date and validity after the QR CODE expiresobjectYes
informacoesAdicionaisAdditional information on the chargearray of objectsYes
valorThis defines the amount of QR CODE charges due (original amount, interest, fine, discount and deduction)objectYes
locationURL data that returns updated billing data (identifier, link, type and date of creation)objectYes

Criar Qr Code Dinâmico com Vencimento

List of QR CODES

This functionality allows you to obtain a list of QR CODEs based on the parameters entered.

The following fields are required:

FieldDescriptionFormatMandatory
DataInicioStarting date of the search perioddate-timeYes
DataFimEnd date of the search perioddate-timeYes
TransactionIdBilling transaction identifierstringNo

Resposta:

FieldDescriptionFormatNullable
idQR CODE identifierstringNo
tipoType of QR CODE, as shown in the table Types of QR CODEsstringYes
transactionIdBilling identifierstringYes
criadoEmUtcQR-CODE creation datedate-timeNo
valorBilling AmountdoubleYes
statusQR CODE status, as per QR CODE StatusstringYes
campoLivreMessage to recipientstringYes
qrCodeQR CODE’s copy and paste codeStringYes
chavePix key and key type used for generating the QR CODEobjectNo
recebedorBilling recipient details (name, document, bank details, address, etc.)objectYes

Listar QRCodes/cobranças

Alteration of dynamic QR CODEs with due date

This functionality allows you to change some information in dynamic QR CODEs.

The following fields are required:

FieldDescriptionFormatMandatory
transactionIdIdentificador da transação da cobrançastringYes
cobrancaDados da cobrança (valor, modalidade de alteração, dados do devedor, chave Pix, etc.)objectYes

Resposta:

FieldDescriptionFormatNullable
idQR CODE identifierstringNo
transactionIdBilling transaction identifierstringYes
statusQR CODE status, as per QR CODE StatusstringNo
revisaoThis implies billing review, starting at zero and increasing by 1 each time. A bill must be increased whenever an object of the charge in question is changed.int64No
dataCriacaoQR-CODE creation datedate-timeNo
qrCodeQR CODE’s 'copy and paste' codestringYes
solicitacaoPagadorMessage to payerstringYes
chavePix key and key type used for generating the QR CODEobjectNo
devedorDebtor details (name, document, address, etc.)objectYes
calendarioExpiration date and validity of QR CODE after expirationobjectYes
informacoesAdicionaisAdditional information on the chargearray of objectsYes
valorAmount of QR CODE charges due (original amount, interest, fine, discount and deduction)objectNo
locationURL data that returns updated billing data (identifier, link, type and date of creation)objectYes

Alterar informações de um Qr Code com vencimento

Alteration of immediate dynamic QR CODEs

This functionality allows you to change some information in immediate dynamic QR CODEs.

The following fields are required:

FieldDescriptionFormatMandatory
qrCodeIdQR CODE identifierobjectYes
cobrancaBilling details (amount, type of change, debtor data, Pix key, etc.)objectYes

Response:

FieldDescriptionFormatNullable
idQR CODE identifierstringNão
statusQR CODE status, as per QR CODE StatusstringYes
revisaoThis implies billing review, starting at zero and increasing by 1 each time. A bill must be increased whenever an object of the charge in question is changed.intNo
dataCriacaoQR-CODE creation datedate-timeNo
valorQR CODE AmountdoubleYes
locationURL data that returns updated billing data (identifier, link, type and date of creation)objectYes
cobrancaBilling details (amount, type of change, debtor data, Pix key, etc.)objectYes

Alterar informações de um Qr Code

Disabling QR CODEs

This functionality allows you to disable a QR CODE, which can be static or dynamic.

The following fields are required:

FieldDescriptionFormatMandatory
qrCodeIdQR CODE identifierstringSim

Response: HTTP 200 success.

Desativar um Qr Code