Hello, I can’t find in the documentation how to retrieve the status of the SMS credit count.
Is this function possible? If so, how?
Thank you, and have a great day.
Hello @xdr
Yes, you can retrieve the SMS credit balance via the OVH API. The function is called telephonySmsCreditLeft.
To use it, you need to call the method with two parameters: the session (the ID of your session) and the smsAccount (the name of your SMS account). The response it returns is the amount of credit left in the account.
If what you want is to see the available credit for a specific user within that SMS account, you can use the method telephonySmsGetUserQuotaForUser. In that case you need to pass the SMS account, the user’s login and password, and it returns how much credit remains for them and its status.
Hope this helps,
Sergio Turpín