View Account Information
View information related to your account
Request
import requests
url = "https://app.9bits.net:2053/ng/v1/account_info"
# Define headers with authorization and content type
headers = {
"Authorization": f"Bearer {api_token}"
}
# Send the GET request
response = requests.get(url, params=data, headers=headers)
# Check the response
if response.status_code == 200:
print("Request was successful.")
print(response.json())
else:
print(f"Request failed with status code: {response.status_code}")
print(response.text)
Response
Response sample
{
"account_type": "prepaid",
"email": "[email protected]",
"balance": 1300.00,
"balance_alert_threshold": 100.0,
"currency": "₦"
}
Response Fields
balance_alert_threshold
: The threshold value for balance alerts
NB: This is the balance level at which an alert email is sent to notify you when your account balance reaches or falls below this threshold value. This value can be set or changed on the dashboard.
Last updated