GET:: Retornar dados de um BRCode estático.
Essa API retorna as informações de uma cobrança imediata a partir do transactionid.
Endpoint de request
https://sandbox.agilspotpay.financehub.com.br/pix/v1/brcode/static/{transactionId}Exemplo com as principais linguagem
Retorno em JSON com os dados do cadastro.
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox.agilspotpay.financehub.com.br/pix/v1/brcode/static/{transactionId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"accept: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}curl --request GET \
--url https://sandbox.agilspotpay.financehub.com.br/pix/v1/brcode/static/{transactionId} \
--header 'accept: application/json'const axios = require('axios');
const options = {
method: 'GET',
url: 'https://sandbox.agilspotpay.financehub.com.br/pix/v1/brcode/static/{transactionId}',
headers: {accept: 'application/json'}
};
axios
.request(options)
.then(function (response) {
console.log(response.data);
})
.catch(function (error) {
console.error(error);
});Modelo de retorno 200 OK
{
"merchantAccountInformation": {
"key": "testepix@celcoin.com.br",
"additionalInformation": null
},
"merchantCategoryCode": 0,
"transactionCurrency": 986,
"transactionAmount": 0,
"countryCode": "BR",
"merchantName": "Celcoin",
"postalCode": "01201005",
"emvqrcps": "00020126450014br.gov.bcb.pix0123testepix@celcoin.com.br5204000053039865802BR5907Celcoin6007Barueri61080120100562070503***6304FD53"
}PreviousPOST:: Criar nova cobrança imediataNextGET:: Recupera uma imagem base64 representando um BRCode estático
Last updated