General Transaction Status Consultation API #565
Replies: 3 comments 3 replies
-
Yes, you can query the API for static QR-Codes using GET /pix with start date (inicio), end date (fim) and txid. If the query result is a null set, no payment was received. If the query result is a Pix object, it was paid. The Pix object will also tell you how much was paid, since a static QR-Code is accepted regardless of value. Note that there could be more than one Pix in the result set. Addendum: you can't use GET /cob endpoint, since this is not a dynamic QR-Code created with POST or PUT /cob. But regardless, webhook will be triggered for the static QR-Code. From a design standpoint, I suggested the txid having identifiers for merchant, buyer and an unique number. txid for static QR-Codes can have up to 24 characters, so while not infinite, there is room to have almost unique references. |
Beta Was this translation helpful? Give feedback.
-
-- English -- For example our code could look like the following:
-- Portugese -- Obrigado pela sua resposta. Estou entendendo isso corretamente, então, se nós mesmos gerarmos um txid, incluí-lo no campo do rótulo de referência do código estático e depois consultar a API PIX (/pix) oferecida por qualquer dos provedores que oferecem API PIX corretamente (# 76), obteríamos o status do pagamento? Mesmo que esses provedores não estejam envolvidos na geração do código? Por exemplo, nosso código poderia ser parecido com o seguinte:
|
Beta Was this translation helpful? Give feedback.
-
Exactly. |
Beta Was this translation helpful? Give feedback.
-
Please excuse my bad Portugese. Im using Google Translate.
-- Portugese --
txid
gerado automaticamente e incluí-lo no campo do rótulo de referência.Pergunta: Se usarmos códigos PIX estáticos (gerados a partir da chave e valor do estabelecimento comercial) e incluirmos um
txid
no campo do rótulo de referência, podemos consultar a API: https://bacen.github.io/pix-api/index.html#/Cob/get_cob__txid_ para obter o status da transação?-- English --
txid
and include it in the reference label field.Question: If we use static PIX codes (generated using their merchant's key and amount) and include a
txid
in the reference label field, can we consult the API: https://bacen.github.io/pix-api/index.html#/Cob/get_cob__txid_ to get the transaction status?Beta Was this translation helpful? Give feedback.
All reactions