Skip to main content

Simulate Login Error

POST 

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

API used to simulate login errors, such as: incorrect username/password, device verification required, or login blocked from website.

Request

Responses

Success

Authorization: x-client-id

name: x-client-idtype: apiKeydescription: Your Cas API client-id.in: header
name: x-secret-keytype: apiKeydescription: Your Cas 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({
"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!