Skip to main content

QR Pay

POST 

https://sandbox.bankhub.dev/qr-pay

Create QR payment, using virtual account technology and VietQR Pro, to help payment confirmation

Request

Responses

Success

Authorization: x-client-id

name: x-client-idtype: apiKeydescription: Your bankHub API client-id.in: header
name: x-secret-keytype: apiKeydescription: Your bankHub API secret-key.in: header
name: Authorizationtype: apiKeydescription: The access token associated with the Grant data is being requested for.in: header
import http.client
import json

conn = http.client.HTTPSConnection("sandbox.bankhub.dev")
payload = json.dumps({
"amount": 0,
"description": "string",
"referenceNumber": "string"
})
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'x-client-id': '<x-client-id>',
'x-secret-key': '<x-client-id>',
'Authorization': '<x-client-id>'
}
conn.request("POST", "/qr-pay", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
Request Collapse all
Base URL
https://sandbox.bankhub.dev
Auth
Body required
{
  "amount": 0,
  "description": "string",
  "referenceNumber": "string"
}
ResponseClear

Click the Send API Request button above and see the response here!