Skip to main content
POST
/
transaction
/
decode-qrcode
Decodificar QR Code
curl --request POST \
  --url https://gateway.3xpay.co/transaction/decode-qrcode \
  --header 'Content-Type: application/json' \
  --header 'api_key: <api-key>' \
  --header 'api_secret: <api-key>' \
  --data '
{
  "emv": "<string>"
}
'
{
  "status": "success",
  "qrcode": {
    "amount": 100,
    "expiresAt": "2025-12-08T20:27:51.580Z",
    "receiver": {
      "name": "Blind Pay, Inc.",
      "city": "Vila Velha",
      "key": "f0f64d04-1e7d-4e4f-976f-48f4c7e0c225"
    },
    "txid": "d192067a12b2e43c38594b22af4128981",
    "url": "brcode.starkinfra.com/v2/192067a12b2e43c38594b22af4128981"
  }
}

Descrição

Decodifica um QR Code EMV e retorna os dados se o QR estiver ativo. Autenticação via ApiKey.

Autenticação

  • api_key no header

Corpo da requisição

{
  "emv": "string do QR Code EMV"
}

Respostas

Sucesso (QR ativo)

{
  "status": "success",
  "qrcode": {
    "amount": 100.0,
    "expiresAt": "2025-12-08T20:27:51.580Z",
    "receiver": {
      "name": "Blind Pay, Inc.",
      "city": "Vila Velha",
      "key": "f0f64d04-1e7d-4e4f-976f-48f4c7e0c225"
    },
    "txid": "d192067a12b2e43c38594b22af4128981",
    "url": "brcode.starkinfra.com/v2/192067a12b2e43c38594b22af4128981"
  }
}

Expirado / inativo

{
  "status": "expired",
  "message": "qrcode já expirado"
}

Authorizations

api_key
string
header
required
api_secret
string
header
required

Body

application/json
emv
string
required

Conteúdo EMV do QR Code

Response

QR Code ativo

status
string
Example:

"success"

qrcode
object