Is there an API I can use to monitor my wallet balance?
Your Smile ID wallet balance is always available by logging into the Smile ID dashboard. However, if you would like to monitor it programmatically there is an APi to which will tell you you current balance. The default currency is USD.
[env]is either "portal" or "prod"
The information returned is the same. The env variable here is to denote which api key you are using to authenticate the request.
JSON request body:
'partner_id': '<Put your partner ID here>',
'timestamp': <Put the timestamp here>,
'signature': '<Put signature here>',
'currency': <optional "KES", "NGN", "USD">,
'environment': <'test' or 'production' to indicate which api key was used>
The "current_as_of" field indicates the last time your wallet was debited. We deduct jobs from your wallet as a background process rather than real-time. Much like a credit card bill, there will be a slight delay between the wallet balance and the actions taken by your users.