Chuyển tới nội dung chính

API giả lập lỗi thông tin đăng nhập

POST 

https://sandbox.bankhub.dev/sandbox/grant/reset-login

API giả lập lỗi thông tin đăng nhập, như: sai thông tin username/password, cần xác thực thiết bị và chặn đăng nhập từ website.

Request

Responses

Thành công

Authorization: x-client-id

name: x-client-idtype: apiKeydescription: Mã của đối tác được bankHub.dev cung cấp. Liên hệ https://bankhub.dev để đăng ký và được hỗ trợ.in: header
name: x-secret-keytype: apiKeydescription: Mã bảo mật đối tác được bankHub.dev cung cấp. Liên hệ https://bankhub.dev để đăng ký và được hỗ trợ.in: header
name: Authorizationtype: apiKeydescription: Mã truy cập của mỗi phân quyền.in: header
import http.client
import json

conn = http.client.HTTPSConnection("sandbox.bankhub.dev")
payload = json.dumps({
"errorCode": "OTP_REQUIRED"
})
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", "/sandbox/grant/reset-login", 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
{
  "errorCode": "OTP_REQUIRED"
}
ResponseClear

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