The QR CODE is a two-dimensional code that allows the payer to initiate a payment. In this session, we provide functionalities that enable the generation of QR CODES based on a collection.

QR CODE - Static - Create

This functionality allows generating static QR CODES. This collection can be paid more than once and does not expire.

We request the fields:

FieldDescriptionFormatMandatory
chaveType of QR CODE, which can be: Static or DynamicstringYes
valorCollection transaction identifiernumber Yes
campoLivreQR CODE statusstringNo
txIdTransaction identifierdate-timeYes

Response:

FieldDescriptionFormatNullablle
txIdTransaction identifierstringYes
qrCodeCode of the QR CODE with collection informationintegerNo
dataCriacaoQR CODE creation datestringNo

Qr Code - Estático - Criar

QR CODE - Dynamic - Create

This functionality allows generating dynamic QR Codes. This collection can only be paid once.

We request the fields:

FieldDescriptionFormatMandatory
txIdTransaction identifierdate-timeYes
cobrancaCollection data (expiration, amount, Pix key, debtor data, payer information)stringYes
validaPagadorIf marked as 'True', the system will validate whether the payer's CPF/CNPJ corresponds to the CPF/CNPJ entered when creating the collection.booleanYes

Response:

FieldDescriptionFormatNullablle
calendarioDisplays the collection creation date, due date and validity date after expiration (if provided)objectNo
statusDisplays the collection status, see table [Collection Status]stringNo
txIdCollection transaction identifierstringYes
revisaoDenotes the collection review, starting at zero and varying in increments of 1. The increment in a collection must occur whenever an object of the collection in question is changed. The loc field is an exception to this rule. If in a given change to a collection, the only field changed is the loc field, then there is no increment.integerNo
locationPayload locationstringYes
qrCodeCode of the QR CODE with collection informationintegerNo
devedorData of the individual or legal entity to whom the collection will be addressedobjectNo
valorCollection amounts are: original amount, interest, fine, price reduction and discountobjectNo
chavePix key for generating the collectionstringYes
solicitacaoPagadorMessage intended for the payer (limited to 140 characters)stringNo
infoAdicionaisEach respective additional information contained in the list (name and amount) must be presented to the payerArrayYes

Qr Code - Dinâmico - Criar

QR CODE - Dynamic with Expiration - Create

This functionality allows generating dynamic QR CODES for payment at a future date, and in addition to the collection amount, it is also possible to configure interest, fines and discounts. This collection can only be paid once and expires once paid.

We request the fields:

FieldDescriptionFormatMandatory
txIdTransaction identifierdate-timeYes

Response:

FieldDescriptionFormatNullablle
txIdCollection transaction identifierstringYes
calendarioDisplays the collection creation date, due date and validity date after expiration (if provided)objectNo
devedorData of the individual or legal entity to whom the collection will be addressedobjectNo
locDisplays the identifier of the payload location (identifier, location, type of collection ("COB" or "COBV") and date/time of creation)objectNo
valorCollection amounts are: original amount, interest, fine, price reduction and discountobjectNo
chavePix key for generating the collectionstringYes
solicitacaoPagadorMessage intended for the payer (limited to 140 characters)stringNo
infoAdicionaisEach respective additional information contained in the list (name and amount) must be presented to the payerArrayYes

Qr Code - Dinâmico com Vencimento - Criar

QR CODE - Check

This functionality allows checking the QR CODES of the generated static and dynamic types, showing their status.

We request the fields:

FieldDescriptionFormatMandatory
TipoType of QR CODE, which can be: Static or DynamicstringYes
TxIdCollection transaction identifierstringNo
StatusQR CODE statusstringYes
InicioStart of desired search perioddate-timeYes
FimEnd of desired search perioddate-timeYes

Response:

FieldDescriptionFormatNullablle
qrCodeIdQR CODE identifierintegerNo
tipoType of QR CODE, which can be: Static or DynamicstringNo
txIdCollection transaction identifierstringYes
dataCriacaoQR CODE creation datedate-timeNo
dataValidadeQR CODE expiration datedate-timeNo
valorQR CODE amountnumber No
statusCollection status, see table [Collection status]stringNo
campoLivreField entered by the payer at the time of paymentstringYes
chavePix key used to generate the QR CODEobjectNo
linkLink for internal use of Banco BS2stringYes
recebedorReceiver details (bank details, name, business name and document)objectYes
qrCodeQR CODE 'Copy & Paste' codestringYes
valorRecebimentoAmount received through QR CODEnumber No
quantidadePagamentoNumber of QR CODE receiptsobjectNo

QR Code - Consultar

QR CODE - Disable

This functionality allows canceling a generated QR CODE. When you disable it, it will no longer be able to be paid.

We request the field:

FieldDescriptionFormatMandatory
qrCodeIdQR CODE identifierdate-timeYes

Response:

FieldDescriptionFormatNullablle
statusCodeQR CODE statusstringYes

QR Code - Desativar

QR CODE - Dynamic with Expiration - Change

This functionality allows changing the settings of dynamic QR CODE with expiration as long as it has not been paid.

We request the fields:

FieldDescriptionFormatMandatory
txIdTransaction identifierdate-timeYes
calendarioDisplays the collection creation date, due date and validity date after expiration (if provided)objectNo
pagadorDisplays Pix payer data (bank, branch, account, document)objectYes
valorCollection amounts are: original amount, interest, fine, price reduction and discountobjectNo
chavePIX key for generating the collectionstringYes
solicitacaoMessage intended for the payer (limited to 140 characters)stringNo
idLocationPayload location identifierstringNo
infoAdicionaisEach respective additional information contained in the list (name and amount) must be presented to the payerArrayYes

Response:

FieldDescriptionFormatNullablle
txIdCollection transaction identifierstringYes
revisaoDenotes the collection review, starting at zero and varying in increments of 1. The increment in a collection must occur whenever an object of the collection in question is changed. The loc field is an exception to this rule. If in a given change to a collection, the only field changed is the loc field, then there is no increment.integerNo
locDisplays the identifier of the payload location (identifier, location, type of collection ("COB" or "COBV") and date/time of creation)objectNo
qrCodeCode of the QR CODE with collection informationintegerNo
statusDisplays the collection status, see table [Collection Status]stringNo

QR Code - Dinâmico com Vencimento - Alterar.

QR CODE - Dynamic - Change

This functionality allows changing the configurations of a dynamic QR CODE without expiration, as long as it has not been paid.

We request the field:

FieldDescriptionFormatMandatory
qrCodeIdQR CODE identifierdate-timeYes

Response:

FieldDescriptionFormatNullablle
calendarioCollection creation date, due date and validity date after expiration (if provided)objectNo
documentoPayer's CPF/CNPJobjectYes
pagadorDisplays Pix payer data (bank, branch, account, document)objectYes
valorCollection amounts are: original amount, interest, fine, price reduction and discountobjectNo
chavePix key for generating the collectionstringYes
identificadorTransacaoCollection transaction identifierstringYes
solicitacaoMessage intended for the payer (limited to 140 characters)stringYes
infoAdicionaisEach respective additional information contained in the list (name and amount) must be presented to the payerArrayYes

QR Code - Dinâmico - Alterar.

Collection status

The table below shows the collection status:

FieldDescription
ATIVAThe QR CODE is able for payment
CONCLUIDAThe QR CODE was paid
REMOVIDA_PELO_USUARIO_RECEBEDORThe QR CODE was canceled by the user
REMOVIDA_PELO_PSPThe QR CODE was removed by Banco BS2