Simulate Login Error
POSThttps://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
- 200
- 401
- 403
Success
Unauthorized
Permission denied
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
- python
- curl
- csharp
- go
- nodejs
- ruby
- php
- java
- powershell
- dart
- javascript
- c
- objective-c
- ocaml
- r
- swift
- kotlin
- rust
- HTTP.CLIENT
- REQUESTS
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"))
ResponseClear