Tra cứu số tài khoản — qua nội dung QR (VietQR)

Hướng dẫn sử dụng API tra cứu thông tin ngân hàng thông qua nội dung QR của VietQR.

Endpoint

POSThttps://api.banklookup.net/qr-content

Mẫu cURL tham khảo

curl --location 'https://api.banklookup.net/qr-content' \
--header 'x-api-key: <api_key>' \
--header 'x-api-secret: <api_secret>' \
--header 'Content-Type: application/json' \
--data '{
    "content": "00020101021138590010A0000007270129......"
}'
Ngôn ngữ:curl

Body (JSON) (Bắt buộc)

Các giá trị bắt buộc ở Body khi thực hiện Request.

PayloadRequiredData typeDescription
contentBắt buộcstringNội dung mã VietQR

Trong đó:

  • content: Nội dung QR đã quét được — mã QR phải từ VietQR.

Example Payload (JSON)

{
    "content": "00020101021138590010A0000007270129......"
}
Ngôn ngữ:json

Responses

HTTP codeContent-typeResponse
200jsonSuccess
422jsonNot found
429jsonToo many requests
402jsonPayment Required | Out of Credit

200: Success response

{
    "code": 200,
    "success": true,
    "data": {
      "bank": "<Mã ngân hàng>",
      "ownerName": "<Tên tài khoản>",
      "account": "<Số tài khoản>",
    },
    "msg": "Success"
  }
Ngôn ngữ:json